summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-08-16 10:11:33 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-08-16 10:11:33 +0000
commitf6fabeacc35b67ca0a44bf50cf6ca7d2378c289d (patch)
tree636fa896306452cd0ccbe9febdb855d29ddaf74f /src/gui/window.h
parent9e6c0ca8f20f5ba4cbfafe19938d0bb34d6ee031 (diff)
downloadmana-f6fabeacc35b67ca0a44bf50cf6ca7d2378c289d.tar.gz
mana-f6fabeacc35b67ca0a44bf50cf6ca7d2378c289d.tar.bz2
mana-f6fabeacc35b67ca0a44bf50cf6ca7d2378c289d.tar.xz
mana-f6fabeacc35b67ca0a44bf50cf6ca7d2378c289d.zip
Added a resize grip to resizable window, fixed some compiling errors.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index 731b7e9d..e9567762 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -25,10 +25,13 @@
#define _TMW_WINDOW_H__
#include <guichan/widgets/window.hpp>
+#include <guichan/rectangle.hpp>
#include "../configlistener.h"
#include "../guichanfwd.h"
+#include "../resources/image.h"
+
class ImageRect;
class WindowContainer;
@@ -154,6 +157,11 @@ class Window : public gcn::Window, public ConfigListener
* Called when an config option changes.
*/
void optionChanged(const std::string &name);
+
+ /**
+ * The position of the resize grip
+ */
+ gcn::Rectangle getGripDimension();
protected:
gcn::Container *chrome; /**< Contained container */
@@ -179,6 +187,7 @@ class Window : public gcn::Window, public ConfigListener
static int instances; /**< Number of Window instances */
static ImageRect border; /**< The window border and background */
+ static Image *resizeGrip; /**< The grip to resize window */
};
#endif