diff options
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 27 |
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 */ |