_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <gui.h>
Public Member Functions | |
Gui () | |
virtual | ~Gui () |
virtual void | setTop (Widget *top) |
virtual Widget * | getTop () const |
virtual void | setGraphics (Graphics *graphics) |
virtual Graphics * | getGraphics () const |
virtual void | setInput (Input *input) |
virtual Input * | getInput () const |
virtual void | logic () |
virtual void | draw () |
virtual void | draw (Widget *top) |
virtual void | focusNone () |
virtual void | setTabbingEnabled (bool tabbing) |
virtual bool | isTabbingEnabled () |
virtual void | setUseDirtyDrawing (bool useDirtyDrawing) |
Protected Attributes | |
bool | mTopHasMouse |
bool | mTabbing |
Widget * | mTop |
Graphics * | mGraphics |
Input * | mInput |
FocusHandler * | mFocusHandler |
bool | mUseDirtyDrawing |
This documentation is mostly intended as a reference to the API. If you want to get started with Guichan, we suggest you check out the programs in the examples directory of the Guichan release.
This documentation is, and will always be, work in progress. If you find any errors, typos or inconsistencies, or if you feel something needs to be explained in more detail - don't hesitate to tell us. Gui core class. Contains a special widget called the top widget. If you want to be able to have more then one Widget in your Gui, the top widget should be a Container.
NOTE: For the Gui to function properly you need to set a Graphics object to use and an Input object to use.
gcn::Gui::Gui | ( | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Gets the top Widget.
|
virtual |
Checks if tabbing is enabled.
|
virtual |
Sets the Graphics object to use for drawing.
graphics | the Graphics object to use for drawing. |
|
virtual |
Toggles the use of the tab key to focus Widgets. By default, tabbing is enabled.
tabbing | set to false if you want to disable tabbing. |
|
virtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |