TGUI
0.7.8
|
Public Member Functions | |
TabRenderer (Tab *tab) | |
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 | setTextColor (const Color &color) |
Set the text color that will be used inside the tabs. More... | |
void | setSelectedTextColor (const Color &color) |
Set the text color that will be used for the selected tab. More... | |
void | setDistanceToSide (float distanceToSide) |
Changes the distance between the text and the side of the tab. More... | |
void | setBackgroundColor (const Color &color) |
Set the background color of the tabs. More... | |
void | setSelectedBackgroundColor (const Color &color) |
Set the background color of the selected tab. More... | |
void | setBorderColor (const Color &color) |
Set the color of the borders. More... | |
void | setNormalTexture (const Texture &texture) |
Change the image that is displayed when the tab is not selected. More... | |
void | setSelectedTexture (const Texture &texture) |
Change the image that is displayed when the tab is selected. More... | |
Public Member Functions inherited from tgui::WidgetRenderer | |
virtual | ~WidgetRenderer () |
Virtual destructor. | |
Public Member Functions inherited from tgui::WidgetBorders | |
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... | |
|
inline |
Constructor.
tab | The tab that is connected to the renderer |
|
overridevirtual |
Retrieve the value of a certain property.
property | The property that you would like to retrieve |
Reimplemented from tgui::WidgetRenderer.
|
overridevirtual |
Get a map with all properties and their values.
Reimplemented from tgui::WidgetRenderer.
void tgui::TabRenderer::setBackgroundColor | ( | const Color & | color | ) |
Set the background color of the tabs.
color | The new background color. |
Note that this color is ignored when a normal and selected image were set.
void tgui::TabRenderer::setBorderColor | ( | const Color & | color | ) |
Set the color of the borders.
color | The new border color. |
void tgui::TabRenderer::setDistanceToSide | ( | float | distanceToSide | ) |
Changes the distance between the text and the side of the tab.
distanceToSide | distance between the text and the side of the tab |
void tgui::TabRenderer::setNormalTexture | ( | const Texture & | texture | ) |
Change the image that is displayed when the tab is not selected.
texture | New normal tab texture |
When this image and the selected image are set, the background color properties will be ignored. Pass an empty string to unset the image, in this case the background color properties will be used again.
|
overridevirtual |
Change a property of the renderer.
property | The property that you would like to change |
value | The new serialized value that you like to assign to the property |
Exception | when deserialization fails or when the widget does not have this property. |
Exception | when loading scrollbar fails with the theme connected to the list box |
Reimplemented from tgui::WidgetRenderer.
|
overridevirtual |
Change a property of the renderer.
property | The property that you would like to change |
value | The new value that you like to assign to the property. The ObjectConverter is implicitly constructed from the possible value types. |
Exception | for unknown properties or when value was of a wrong type. |
Exception | when loading scrollbar fails with the theme connected to the list box |
Reimplemented from tgui::WidgetRenderer.
void tgui::TabRenderer::setSelectedBackgroundColor | ( | const Color & | color | ) |
Set the background color of the selected tab.
color | The new background color. |
Note that this color is ignored when a normal and selected image were set.
void tgui::TabRenderer::setSelectedTextColor | ( | const Color & | color | ) |
Set the text color that will be used for the selected tab.
color | The new text color. |
void tgui::TabRenderer::setSelectedTexture | ( | const Texture & | texture | ) |
Change the image that is displayed when the tab is selected.
texture | New selected tab texture |
When this image and the normal image are set, the background color properties will be ignored. Pass an empty string to unset the image, in this case the background color properties will be used again.
void tgui::TabRenderer::setTextColor | ( | const Color & | color | ) |
Set the text color that will be used inside the tabs.
color | The new text color. |