Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PlayerColorPanel Class Reference

Inheritance diagram for PlayerColorPanel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PlayerColorPanel ()
void Show (bool fade=false)
 Make a widget visible (if you want a widget to show up the first time, use this method).
void Hide (bool fade=false)
 Hide a widget.
bool eventKeyDown (const SDL_KeyboardEvent *key)
 Overridable Eventhandler for a SDL_KeyboardEvent message.
bool idler ()

Constructor & Destructor Documentation

PlayerColorPanel::PlayerColorPanel  )  [inline]
 

Definition at line 425 of file edglobal.cpp.

References actmap, bar(), PG_Application::GetApp(), GameMap::getPlayer(), idler(), PG_Rect::PG_Rect(), PG_Widget::SetFontSize(), and ASCString::toString().


Member Function Documentation

bool PlayerColorPanel::eventKeyDown const SDL_KeyboardEvent *  key  )  [inline, virtual]
 

Overridable Eventhandler for a SDL_KeyboardEvent message.

This handler is called when a key changed it's state from unpressed to pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
key SDL_KeyboardEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

Definition at line 451 of file edglobal.cpp.

References Hide(), and SelectionHolder::setPlayer().

void PlayerColorPanel::Hide bool  fade = false  )  [inline, virtual]
 

Hide a widget.

Parameters:
fade do a smooth fade out if true (non-threaded)

Reimplemented from PG_Widget.

Definition at line 444 of file edglobal.cpp.

References PG_Widget::Hide().

Referenced by eventKeyDown(), idler(), and showPlayerPanel().

bool PlayerColorPanel::idler  )  [inline]
 

Definition at line 461 of file edglobal.cpp.

References Hide(), PG_Widget::IsVisible(), and ticker.

Referenced by PlayerColorPanel().

void PlayerColorPanel::Show bool  fade = false  )  [inline, virtual]
 

Make a widget visible (if you want a widget to show up the first time, use this method).

Parameters:
fade do a smooth fade in if true (non-threaded)

Reimplemented from PG_Widget.

Definition at line 438 of file edglobal.cpp.

References PG_Widget::Show(), and ticker.

Referenced by showPlayerPanel().


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:19:48 2008 for Advanced Strategic Command by  doxygen 1.4.2