diff options
author | José Ávila <linux@javila.net> | 2005-06-06 21:30:37 +0000 |
---|---|---|
committer | José Ávila <linux@javila.net> | 2005-06-06 21:30:37 +0000 |
commit | 8e9df978f664ee4b415ab672e9eba5037d62af5e (patch) | |
tree | c57e17cd4505d2ea12123a83212f1479db9f79fa /src/gui/window.h | |
parent | 821241e469bcf649d1c1e04e8bdb4b462b21daa4 (diff) | |
download | mana-8e9df978f664ee4b415ab672e9eba5037d62af5e.tar.gz mana-8e9df978f664ee4b415ab672e9eba5037d62af5e.tar.bz2 mana-8e9df978f664ee4b415ab672e9eba5037d62af5e.tar.xz mana-8e9df978f664ee4b415ab672e9eba5037d62af5e.zip |
Fixed resizing window function
Diffstat (limited to 'src/gui/window.h')
-rw-r--r-- | src/gui/window.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/window.h b/src/gui/window.h index 95db2f4b..2986bad1 100644 --- a/src/gui/window.h +++ b/src/gui/window.h @@ -141,10 +141,12 @@ class Window : public gcn::Window, public ConfigListener void scheduleDelete(); /** - * Window dragging. This method also makes sure the window is not - * dragged outside of the screen. + * Window dragging and resizing. These methods also makes sure the + * window is not dragged/resized outside of the screen. */ + void mousePress(int x, int y, int button); void mouseMotion(int mx, int my); + void mouseRelease(int x, int y, int button); /** * Called when an config option changes. @@ -157,6 +159,8 @@ class Window : public gcn::Window, public ConfigListener int snapSize; /**< Snap distance to window edge */ bool modal; /**< Window is modal */ bool resizeable; /**< Window can be resized */ + bool winXResizing; /**< Window being resized in X direction */ + bool winYResizing; /**< Window being resized in Y direction */ int minWinWidth; /**< Minimum window width */ int minWinHeight; /**< Minimum window height */ int maxWinWidth; /**< Maximum window width */ |