TGUI
0.7.8
|
Base class for all renderer classes. More...
#include <TGUI/Widget.hpp>
Public Member Functions | |
virtual | ~WidgetRenderer () |
Virtual destructor. | |
virtual void | setProperty (std::string property, const std::string &value) |
Change a property of the renderer. More... | |
virtual void | setProperty (std::string property, ObjectConverter &&value) |
Change a property of the renderer. More... | |
virtual ObjectConverter | getProperty (std::string property) const |
Retrieve the value of a certain property. More... | |
virtual std::map< std::string, ObjectConverter > | getPropertyValuePairs () const |
Get a map with all properties and their values. More... | |
Base class for all renderer classes.
|
virtual |
Retrieve the value of a certain property.
property | The property that you would like to retrieve |
Reimplemented in tgui::ButtonRenderer, tgui::ChatBoxRenderer, tgui::ChildWindowRenderer, tgui::ComboBoxRenderer, tgui::EditBoxRenderer, tgui::KnobRenderer, tgui::LabelRenderer, tgui::ListBoxRenderer, tgui::MenuBarRenderer, tgui::MessageBoxRenderer, tgui::PanelRenderer, tgui::ProgressBarRenderer, tgui::RadioButtonRenderer, tgui::ScrollbarRenderer, tgui::SliderRenderer, tgui::SpinButtonRenderer, tgui::TabRenderer, and tgui::TextBoxRenderer.
|
virtual |
Get a map with all properties and their values.
Reimplemented in tgui::ButtonRenderer, tgui::ChatBoxRenderer, tgui::ChildWindowRenderer, tgui::ComboBoxRenderer, tgui::EditBoxRenderer, tgui::KnobRenderer, tgui::LabelRenderer, tgui::ListBoxRenderer, tgui::MenuBarRenderer, tgui::MessageBoxRenderer, tgui::PanelRenderer, tgui::ProgressBarRenderer, tgui::RadioButtonRenderer, tgui::ScrollbarRenderer, tgui::SliderRenderer, tgui::SpinButtonRenderer, tgui::TabRenderer, and tgui::TextBoxRenderer.
|
virtual |
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. |
Reimplemented in tgui::ButtonRenderer, tgui::ChatBoxRenderer, tgui::ChildWindowRenderer, tgui::ComboBoxRenderer, tgui::EditBoxRenderer, tgui::KnobRenderer, tgui::LabelRenderer, tgui::ListBoxRenderer, tgui::MenuBarRenderer, tgui::MessageBoxRenderer, tgui::PanelRenderer, tgui::ProgressBarRenderer, tgui::RadioButtonRenderer, tgui::ScrollbarRenderer, tgui::SliderRenderer, tgui::SpinButtonRenderer, tgui::TabRenderer, and tgui::TextBoxRenderer.
|
virtual |
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. |
Reimplemented in tgui::ButtonRenderer, tgui::ChatBoxRenderer, tgui::ChildWindowRenderer, tgui::ComboBoxRenderer, tgui::EditBoxRenderer, tgui::KnobRenderer, tgui::LabelRenderer, tgui::ListBoxRenderer, tgui::MenuBarRenderer, tgui::MessageBoxRenderer, tgui::PanelRenderer, tgui::ProgressBarRenderer, tgui::RadioButtonRenderer, tgui::ScrollbarRenderer, tgui::SliderRenderer, tgui::SpinButtonRenderer, tgui::TabRenderer, and tgui::TextBoxRenderer.