|
| LabelRenderer (Label *label) |
| Constructor. More...
|
|
virtual void | setProperty (std::string property, const std::string &value) override |
| Change a property of the renderer. More...
|
|
virtual void | setProperty (std::string property, ObjectConverter &&value) override |
| Change a property of the renderer. More...
|
|
virtual ObjectConverter | getProperty (std::string property) const override |
| Retrieve the value of a certain property. More...
|
|
virtual std::map< std::string, ObjectConverter > | getPropertyValuePairs () const override |
| Get a map with all properties and their values. More...
|
|
void | setPadding (const Padding &padding) override |
| Changes the size of the padding. More...
|
|
void | setTextColor (const Color &color) |
| Changes the color of the text. More...
|
|
void | setBackgroundColor (const Color &color) |
| Changes the background color of the label. More...
|
|
void | setBorderColor (const Color &color) |
| Changes the color of the borders. More...
|
|
virtual void | setPadding (const Padding &padding) |
| Changes the size of the padding. More...
|
|
void | setPadding (float leftPadding, float topPadding, float rightPadding, float bottomPadding) |
| Changes the size of the padding. More...
|
|
void | setPadding (float width, float height) |
| Changes the size of the padding. More...
|
|
virtual | ~WidgetRenderer () |
| Virtual destructor.
|
|
virtual void | setBorders (const Borders &borders) |
| Changes the size of the borders. More...
|
|
void | setBorders (float leftBorder, float topBorder, float rightBorder, float bottomBorder) |
| Changes the size of the borders. More...
|
|
void | setBorders (float width, float height) |
| Changes the size of the borders. More...
|
|
virtual Borders | getBorders () const |
| Returns the size of the borders as a tgui::Borders. More...
|
|
void | setPadding (float leftPadding, float topPadding, float rightPadding, float bottomPadding) |
| Changes the size of the padding. More...
|
|
void | setPadding (float width, float height) |
| Changes the size of the padding. More...
|
|
virtual Padding | getPadding () const |
| Returns the size of the padding. More...
|
|
void tgui::LabelRenderer::setBackgroundColor |
( |
const Color & |
color | ) |
|
Changes the background color of the label.
- Parameters
-
color | New background color |
The background color is transparent by default.
When auto-size is enabled (default), then the background is just as big as the text. When a manual size is set, the background will fill this whole area.