Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SelectionItemWidget Class Reference

#include <maped-mainscreen.h>

Inheritance diagram for SelectionItemWidget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 SelectionItemWidget (PG_Widget *parent, const PG_Rect &pos)
void set (const MapComponent *item)

Protected Member Functions

void eventDraw (SDL_Surface *surface, const PG_Rect &rect)
 overridable eventhandler to draw the object surface

Constructor & Destructor Documentation

SelectionItemWidget::SelectionItemWidget PG_Widget parent,
const PG_Rect pos
[inline]
 

Definition at line 43 of file maped-mainscreen.h.


Member Function Documentation

void SelectionItemWidget::eventDraw SDL_Surface *  surface,
const PG_Rect rect
[inline, protected, virtual]
 

overridable eventhandler to draw the object surface

Parameters:
surface the widgets drawing surface.
rect rectangle to draw within. This eventhandler is called whenevener the widget contents should be redrawn.
Note:
Only widgets with drawing surfaces (see the constructor) will call this eventhandler.

Reimplemented from PG_Widget.

Definition at line 49 of file maped-mainscreen.h.

References PG_Rect::Height(), PG_Rect::Width(), and Surface::Wrap().

void SelectionItemWidget::set const MapComponent item  )  [inline]
 

Definition at line 47 of file maped-mainscreen.h.

References PG_Widget::Redraw().

Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget().


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:20:32 2008 for Advanced Strategic Command by  doxygen 1.4.2