$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

MenuScreen Class Reference

#include <widgets.h>

Inheritance diagram for MenuScreen:

gcn::Container gcn::BasicContainer gcn::Widget

List of all members.


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 ()

Constructor & Destructor Documentation

MenuScreen::MenuScreen (  ) 

MenuScreen constructor


Member Function Documentation

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.

Parameters:
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.

See also:
Gui

Reimplemented from gcn::Container.

void MenuScreen::setDrawMenusUnder ( bool  drawUnder  )  [inline]

bool MenuScreen::getDrawMenusUnder (  )  [inline]


The documentation for this class was generated from the following files:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.