Advanced Strategic Command
Public Member Functions | Protected Member Functions | List of all members
TechWidget Class Reference
Inheritance diagram for TechWidget:
Inheritance graph

Public Member Functions

 TechWidget (PG_Widget *parent, const PG_Point &pos, int width, const Technology *technology, int player=0)
ASCString getName () const
const TechnologygetTechnology () 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)

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 41 of file choosetech.cpp.

Constructor & Destructor Documentation

TechWidget::TechWidget ( PG_Widget *  parent,
const PG_Point &  pos,
int  width,
const Technology technology,
int  player = 0 

Member Function Documentation

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

Implements SelectionWidget.

Definition at line 89 of file choosetech.cpp.

References Technology::name.

const Technology* TechWidget::getTechnology ( ) const

Definition at line 51 of file choosetech.cpp.

Referenced by TechnologySelectionItemFactory::itemSelected().

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