____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

MenuScreen Class Reference

#include <widgets.h>

Inheritance diagram for MenuScreen:

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

List of all members.

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


Detailed Description

Definition at line 299 of file widgets.h.


Constructor & Destructor Documentation

MenuScreen::MenuScreen (  ) 


Member Function Documentation

int MenuScreen::run ( bool  loop = true  ) 

void MenuScreen::stop ( int  result = 0,
bool  stopAll = false 
)

void MenuScreen::stopAll ( int  result = 0  )  [inline]

Definition at line 306 of file widgets.h.

References stop().

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.

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

See also:
Gui

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]

Definition at line 310 of file widgets.h.

bool MenuScreen::getDrawMenusUnder (  )  [inline]

Definition at line 311 of file widgets.h.


The documentation for this class was generated from the following files:

Generated on Sat Feb 21 00:28:25 2009 for Bos Wars by  doxygen 1.5.6