A text label (unmodifiable by end user). Has attributes for font style, alignment, etc.
dblbuffer.cpp, paratest.cpp, and sigc.cpp.
Public Types | |
enum | TextAlign { LEFT, CENTER, RIGHT } |
Public Member Functions | |
PG_Label (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const char *text=NULL, const char *style="Label") | |
Only constructor. | |
~PG_Label () | |
Only destructor. | |
void | LoadThemeStyle (const char *widgettype) |
Load a style from the theme definition. | |
void | LoadThemeStyle (const char *widgettype, const char *objectname) |
Load a style from the theme definition. | |
void | SetAlignment (TextAlign a) |
Sets text alignment. | |
SDL_Surface * | SetIcon (const char *filename) |
SDL_Surface * | SetIcon (SDL_Surface *icon) |
SDL_Surface * | GetIcon () |
void | SetIndent (Uint16 indent) |
Set the text indentation. | |
Uint16 | GetIndent () |
Returns the text indentation. | |
Protected Member Functions | |
void | eventDraw (SDL_Surface *surface, const PG_Rect &rect) |
Draw event handler. | |
void | eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
overridable eventhandler to blit the widget contents to the screen | |
Protected Attributes | |
SDL_Surface * | my_srfIcon |
|
|
|
Only constructor.
|
|
Only destructor.
|
|
overridable eventhandler to blit the widget contents to the screen
Reimplemented from PG_Widget. Reimplemented in PG_ColumnItem, and PG_ListBoxItem. |
|
Draw event handler.
Reimplemented from PG_Widget. |
|
|
|
Returns the text indentation.
|
|
Load a style from the theme definition.
Reimplemented from PG_Widget. Reimplemented in PG_ListBoxItem. |
|
Load a style from the theme definition.
Reimplemented from PG_Widget. |
|
Sets text alignment.
|
|
|
|
|
|
Set the text indentation.
|
|
|