summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-20 05:29:12 +0000
committerJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-20 05:29:12 +0000
commitc322e6eac2373358c04e7bd70c8e0fc1bcfb37db (patch)
tree3ad86b222fa2e2688807a47cf500ec36567f8b6b /src/gui/gui.h
parent1d9b37e81b1c91986644d6e9580422e6f8b47e25 (diff)
downloadmana-c322e6eac2373358c04e7bd70c8e0fc1bcfb37db.tar.gz
mana-c322e6eac2373358c04e7bd70c8e0fc1bcfb37db.tar.bz2
mana-c322e6eac2373358c04e7bd70c8e0fc1bcfb37db.tar.xz
mana-c322e6eac2373358c04e7bd70c8e0fc1bcfb37db.zip
Added close button functionality, resize cursor cues.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h35
1 files changed, 33 insertions, 2 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index caf27744..21b10454 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -30,7 +30,7 @@
class GuiConfigListener;
class Graphics;
-class Image;
+class ImageSet;
class Viewport;
/**
@@ -84,13 +84,44 @@ class Gui : public gcn::Gui
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;
+ }
+
+ /**
+ * Cursors are in graphic order from left to right.
+ * CURSOR_POINTER should be left untouched.
+ * CURSOR_TOTAL should always be last.
+ */
+ enum{
+ CURSOR_POINTER = 0,
+ CURSOR_RESIZE_ACROSS,
+ CURSOR_RESIZE_DOWN,
+ CURSOR_RESIZE_DOWN_LEFT,
+ CURSOR_RESIZE_DOWN_RIGHT,
+ CURSOR_TOTAL
+ };
private:
GuiConfigListener *mConfigListener;
gcn::ImageLoader *mHostImageLoader; /**< For loading images in GL */
gcn::ImageLoader *mImageLoader; /**< For loading images */
gcn::Font *mGuiFont; /**< The global GUI font */
- Image *mMouseCursor; /**< Mouse cursor image */
bool mCustomCursor; /**< Show custom cursor */
+ int mCursorType;
+
+ static ImageSet *mMouseCursor; /**< Mouse cursor images */
};
extern Gui *gui; /**< The GUI system */