summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-24 12:32:19 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-24 12:32:19 +0000
commit2debd445c71e65265359b6471795cab2cb2c7086 (patch)
tree695f276a3ae343f2a182dd2d3bb75afa6254f899 /src/gui/window.h
parent15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756 (diff)
downloadmana-2debd445c71e65265359b6471795cab2cb2c7086.tar.gz
mana-2debd445c71e65265359b6471795cab2cb2c7086.tar.bz2
mana-2debd445c71e65265359b6471795cab2cb2c7086.tar.xz
mana-2debd445c71e65265359b6471795cab2cb2c7086.zip
Added trimming of name for new character creation and of chat messages
appearing above players. Also improved resize mouse cursor indication, removing duplicated code and fixing indicator above resize grip.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index 5e8d8010..625d7541 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -175,7 +175,6 @@ class Window : public gcn::Window
* Overloads window setVisible by Guichan to allow sticky window
* handling.
*/
-
void setVisible(bool visible);
/**
@@ -265,6 +264,15 @@ class Window : public gcn::Window
};
protected:
+ /**
+ * Determines if the mouse is in a resize area and returns appropriate
+ * resize handles. Also initializes drag offset in case the resize
+ * grip is used.
+ *
+ * @see ResizeHandles
+ */
+ int getResizeHandles(gcn::MouseEvent &event);
+
GCContainer *mChrome; /**< Contained container */
ResizeGrip *mGrip; /**< Resize grip */
Window *mParent; /**< The parent window */
@@ -291,8 +299,8 @@ class Window : public gcn::Window
*/
static ConfigListener *windowConfigListener;
+ static int mouseResize; /**< Active resize handles */
static int instances; /**< Number of Window instances */
- static int mouseResize; /**< Window is being resized */
static ImageRect border; /**< The window border and background */
static Image *closeImage; /**< Close Button Image */