summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-06 23:30:18 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-06 23:30:18 +0000
commit7692d16b78efd8a4f683150094065079df84461d (patch)
tree546202545a8822c6b5852daf158bb510fb143a17 /src/gui/gui.h
parentfef7a7fb89b529bb3695bbff14d964f4da49ab64 (diff)
downloadmana-client-7692d16b78efd8a4f683150094065079df84461d.tar.gz
mana-client-7692d16b78efd8a4f683150094065079df84461d.tar.bz2
mana-client-7692d16b78efd8a4f683150094065079df84461d.tar.xz
mana-client-7692d16b78efd8a4f683150094065079df84461d.zip
Dragged in some Guichan code so that we can handle things a bit different.
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 {