aboutsummaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
authorMichael Abbott <michael@araneidae.co.uk>2012-09-29 07:10:48 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-10-04 07:36:23 (GMT)
commit391712b9805eda9d56a100f49d69b38863910565 (patch)
tree05d5a6eea9fef53a371676f76ec4c1e1ef0893a1 /src/Window.hh
parent7b6ab828c7e5453a2720462156d165707935c9ef (diff)
downloadfluxbox-391712b9805eda9d56a100f49d69b38863910565.zip
fluxbox-391712b9805eda9d56a100f49d69b38863910565.tar.bz2
Add support for nearest corner or edge resizing
Diffstat (limited to 'src/Window.hh')
-rw-r--r--src/Window.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Window.hh b/src/Window.hh
index 09374af..b7975f5 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -89,9 +89,7 @@ public:
89 89
90 /// Different resize modes when resizing a window 90 /// Different resize modes when resizing a window
91 enum ResizeModel { 91 enum ResizeModel {
92 QUADRANTRESIZE, ///< resizes from one quadrant
93 CENTERRESIZE, ///< resizes from center 92 CENTERRESIZE, ///< resizes from center
94 NEARESTEDGERESIZE, ///< resizes the nearest edge
95 TOPLEFTRESIZE, ///< resizes top left corner 93 TOPLEFTRESIZE, ///< resizes top left corner
96 TOPRESIZE, ///< resizes top edge 94 TOPRESIZE, ///< resizes top edge
97 TOPRIGHTRESIZE, ///< resizes top right corner 95 TOPRIGHTRESIZE, ///< resizes top right corner
@@ -100,6 +98,7 @@ public:
100 BOTTOMLEFTRESIZE, ///< resizes bottom left corner 98 BOTTOMLEFTRESIZE, ///< resizes bottom left corner
101 BOTTOMRESIZE, ///< resizes bottom edge 99 BOTTOMRESIZE, ///< resizes bottom edge
102 BOTTOMRIGHTRESIZE, ///< resizes bottom right corner 100 BOTTOMRIGHTRESIZE, ///< resizes bottom right corner
101 EDGEORCORNERRESIZE, ///< resizes nearest edge or corner
103 DEFAULTRESIZE = BOTTOMRIGHTRESIZE ///< default resize mode 102 DEFAULTRESIZE = BOTTOMRIGHTRESIZE ///< default resize mode
104 }; 103 };
105 104
@@ -341,7 +340,7 @@ public:
341 */ 340 */
342 void startResizing(int x, int y, ReferenceCorner dir); 341 void startResizing(int x, int y, ReferenceCorner dir);
343 /// determine which edge or corner to resize 342 /// determine which edge or corner to resize
344 ReferenceCorner getResizeDirection(int x, int y, ResizeModel model) const; 343 ReferenceCorner getResizeDirection(int x, int y, ResizeModel model, int corner_size_px, int corner_size_pc) const;
345 /// stops the resizing 344 /// stops the resizing
346 void stopResizing(bool interrupted = false); 345 void stopResizing(bool interrupted = false);
347 /// starts tabbing 346 /// starts tabbing