#include <FlexiLabel.h>
Public Member Functions | |
FlexiLabel (const FlexiPosition &p, const FlexiSize &s, const char *caption, int align, FlexiFont *font, int size, int flags, FlexiWidget *prnt) | |
virtual | ~FlexiLabel () |
void | resize (const FlexiPosition &p, const FlexiSize &s) |
virtual void | paint () |
void | setCaption (std::string &caption) |
std::string & | getCaption () |
void | setFont (FlexiFont *font) |
void | setFontSize (int size) |
void | setAlignment (int align) |
void | setShadow (bool shadowed) |
FlexiLabel::FlexiLabel | ( | const FlexiPosition & | p, | |
const FlexiSize & | s, | |||
const char * | caption, | |||
int | align, | |||
FlexiFont * | font, | |||
int | size, | |||
int | flags, | |||
FlexiWidget * | prnt | |||
) |
Constructor
FlexiLabel::~FlexiLabel | ( | ) | [virtual] |
Destructor
void FlexiLabel::resize | ( | const FlexiPosition & | p, | |
const FlexiSize & | s | |||
) | [virtual] |
Resize the widget
p | the new position | |
s | the new size |
Reimplemented from FlexiWidget.
void FlexiLabel::paint | ( | ) | [virtual] |
Paint the widget
Reimplemented from FlexiWidget.
void FlexiLabel::setCaption | ( | std::string & | caption | ) |
Sets the caption of the label
caption | The string to set |
std::string & FlexiLabel::getCaption | ( | ) |
Gets the caption of the label
void FlexiLabel::setFont | ( | FlexiFont * | font | ) |
Sets the font of the label
font | A loaded font |
void FlexiLabel::setFontSize | ( | int | size | ) |
Sets the font size
size | The size of the font |
void FlexiLabel::setAlignment | ( | int | align | ) |
Sets the alignment of the label
Label | alignment |
void FlexiLabel::setShadow | ( | bool | shadowed | ) |
Sets the shadow visibility
shadowed | as boolean |