diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-16 16:34:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-16 16:34:15 +0000 |
commit | 1a28393dabf4f4696bf433ddde52e7a25253c955 (patch) | |
tree | 4d4fa4034f30fc882a78ab6ea148a32e83b9e88c /src/ui/ui.h | |
parent | 1e0df536c2fae85c317ce9c3cc17603d5f98c911 (diff) |
various user interface related updates
Diffstat (limited to 'src/ui/ui.h')
-rw-r--r-- | src/ui/ui.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h index 8fa32c2..24f9793 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -62,7 +62,7 @@ public: /// receive global key input bool input_key(const bool pressed, const int key, const unsigned int modifier); - + /// run a user interface frame void frame(); @@ -77,7 +77,12 @@ public: inline const Font *font_large() const { return ui_font_large; } - + + /* -- mouse pointer ---------------------------------------- */ + + /// set mouse pointer bitmap + void set_pointer(const char *pointerbitmap=0, const Palette::Color color = Palette::Highlight,const bool animated = false); + protected: typedef std::list<Window *> Menus; @@ -95,6 +100,8 @@ protected: virtual bool on_keyrelease(const int key, const unsigned int modifier); private: + void draw_pointer(); + Palette *ui_palette; Font *ui_font_small; Font *ui_font_large; @@ -106,7 +113,10 @@ private: Menus ui_menus; /// TODO move to separate object to handle mouse cursor drawing - math::Vector2f mouse_cursor; + math::Vector2f mouse_cursor; + std::string mouse_pointer_bitmap; + Palette::Color mouse_pointer_color; + bool mouse_pointer_animated; }; /// initialize the user interface |