$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 <widgets.h>
Public Member Functions | |
void | stopAll (int result=0) |
void | setDrawMenusUnder (bool drawUnder) |
bool | getDrawMenusUnder () |
widgets.cpp - The stratagus ui widgets. | |
MenuScreen () | |
int | run (bool loop=true) |
void | stop (int result=0, bool stopAll=false) |
void | addLogicCallback (LuaActionListener *listener) |
virtual void | draw (gcn::Graphics *graphics) |
virtual void | logic () |
MenuScreen::MenuScreen | ( | ) |
MenuScreen constructor
int MenuScreen::run | ( | bool | loop = true |
) |
Run the menu. Loops until stop is called.
void MenuScreen::stop | ( | int | result = 0 , |
|
bool | stopAll = false | |||
) |
Stop the menu from running
void MenuScreen::stopAll | ( | int | result = 0 |
) | [inline] |
void MenuScreen::addLogicCallback | ( | LuaActionListener * | listener | ) |
void MenuScreen::draw | ( | gcn::Graphics * | graphics | ) | [virtual] |
Draws the Widget. It is called by the parent widget when it is time for the Widget to draw itself. The graphics object is set up so that all drawing is relative to the Widget, i.e coordinate (0,0) is the top-left corner of the Widget. It is not possible to draw outside of a Widgets dimension.
graphics | a Graphics object to draw with. |
Reimplemented from gcn::Container.
void MenuScreen::logic | ( | ) | [virtual] |
Called for all Widgets in the gui each time Gui::logic is called. You can do logic stuff here like playing an animation.
Reimplemented from gcn::Container.
void MenuScreen::setDrawMenusUnder | ( | bool | drawUnder | ) | [inline] |
bool MenuScreen::getDrawMenusUnder | ( | ) | [inline] |