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

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::CButtonPanel ( )
inline

Member Function Documentation

◆ DoClicked()

void CButtonPanel::DoClicked ( int  button)

Handle bottom button clicked.

Parameters
buttonButton that was clicked.

◆ DoKey()

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

◆ Draw()

void CButtonPanel::Draw ( )

Draw button panel.

Draw all action buttons.

◆ Update()

void CButtonPanel::Update ( )

Update button panel.

Member Data Documentation

◆ AutoCastBorderColorRGB

CColor CButtonPanel::AutoCastBorderColorRGB

◆ Buttons

std::vector<CUIButton> CButtonPanel::Buttons

◆ G

CGraphic* CButtonPanel::G

◆ ShowCommandKey

bool CButtonPanel::ShowCommandKey

◆ X

int CButtonPanel::X

◆ Y

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.