|
Public Member Functions |
| GStaticText (GContainer *parent=NULL) |
| Simple constructor for GStaticText.
|
virtual void | Create (float x, float y, float width, float height, ResourceID font, std::string text="", GewiJustify just=GJ_CENTER, ResourceID backgroundImg=GewiEngine::InvalidID) |
| GButton's create function, must be called to set up actual button.
|
virtual void | Message (SDL_Event *rawEvent, GewiEvent event, Uint16 mouseX, Uint16 mouseY, char ch) |
| Overload of Message, used to recieve messages.
|
virtual void | Show () |
| Draws static label to the screen.
|
void | SetText (std::string text) |
| Set text of label.
|
std::string | GetText () |
| Get current text in label.
|
Protected Attributes |
ResourceID | rBackgroundImage |
| Image for background of label (often no image).
|
ResourceID | rFont |
| Font to use for label.
|
std::string | rText |
| Current text of label.
|
ZE::ZImage | rTextBuf |
| Text buffer ZImage, used internally.
|
int | rXOff |
| Calculated X Offset for text, calculated from justification.
|
int | rYOff |
| Calculated Y Offset for text, calculated from justification.
|
GewiJustify | rJustify |
| Justification, can be or'ed together enums from _GewiJustify, see documentation of that enum for details.
|