diff options
Diffstat (limited to 'src/ui/ui.h')
-rw-r--r-- | src/ui/ui.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h index 24f9793..97577c6 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -83,6 +83,8 @@ public: /// set mouse pointer bitmap void set_pointer(const char *pointerbitmap=0, const Palette::Color color = Palette::Highlight,const bool animated = false); + static bool ui_debug; + protected: typedef std::list<Window *> Menus; @@ -98,7 +100,7 @@ protected: /// handle key release events virtual bool on_keyrelease(const int key, const unsigned int modifier); - + private: void draw_pointer(); @@ -128,6 +130,9 @@ void shutdown(); /// the global root window UI *root(); +/// debug mode +inline bool debug() { return UI::ui_debug; } + } #endif // __INCLUDED_UI_H__ |