$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ 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 |
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.
gcn::Gui::~Gui | ( | ) | [virtual] |
Destructor.
void gcn::Gui::setTop | ( | Widget * | top | ) | [virtual] |
Widget * gcn::Gui::getTop | ( | ) | const [virtual] |
void gcn::Gui::setGraphics | ( | Graphics * | graphics | ) | [virtual] |
Sets the Graphics object to use for drawing.
graphics | the Graphics object to use for drawing. |
Graphics * gcn::Gui::getGraphics | ( | ) | const [virtual] |
void gcn::Gui::setInput | ( | Input * | input | ) | [virtual] |
Input * gcn::Gui::getInput | ( | ) | const [virtual] |
void gcn::Gui::logic | ( | ) | [virtual] |
void gcn::Gui::draw | ( | ) | [virtual] |
void gcn::Gui::draw | ( | Widget * | top | ) | [virtual] |
void gcn::Gui::focusNone | ( | ) | [virtual] |
Focus none of the Widgets in the Gui.
void gcn::Gui::setTabbingEnabled | ( | bool | tabbing | ) | [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. |
bool gcn::Gui::isTabbingEnabled | ( | ) | [virtual] |
Checks if tabbing is enabled.
void gcn::Gui::setUseDirtyDrawing | ( | bool | useDirtyDrawing | ) | [virtual] |
bool gcn::Gui::mTopHasMouse [protected] |
bool gcn::Gui::mTabbing [protected] |
Widget* gcn::Gui::mTop [protected] |
Graphics* gcn::Gui::mGraphics [protected] |
Input* gcn::Gui::mInput [protected] |
FocusHandler* gcn::Gui::mFocusHandler [protected] |
bool gcn::Gui::mUseDirtyDrawing [protected] |