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

#include <vehicletypeselector.h>

Inheritance diagram for VehicleTypeBaseWidget:
Inheritance graph
[legend]

Public Member Functions

 VehicleTypeBaseWidget (PG_Widget *parent, const PG_Point &pos, int width, const VehicleType *vehicletype, const Player &player)
 
ASCString getName () const
 
const VehicleTypegetVehicletype () 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 31 of file vehicletypeselector.h.

Constructor & Destructor Documentation

VehicleTypeBaseWidget::VehicleTypeBaseWidget ( PG_Widget *  parent,
const PG_Point &  pos,
int  width,
const VehicleType vehicletype,
const Player player 
)

Member Function Documentation

int VehicleTypeBaseWidget::buttonXPos ( int  width,
int  num 
)
staticprotected
void VehicleTypeBaseWidget::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
)
protectedvirtual
ASCString VehicleTypeBaseWidget::getName ( ) const
virtual

Implements SelectionWidget.

Definition at line 63 of file vehicletypeselector.cpp.

References VehicleType::getName().

const VehicleType* VehicleTypeBaseWidget::getVehicletype ( ) const
inline

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