diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-21 19:00:39 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-21 19:00:39 +0000 |
commit | d79c0223315beaf55fcd10d6891675c4d57b5e2b (patch) | |
tree | 3ea902634192dfcffa21a4e7a8cd28da714f0daa /src/ui/ui.h | |
parent | 9f2e49593639a9f1f3e5f4f7b690ff364afefd56 (diff) |
moved client console into libui
Diffstat (limited to 'src/ui/ui.h')
-rw-r--r-- | src/ui/ui.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/ui.h b/src/ui/ui.h index 97577c6..f41df24 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -7,6 +7,7 @@ #ifndef __INCLUDED_UI_H__ #define __INCLUDED_UI_H__ +#include "ui/console.h" #include "ui/font.h" #include "ui/palette.h" #include "ui/widget.h" @@ -41,6 +42,9 @@ public: /// show previous window void previous_menu(); + + /// the console + inline Console *console() { return ui_console; } /// return the active menu Window *active() { @@ -111,6 +115,8 @@ private: Window *ui_active_menu; Widget *ui_mouse_focus; Widget *ui_input_focus; + + Console *ui_console; Menus ui_menus; @@ -130,6 +136,9 @@ void shutdown(); /// the global root window UI *root(); +/// the console +inline Console *console() { return root()->console(); } + /// debug mode inline bool debug() { return UI::ui_debug; } |