Advanced Strategic Command
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SelectionWidget Class Referenceabstract

#include <selectionwindow.h>

Inheritance diagram for SelectionWidget:
Inheritance graph
[legend]

Public Types

typedef Loki::Functor< bool,
LOKI_TYPELIST_1(const
SelectionWidget *) > 
SelectionCallBack
 

Public Member Functions

void setSelectionCallback (SelectionCallBack *callBack)
 
virtual ~SelectionWidget ()
 
virtual ASCString getName () const =0
 
virtual int gap ()
 

Public Attributes

sigc::signal< void, const
SelectionWidget * > 
itemSelected
 
sigc::signal< void, const
SelectionWidget * > 
itemMarked
 

Protected Member Functions

 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)
 
virtual void display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)=0
 

Detailed Description

Definition at line 41 of file selectionwindow.h.

Member Typedef Documentation

typedef Loki::Functor<bool, LOKI_TYPELIST_1(const SelectionWidget*) > SelectionWidget::SelectionCallBack

Definition at line 43 of file selectionwindow.h.

Constructor & Destructor Documentation

SelectionWidget::SelectionWidget ( PG_Widget *  parent,
const PG_Rect &  rect 
)
inlineprotected

Definition at line 43 of file selectionwindow.h.

virtual SelectionWidget::~SelectionWidget ( )
inlinevirtual

Definition at line 56 of file selectionwindow.h.

Member Function Documentation

virtual void SelectionWidget::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
)
protectedpure virtual
void SelectionWidget::eventBlit ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 
)
protected

Definition at line 44 of file selectionwindow.cpp.

References display().

bool SelectionWidget::eventMouseButtonDown ( const SDL_MouseButtonEvent *  button)
protected

Definition at line 34 of file selectionwindow.cpp.

References itemMarked.

bool SelectionWidget::eventMouseButtonUp ( const SDL_MouseButtonEvent *  button)
protected

Definition at line 25 of file selectionwindow.cpp.

References itemSelected.

virtual int SelectionWidget::gap ( )
inlinevirtual

Reimplemented in TechAdapterWidget.

Definition at line 64 of file selectionwindow.h.

Referenced by ItemSelectorWidget::reLoad().

virtual ASCString SelectionWidget::getName ( ) const
pure virtual
void SelectionWidget::setSelectionCallback ( SelectionCallBack callBack)
inline

Definition at line 52 of file selectionwindow.h.

Referenced by ItemSelectorWidget::reLoad().

Member Data Documentation

sigc::signal<void,const SelectionWidget*> SelectionWidget::itemMarked

Definition at line 62 of file selectionwindow.h.

Referenced by eventMouseButtonDown(), and ItemSelectorWidget::reLoad().

sigc::signal<void,const SelectionWidget*> SelectionWidget::itemSelected

Definition at line 61 of file selectionwindow.h.

Referenced by eventMouseButtonUp(), and ItemSelectorWidget::reLoad().


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