diff options
author | fluxgen <fluxgen> | 2003-10-25 22:11:22 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-10-25 22:11:22 (GMT) |
commit | 9c35bbdd40ada59658feb9b98535f77a473bbaa5 (patch) | |
tree | 7e01708e15e011a4a45547f1e1552866498dafd8 /src/CurrentWindowCmd.hh | |
parent | 4d161094576b29ca1a41e807fabb80d672fc1852 (diff) | |
download | fluxbox-9c35bbdd40ada59658feb9b98535f77a473bbaa5.zip fluxbox-9c35bbdd40ada59658feb9b98535f77a473bbaa5.tar.bz2 |
added resizeto and moveto commands
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r-- | src/CurrentWindowCmd.hh | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh index 18bcc45..c4c559b 100644 --- a/src/CurrentWindowCmd.hh +++ b/src/CurrentWindowCmd.hh | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: CurrentWindowCmd.hh,v 1.5 2003/09/10 14:07:48 fluxgen Exp $ | 23 | // $Id: CurrentWindowCmd.hh,v 1.6 2003/10/25 22:11:22 fluxgen Exp $ |
24 | 24 | ||
25 | #ifndef CURRENTWINDOWCMD_HH | 25 | #ifndef CURRENTWINDOWCMD_HH |
26 | #define CURRENTWINDOWCMD_HH | 26 | #define CURRENTWINDOWCMD_HH |
@@ -69,6 +69,7 @@ private: | |||
69 | const int m_workspace_num; | 69 | const int m_workspace_num; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | // move cmd, relative position | ||
72 | class MoveCmd: public WindowHelperCmd { | 73 | class MoveCmd: public WindowHelperCmd { |
73 | public: | 74 | public: |
74 | explicit MoveCmd(const int step_size_x, const int step_size_y); | 75 | explicit MoveCmd(const int step_size_x, const int step_size_y); |
@@ -80,7 +81,7 @@ private: | |||
80 | const int m_step_size_y; | 81 | const int m_step_size_y; |
81 | }; | 82 | }; |
82 | 83 | ||
83 | // resize cmd | 84 | // resize cmd, relative size |
84 | class ResizeCmd: public WindowHelperCmd{ | 85 | class ResizeCmd: public WindowHelperCmd{ |
85 | public: | 86 | public: |
86 | explicit ResizeCmd(int step_size_x, int step_size_y); | 87 | explicit ResizeCmd(int step_size_x, int step_size_y); |
@@ -92,4 +93,28 @@ private: | |||
92 | const int m_step_size_x; | 93 | const int m_step_size_x; |
93 | const int m_step_size_y; | 94 | const int m_step_size_y; |
94 | }; | 95 | }; |
96 | |||
97 | class MoveToCmd: public WindowHelperCmd { | ||
98 | public: | ||
99 | explicit MoveToCmd(const int step_size_x, const int step_size_y); | ||
100 | protected: | ||
101 | void real_execute(); | ||
102 | |||
103 | private: | ||
104 | const int m_step_size_x; | ||
105 | const int m_step_size_y; | ||
106 | }; | ||
107 | |||
108 | // resize cmd | ||
109 | class ResizeToCmd: public WindowHelperCmd{ | ||
110 | public: | ||
111 | explicit ResizeToCmd(int step_size_x, int step_size_y); | ||
112 | protected: | ||
113 | void real_execute(); | ||
114 | |||
115 | private: | ||
116 | |||
117 | const int m_step_size_x; | ||
118 | const int m_step_size_y; | ||
119 | }; | ||
95 | #endif // CURRENTWINDOWCMD_HH | 120 | #endif // CURRENTWINDOWCMD_HH |