Displays progress by taking a percentage and sizing the bar appropriately.
Public Member Functions | |
PG_ProgressBar (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const char *style="Progressbar") | |
~PG_ProgressBar () | |
void | SetProgress (double p) |
Set the progress of the widget. | |
void | LoadThemeStyle (const char *widgettype) |
Load a specific themestyle. | |
void | SetDrawPercentage (bool drawit=true) |
Toggle drawing of the percentage text. | |
Protected Member Functions | |
void | eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
overridable eventhandler to blit the widget contents to the screen |
|
|
|
|
|
overridable eventhandler to blit the widget contents to the screen
Reimplemented from PG_ThemeWidget. |
|
Load a specific themestyle.
Reimplemented from PG_ThemeWidget. |
|
Toggle drawing of the percentage text.
|
|
Set the progress of the widget.
|