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

DamageBarWidget Class Reference

Inheritance diagram for DamageBarWidget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DamageBarWidget (PG_Widget *parent, const PG_Rect &rect, ContainerBase *container)
void repaint ()
void eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
 overridable eventhandler to blit the widget contents to the screen

Constructor & Destructor Documentation

DamageBarWidget::DamageBarWidget PG_Widget parent,
const PG_Rect rect,
ContainerBase container
[inline]
 

Definition at line 1794 of file cargodialog.cpp.


Member Function Documentation

void DamageBarWidget::eventBlit SDL_Surface *  surface,
const PG_Rect src,
const PG_Rect dst
[inline, virtual]
 

overridable eventhandler to blit the widget contents to the screen

Parameters:
surface pointer to SDL_Surface to be blitted
src source rectangle (client coordinates)
dst destination rectangle (screen coordinates) Override this eventhandler to perform custom blitting behaviour (without drawing onto the widget surface).

Reimplemented from PG_ThemeWidget.

Definition at line 1805 of file cargodialog.cpp.

References ContainerBase::damage, PG_Application::GetScreen(), PG_Widget::GetTransparency(), DI_Color::MapRGBA(), ContainerBase::repairableDamage(), and Surface::Wrap().

void DamageBarWidget::repaint  )  [inline]
 

Definition at line 1800 of file cargodialog.cpp.

References PG_Widget::Update().

Referenced by CargoDialog::userHandler().


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