◆ MenuBarRenderer()
tgui::MenuBarRenderer::MenuBarRenderer |
( |
MenuBar * |
menuBar | ) |
|
|
inline |
Constructor.
- Parameters
-
menuBar | The menu bar that is connected to the renderer |
◆ getProperty()
virtual ObjectConverter tgui::MenuBarRenderer::getProperty |
( |
std::string |
property | ) |
const |
|
overridevirtual |
Retrieve the value of a certain property.
- Parameters
-
property | The property that you would like to retrieve |
- Returns
- The value inside a ObjectConverter object which you can extract with the correct get function or an ObjectConverter object with type ObjectConverter::Type::None when the property did not exist.
Reimplemented from tgui::WidgetRenderer.
◆ getPropertyValuePairs()
virtual std::map< std::string, ObjectConverter > tgui::MenuBarRenderer::getPropertyValuePairs |
( |
| ) |
const |
|
overridevirtual |
Get a map with all properties and their values.
- Returns
- Property-value pairs of the renderer
Reimplemented from tgui::WidgetRenderer.
◆ setBackgroundColor()
void tgui::MenuBarRenderer::setBackgroundColor |
( |
const Color & |
backgroundColor | ) |
|
Set the background color that will be used inside the menu bar.
- Parameters
-
backgroundColor | The color of the background of the menu bar |
◆ setBackgroundTexture()
void tgui::MenuBarRenderer::setBackgroundTexture |
( |
const Texture & |
texture | ) |
|
Change the image that is used to fill the entire menu bar.
- Parameters
-
texture | New item background texture |
Pass an empty string to unset the image.
◆ setDistanceToSide()
void tgui::MenuBarRenderer::setDistanceToSide |
( |
float |
distanceToSide | ) |
|
Changes the distance between the text and the side of the menu item.
- Parameters
-
distanceToSide | distance between the text and the side of the menu item |
◆ setItemBackgroundTexture()
void tgui::MenuBarRenderer::setItemBackgroundTexture |
( |
const Texture & |
texture | ) |
|
Change the image that is displayed when the tab is not selected.
- Parameters
-
texture | New item background texture |
Pass an empty string to unset the image.
◆ setProperty() [1/2]
virtual void tgui::MenuBarRenderer::setProperty |
( |
std::string |
property, |
|
|
const std::string & |
value |
|
) |
| |
|
overridevirtual |
Change a property of the renderer.
- Parameters
-
property | The property that you would like to change |
value | The new serialized value that you like to assign to the property |
- Exceptions
-
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.
◆ setProperty() [2/2]
virtual void tgui::MenuBarRenderer::setProperty |
( |
std::string |
property, |
|
|
ObjectConverter && |
value |
|
) |
| |
|
overridevirtual |
Change a property of the renderer.
- Parameters
-
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. |
- Exceptions
-
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.
◆ setSelectedBackgroundColor()
void tgui::MenuBarRenderer::setSelectedBackgroundColor |
( |
const Color & |
selectedBackgroundColor | ) |
|
Set the background color of the selected text that will be used inside the menu bar.
- Parameters
-
selectedBackgroundColor | The color of the background of the selected item |
◆ setSelectedItemBackgroundTexture()
void tgui::MenuBarRenderer::setSelectedItemBackgroundTexture |
( |
const Texture & |
texture | ) |
|
Change the image that is used as background of the selected menu item.
- Parameters
-
texture | New selected item background texture |
Pass an empty string to unset the image.
◆ setSelectedTextColor()
void tgui::MenuBarRenderer::setSelectedTextColor |
( |
const Color & |
selectedTextColor | ) |
|
Set the text color of the selected text that will be used inside the menu bar.
- Parameters
-
selectedTextColor | The color of the text when it is selected |
◆ setTextColor()
void tgui::MenuBarRenderer::setTextColor |
( |
const Color & |
textColor | ) |
|
Set the text color that will be used inside the menu bar.
- Parameters
-
textColor | The color of the text |
The documentation for this class was generated from the following file: