summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index ada04a55..1055db0b 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -53,18 +53,43 @@ class Gui
/**
* Destructor.
*/
- virtual ~Gui();
+ ~Gui();
/**
* Performs GUI logic and drawing.
*/
void update();
+ /**
+ * Focus none of the Widgets in the Gui.
+ */
+ void focusNone();
+
private:
+ /**
+ * Performs the Gui:s logic by calling all logic functions
+ * down in the Gui heirarchy. Logic can be just about anything
+ * like adjusting a Widgets size or doing some calculations.
+ *
+ * NOTE: Logic also deals with user input (Mouse and Keyboard)
+ * for Widgets.
+ */
+ void logic();
+
+ /**
+ * Draws the whole Gui by calling draw functions down in the
+ * Gui hierarchy.
+ */
+ void draw();
+
gcn::Gui* gui; /**< The GUI system */
gcn::Input* guiInput; /**< Input driver */
gcn::ImageLoader* imageLoader; /**< For loading images */
gcn::ImageFont* guiFont; /**< The global GUI font */
+
+ bool topHasMouse;
+
+ gcn::FocusHandler* focusHandler;
};
typedef struct {