


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 std::string &text=PG_NULLSTR, const std::string &style="Label") | |
| Only constructor. | |
| ~PG_Label () | |
| Only destructor. | |
| void | LoadThemeStyle (const std::string &widgettype) |
| Load a style from the theme definition. | |
| void | LoadThemeStyle (const std::string &widgettype, const std::string &objectname) |
| Load a style from the theme definition. | |
| void | SetAlignment (TextAlign a) |
| Sets text alignment. | |
| SDL_Surface * | SetIcon (const std::string &filename) |
| SDL_Surface * | SetIcon (SDL_Surface *icon) |
| SDL_Surface * | GetIcon () |
| void | SetIndent (Uint16 indent) |
| Set the text indentation. | |
| Uint16 | GetIndent () |
| Returns the text indentation. | |
| void | SetSizeByText (int Width=0, int Height=0, const std::string &Text=PG_NULLSTR) |
| Set widget size by size of text (should be used before Show() or AddWidget()). | |
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.
|
|
||||||||||||||||
|
Set widget size by size of text (should be used before Show() or AddWidget()).
Reimplemented from PG_Widget. |
|
|
|