diff options
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 |