#include <sdllabel.h>
Inheritance diagram for SDLLabel
Public Methods | |
SDLLabel (SDLWidget* parent, SDL_Rect& r, char* text, bool storebackground = true) | |
Only constructor. More... | |
~SDLLabel () | |
Only destructor. More... | |
void | SetText (char* text) |
Sets text. More... | |
void | SetTextFormat (char* text, ...) |
Sets formated text (like printf). More... | |
char* | GetText () |
Returns text. More... | |
void | SetAlignment (int a) |
Sets text alignment. More... | |
void | GetTextExtend (char* text, int& width, int &height) |
SDL_Surface* | SetIcon (char* filename) |
SDL_Surface* | SetIcon (SDL_Surface* icon) |
Static Public Methods | |
void | GetTextExtend (char* text, int& width, int &height, TTF_Font* font = NULL) |
Protected Methods | |
void | eventDraw (SDL_Surface* surface, SDL_Rect* rect) |
Draw event handler. More... | |
void | eventBlit (SDL_Surface* srf, SDL_Rect* src, SDL_Rect* dst) |
Protected Attributes | |
SDL_Surface* | my_srfIcon |
A text label (unmodifiable by end user). Has attributes for font style, alignment, etc.
Definition at line 52 of file sdllabel.h.
|
Only constructor.
|
|
Only destructor.
|
|
Returns text.
|
|
|
|
|
|
Sets text alignment.
|
|
|
|
|
|
Sets text.
|
|
Sets formated text (like printf).
|
|
Reimplemented from SDLDrawObject. Reimplemented in SDLColumnItem, and SDLListBoxItem. |
|
Draw event handler.
Reimplemented from SDLDrawObject. Reimplemented in SDLColumnItem. |
|
Definition at line 103 of file sdllabel.h. |