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

CButtonPanel Class Reference

#include <ui.h>

List of all members.


Public Member Functions

 CButtonPanel ()
botpanel.cpp - The bottom panel.
void Draw ()
void Update ()
void DoClicked (int button)
int DoKey (int key)

Public Attributes

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

Constructor & Destructor Documentation

CButtonPanel::CButtonPanel (  )  [inline]


Member Function Documentation

void CButtonPanel::Draw (  ) 

Draw button panel.

Draw all action buttons.

void CButtonPanel::Update (  ) 

Update button panel.

void CButtonPanel::DoClicked ( int  button  ) 

Handle bottom button clicked.

Parameters:
button Button that was clicked.

int CButtonPanel::DoKey ( int  key  ) 

Lookup key for bottom panel buttons.

Parameters:
key Internal key symbol for pressed key.
Returns:
True, if button is handled (consumed).


Member Data Documentation


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.