diff options
author | markt <markt> | 2007-10-22 17:45:39 (GMT) |
---|---|---|
committer | markt <markt> | 2007-10-22 17:45:39 (GMT) |
commit | c6a2605d76927eed881e4ff9df58a9ec600bf4a2 (patch) | |
tree | 468c356ffdad6893d4f4b312f847122b66c997ed /src/Window.hh | |
parent | f72633a0e0df146c4860b5b3940e9c3a2f7260b1 (diff) | |
download | fluxbox_pavel-c6a2605d76927eed881e4ff9df58a9ec600bf4a2.zip fluxbox_pavel-c6a2605d76927eed881e4ff9df58a9ec600bf4a2.tar.bz2 |
replaced ModKey with new key commands StartMoving and StartResizing
Diffstat (limited to 'src/Window.hh')
-rw-r--r-- | src/Window.hh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Window.hh b/src/Window.hh index 3a87463..6fb258a 100644 --- a/src/Window.hh +++ b/src/Window.hh | |||
@@ -137,6 +137,22 @@ public: | |||
137 | DECOR_TAB = DECORM_BORDER|DECORM_MENU|DECORM_TAB | 137 | DECOR_TAB = DECORM_BORDER|DECORM_MENU|DECORM_TAB |
138 | }; | 138 | }; |
139 | 139 | ||
140 | /// Different resize modes when resizing a window | ||
141 | enum ResizeModel { | ||
142 | QUADRANTRESIZE, ///< resizes from one quadrant | ||
143 | CENTERRESIZE, ///< resizes from center | ||
144 | NEARESTEDGERESIZE, ///< resizes the nearest edge | ||
145 | TOPLEFTRESIZE, ///< resizes top left corner | ||
146 | TOPRESIZE, ///< resizes top edge | ||
147 | TOPRIGHTRESIZE, ///< resizes top right corner | ||
148 | LEFTRESIZE, ///< resizes left edge | ||
149 | RIGHTRESIZE, ///< resizes right edge | ||
150 | BOTTOMLEFTRESIZE, ///< resizes bottom left corner | ||
151 | BOTTOMRESIZE, ///< resizes bottom edge | ||
152 | BOTTOMRIGHTRESIZE, ///< resizes bottom right corner | ||
153 | DEFAULTRESIZE = BOTTOMRIGHTRESIZE ///< default resize mode | ||
154 | }; | ||
155 | |||
140 | /** | 156 | /** |
141 | * Resize direction while resizing | 157 | * Resize direction while resizing |
142 | */ | 158 | */ |
@@ -369,6 +385,8 @@ public: | |||
369 | * @param dir the resize direction | 385 | * @param dir the resize direction |
370 | */ | 386 | */ |
371 | void startResizing(int x, int y, ResizeDirection dir); | 387 | void startResizing(int x, int y, ResizeDirection dir); |
388 | /// determine which edge or corner to resize | ||
389 | ResizeDirection getResizeDirection(int x, int y, ResizeModel model); | ||
372 | /// stops the resizing | 390 | /// stops the resizing |
373 | void stopResizing(bool interrupted = false); | 391 | void stopResizing(bool interrupted = false); |
374 | 392 | ||