_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
CButtonPanel Class Reference

#include <ui.h>

Public Member Functions

 CButtonPanel ()
 

Public Attributes

CGraphicG
 
int X
 
int Y
 
std::vector< CUIButtonButtons
 
CColor AutoCastBorderColorRGB
 
bool ShowCommandKey
 

botpanel.cpp - The bottom panel.

void Draw ()
 
void Update ()
 
void DoClicked (int button)
 
int DoKey (int key)
 

Constructor & Destructor Documentation

CButtonPanel::CButtonPanel ( )
inline

Member Function Documentation

void CButtonPanel::DoClicked ( int  button)

Handle bottom button clicked.

Parameters
buttonButton that was clicked.
int CButtonPanel::DoKey ( int  key)

Lookup key for bottom panel buttons.

Parameters
keyInternal key symbol for pressed key.
Returns
True, if button is handled (consumed).
void CButtonPanel::Draw ( )

Draw button panel.

Draw all action buttons.

void CButtonPanel::Update ( )

Update button panel.

Member Data Documentation

CColor CButtonPanel::AutoCastBorderColorRGB
std::vector<CUIButton> CButtonPanel::Buttons
CGraphic* CButtonPanel::G
bool CButtonPanel::ShowCommandKey
int CButtonPanel::X
int CButtonPanel::Y

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