____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <widgets.h>

Public Member Functions | |
| MenuScreen () | |
| int | run (bool loop=true) |
| void | stop (int result=0, bool stopAll=false) |
| void | stopAll (int result=0) |
| void | addLogicCallback (LuaActionListener *listener) |
| virtual void | draw (gcn::Graphics *graphics) |
| virtual void | logic () |
| void | setDrawMenusUnder (bool drawUnder) |
| bool | getDrawMenusUnder () |
Definition at line 299 of file widgets.h.
| MenuScreen::MenuScreen | ( | ) |
MenuScreen constructor
Definition at line 1470 of file widgets.cpp.
References gcn::Gui::getTop(), CVideo::Height, gcn::Widget::setDimension(), gcn::Container::setOpaque(), gcn::Gui::setTop(), Video, and CVideo::Width.
| int MenuScreen::run | ( | bool | loop = true |
) |
Run the menu. Loops until stop is called.
Definition at line 1485 of file widgets.cpp.
References CursorConfig::Cursor, CursorOn, CursorOnUnknown, CursorState, CursorStatePoint, GameCursor, GetCallbacks(), MenuStack, CUserInterface::Point, RealizeVideoMemory(), SetCallbacks(), gcn::Gui::setTop(), UI, UpdateDisplay(), and WaitEventsOneFrame().
| void MenuScreen::stop | ( | int | result = 0, |
|
| bool | stopAll = false | |||
| ) |
Stop the menu from running
Definition at line 1515 of file widgets.cpp.
References Assert, CStatusLine::Clear(), CursorX, CursorY, Editor, EditorCallbacks, GameCallbacks, GamePaused, GameRunning, MenuStack, CEditor::Running, SetCallbacks(), gcn::Gui::setTop(), CUserInterface::StatusLine, UI, and UIHandleMouseMove().
Referenced by stopAll().
| void MenuScreen::stopAll | ( | int | result = 0 |
) | [inline] |
| void MenuScreen::addLogicCallback | ( | LuaActionListener * | listener | ) |
Definition at line 1545 of file widgets.cpp.
| 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.
Definition at line 1550 of file widgets.cpp.
References gcn::Widget::_getFocusHandler(), gcn::Container::draw(), gcn::Gui::draw(), gcn::Gui::getGraphics(), gcn::Gui::getTop(), and gcn::Gui::setTop().
| 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.
Definition at line 1566 of file widgets.cpp.
References LuaActionListener::action(), NetConnectRunning, NetworkProcessClientRequest(), and NetworkProcessServerRequest().
| void MenuScreen::setDrawMenusUnder | ( | bool | drawUnder | ) | [inline] |
1.5.6