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

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,
SelectionWidget *) > 
- Public Attributes inherited from SelectionWidget
sigc::signal< void, const
SelectionWidget * > 
sigc::signal< void, const
SelectionWidget * > 

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 
void VehicleTypeBaseWidget::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
ASCString VehicleTypeBaseWidget::getName ( ) const

Implements SelectionWidget.

Definition at line 63 of file vehicletypeselector.cpp.

References VehicleType::getName().

const VehicleType* VehicleTypeBaseWidget::getVehicletype ( ) const

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