aboutsummaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-09-29 12:53:58 (GMT)
committerrathnor <rathnor>2003-09-29 12:53:58 (GMT)
commit10ce5372d99251d65ff0d4e65c6e19cf05bb208a (patch)
tree554880caa9be789ff07b38393f36b9aba8e875b7 /src/Window.hh
parent48cc8772e32ad9cb56a0086840be41e72e94c41e (diff)
downloadfluxbox-10ce5372d99251d65ff0d4e65c6e19cf05bb208a.zip
fluxbox-10ce5372d99251d65ff0d4e65c6e19cf05bb208a.tar.bz2
quadrant-resizing (Thanks Mathias Gumz)
Diffstat (limited to 'src/Window.hh')
-rw-r--r--src/Window.hh16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/Window.hh b/src/Window.hh
index 8c2fe46..e023253 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.hh,v 1.95 2003/09/24 14:02:25 rathnor Exp $ 25// $Id: Window.hh,v 1.96 2003/09/29 12:53:58 rathnor Exp $
26 26
27#ifndef WINDOW_HH 27#ifndef WINDOW_HH
28#define WINDOW_HH 28#define WINDOW_HH
@@ -131,6 +131,13 @@ public:
131 DECORM_LAST = (1<<11) // useful for getting "All" 131 DECORM_LAST = (1<<11) // useful for getting "All"
132 }; 132 };
133 133
134 enum ResizeCorner {
135 LEFTTOP,
136 LEFTBOTTOM,
137 RIGHTBOTTOM,
138 RIGHTTOP
139 };
140
134 typedef struct _blackbox_hints { 141 typedef struct _blackbox_hints {
135 unsigned long flags, attrib, workspace, stack; 142 unsigned long flags, attrib, workspace, stack;
136 int decoration; 143 int decoration;
@@ -366,7 +373,7 @@ private:
366 373
367 void startMoving(Window win); 374 void startMoving(Window win);
368 void stopMoving(); 375 void stopMoving();
369 void startResizing(Window win, int x, int y, bool left); 376 void startResizing(Window win, int x, int y);
370 void stopResizing(Window win=0); 377 void stopResizing(Window win=0);
371 void updateIcon(); 378 void updateIcon();
372 /// try to attach current attaching client to a window at pos x, y 379 /// try to attach current attaching client to a window at pos x, y
@@ -391,8 +398,7 @@ private:
391 398
392 // modifies left and top if snap is necessary 399 // modifies left and top if snap is necessary
393 void doSnapping(int &left, int &top); 400 void doSnapping(int &left, int &top);
394 void right_fixsize(int *x = 0, int *y = 0); 401 void fixsize(int *x = 0, int *y = 0);
395 void left_fixsize(int *x = 0, int *y = 0);
396 void resizeClient(WinClient &client, unsigned int width, unsigned int height); 402 void resizeClient(WinClient &client, unsigned int width, unsigned int height);
397 /// sends configurenotify to all clients 403 /// sends configurenotify to all clients
398 void sendConfigureNotify(bool send_to_netizens = true); 404 void sendConfigureNotify(bool send_to_netizens = true);
@@ -456,6 +462,8 @@ private:
456 462
457 FbTk::FbWindow &m_parent; ///< window on which we draw move/resize rectangle (the "root window") 463 FbTk::FbWindow &m_parent; ///< window on which we draw move/resize rectangle (the "root window")
458 464
465 ResizeCorner m_resize_corner;
466
459 ExtraMenus m_extramenus; 467 ExtraMenus m_extramenus;
460}; 468};
461 469