aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.hh
diff options
context:
space:
mode:
authormathias <mathias>2005-06-15 15:17:48 (GMT)
committermathias <mathias>2005-06-15 15:17:48 (GMT)
commitd69e300376db05642730792f34e38712f52efbc2 (patch)
tree97afcfc41bc49aaa05bbd0e7feb4b826f96c074f /src/CurrentWindowCmd.hh
parent93b295a1587f91366d16a0d8c7514a4cd841cd38 (diff)
downloadfluxbox-d69e300376db05642730792f34e38712f52efbc2.zip
fluxbox-d69e300376db05642730792f34e38712f52efbc2.tar.bz2
Enhanced MoveTo, fixes #1074568
MoveTo <int|*> <int|*> <Reference Corner> - * means "use current value" - Reference Corner is one of: - UpperLeft, Upper, UpperRight - Left, Right - LowerLeft, Lower, Right examples: MoveTo 0 * Left -> snap to left workspace edge MoveTo * 0 Lower -> snap to lower workspace edge MoveTo 0 0 UpperRight -> snap to upper right workspace corner TODO: perhaps add some "aliases" to make it more userfriendly
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r--src/CurrentWindowCmd.hh22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh
index 0ef7eca..34fba57 100644
--- a/src/CurrentWindowCmd.hh
+++ b/src/CurrentWindowCmd.hh
@@ -161,26 +161,34 @@ private:
161 161
162class MoveToCmd: public WindowHelperCmd { 162class MoveToCmd: public WindowHelperCmd {
163public: 163public:
164 explicit MoveToCmd(const int step_size_x, const int step_size_y); 164 enum {
165 LEFT = 1 << 0,
166 RIGHT = 1 << 1,
167 UPPER = 1 << 2,
168 LOWER = 1 << 3,
169
170 IGNORE_X = 1 << 8,
171 IGNORE_Y = 1 << 9
172 };
173 explicit MoveToCmd(const int step_size_x, const int step_size_y, const unsigned int refc);
165protected: 174protected:
166 void real_execute(); 175 void real_execute();
167 176
168private: 177private:
169 const int m_step_size_x; 178 const int m_step_size_x;
170 const int m_step_size_y; 179 const int m_step_size_y;
180 const unsigned int m_refc;
171}; 181};
172 182
173// resize cmd 183// resize cmd
174class ResizeToCmd: public WindowHelperCmd{ 184class ResizeToCmd: public WindowHelperCmd{
175public: 185public:
176 explicit ResizeToCmd(int step_size_x, int step_size_y); 186 explicit ResizeToCmd(int step_size_x, int step_size_y);
177protected: 187protected:
178 void real_execute(); 188 void real_execute();
179
180private: 189private:
181 190 const int m_step_size_x;
182 const int m_step_size_x; 191 const int m_step_size_y;
183 const int m_step_size_y;
184}; 192};
185 193
186class FullscreenCmd: public WindowHelperCmd{ 194class FullscreenCmd: public WindowHelperCmd{