Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/ui/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui.h')
-rw-r--r--src/ui/ui.h9
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; }