diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-16 01:29:37 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-06-16 01:29:37 +0000 |
commit | 06afc063b8538b90b8dd8eb662a9ae0e11812963 (patch) | |
tree | fbae681cc37ebac36a1ededa7a292d5ec8505842 /src/gui/window.h | |
parent | cf0b73ed23fa2213521c23fcd927aab37151a484 (diff) | |
download | mana-06afc063b8538b90b8dd8eb662a9ae0e11812963.tar.gz mana-06afc063b8538b90b8dd8eb662a9ae0e11812963.tar.bz2 mana-06afc063b8538b90b8dd8eb662a9ae0e11812963.tar.xz mana-06afc063b8538b90b8dd8eb662a9ae0e11812963.zip |
Fixed window resizing to work properly, and on all edges and corners.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r-- | src/gui/window.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/gui/window.h b/src/gui/window.h index 2986bad1..3c9201ce 100644 --- a/src/gui/window.h +++ b/src/gui/window.h @@ -100,12 +100,12 @@ class Window : public gcn::Window, public ConfigListener /** * Sets whether of not the window can be resized. */ - void setResizeable(bool resize); + void setResizable(bool resize); /** * Returns whether the window can be resized. */ - bool getResizeable(); + bool getResizable(); /** * Sets the minimum width of the window. @@ -158,9 +158,14 @@ class Window : public gcn::Window, public ConfigListener Window *parent; /**< The parent window */ 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 */ + bool resizable; /**< Window can be resized */ + + bool mMouseResize; /**< Window is being resized */ + bool mTopBorderDrag; /**< Top border is being dragged */ + bool mLeftBorderDrag; /**< Left border is being dragged */ + bool mRightBorderDrag; /**< Right border is being dragged */ + bool mBottomBorderDrag; /**< Bottom border is being dragged */ + int minWinWidth; /**< Minimum window width */ int minWinHeight; /**< Minimum window height */ int maxWinWidth; /**< Maximum window width */ |