From f6fabeacc35b67ca0a44bf50cf6ca7d2378c289d Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Tue, 16 Aug 2005 10:11:33 +0000 Subject: Added a resize grip to resizable window, fixed some compiling errors. --- src/gui/window.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gui/window.h') 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 +#include #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 -- cgit v1.2.3-70-g09d2