summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-24 09:38:31 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-24 09:38:31 +0000
commit15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756 (patch)
tree150a56dbcd731e1abcfc168fd5e937a3b2cd7ddc /src/gui/gui.h
parent78e280de977329aec2b9ad5926882dc9af4d152d (diff)
downloadmana-15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756.tar.gz
mana-15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756.tar.bz2
mana-15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756.tar.xz
mana-15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756.zip
Removed unnecessary Gui::isCustomCursor method.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h27
1 files changed, 8 insertions, 19 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index 70afbb79..c709893f 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -63,43 +63,31 @@ class Gui : public gcn::Gui
* Draws the whole Gui by calling draw functions down in the
* Gui hierarchy. It also draws the mouse pointer.
*/
- void
- draw();
+ void draw();
/**
- * Return game font
+ * Return game font.
*/
- gcn::Font*
- getFont() { return mGuiFont; }
+ gcn::Font* getFont() const
+ { return mGuiFont; }
/**
* Sets whether a custom cursor should be rendered.
*/
- void
- setUseCustomCursor(bool customCursor);
+ void setUseCustomCursor(bool customCursor);
/**
* Sets which cursor should be used.
*/
void setCursorType(int index)
- {
- mCursorType = index;
- }
-
- /**
- * Gets the custom cursor flag.
- */
- bool isCustomCursor()
- {
- return mCustomCursor;
- }
+ { mCursorType = index; }
/**
* Cursors are in graphic order from left to right.
* CURSOR_POINTER should be left untouched.
* CURSOR_TOTAL should always be last.
*/
- enum{
+ enum {
CURSOR_POINTER = 0,
CURSOR_RESIZE_ACROSS,
CURSOR_RESIZE_DOWN,
@@ -107,6 +95,7 @@ class Gui : public gcn::Gui
CURSOR_RESIZE_DOWN_RIGHT,
CURSOR_TOTAL
};
+
private:
GuiConfigListener *mConfigListener;
gcn::ImageLoader *mHostImageLoader; /**< For loading images in GL */