Advanced Strategic Command
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
VehicleBaseWidget Class Reference

#include <vehicletypeselector.h>

Inheritance diagram for VehicleBaseWidget:
Inheritance graph
[legend]

Public Member Functions

 VehicleBaseWidget (PG_Widget *parent, const PG_Point &pos, int width, const Vehicle *vehicle, const Player &player)
 
ASCString getName () const
 
- Public Member Functions inherited from SelectionWidget
void setSelectionCallback (SelectionCallBack *callBack)
 
virtual ~SelectionWidget ()
 
virtual int gap ()
 

Protected Member Functions

void display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 
- Protected Member Functions inherited from SelectionWidget
 SelectionWidget (PG_Widget *parent, const PG_Rect &rect)
 
bool eventMouseButtonUp (const SDL_MouseButtonEvent *button)
 
bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
 
void eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 

Static Protected Member Functions

static int buttonXPos (int width, int num)
 

Additional Inherited Members

- Public Types inherited from SelectionWidget
typedef Loki::Functor< bool,
LOKI_TYPELIST_1(const
SelectionWidget *) > 
SelectionCallBack
 
- Public Attributes inherited from SelectionWidget
sigc::signal< void, const
SelectionWidget * > 
itemSelected
 
sigc::signal< void, const
SelectionWidget * > 
itemMarked
 

Detailed Description

Definition at line 46 of file vehicletypeselector.h.

Constructor & Destructor Documentation

VehicleBaseWidget::VehicleBaseWidget ( PG_Widget *  parent,
const PG_Point &  pos,
int  width,
const Vehicle vehicle,
const Player player 
)

Member Function Documentation

int VehicleBaseWidget::buttonXPos ( int  width,
int  num 
)
staticprotected

Definition at line 107 of file vehicletypeselector.cpp.

Referenced by VehicleBaseWidget().

void VehicleBaseWidget::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
)
protectedvirtual
ASCString VehicleBaseWidget::getName ( ) const
virtual

Implements SelectionWidget.

Definition at line 123 of file vehicletypeselector.cpp.

References Vehicle::getName().


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