aboutsummaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.hh')
-rw-r--r--src/Window.hh18
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