TGUI
0.7.8
|
Public Member Functions | |
RadioButtonRenderer (RadioButton *radioButton) | |
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) |
Changes the color of the text. More... | |
void | setTextColorNormal (const Color &color) |
Changes the color of the text in normal state (mouse not on top of the radio button). More... | |
void | setTextColorHover (const Color &color) |
Changes the color of the text in hover state (mouse is standing on top of the radio button). More... | |
void | setBackgroundColor (const Color &color) |
Changes the background color. More... | |
void | setBackgroundColorNormal (const Color &color) |
Changes the background color in normal state (mouse is not on top of the radio button). More... | |
void | setBackgroundColorHover (const Color &color) |
Changes the background color in hover state (mouse is standing on top of the radio button). More... | |
void | setForegroundColor (const Color &color) |
Changes the foreground color. More... | |
void | setForegroundColorNormal (const Color &color) |
Changes the foreground color in normal state (mouse is not on top of the radio button). More... | |
void | setForegroundColorHover (const Color &color) |
Changes the foreground color in hover state (mouse is standing on top of the radio button). More... | |
void | setCheckColor (const Color &color) |
Changes the color that is used to fill the radio button when it is checked. More... | |
void | setCheckColorNormal (const Color &color) |
Changes the color that is used to fill the radio button when it is checked (mouse is not on radio button). More... | |
void | setCheckColorHover (const Color &color) |
Changes the color that is used to fill the radio button when it is checked (mouse is on top of radio button). More... | |
void | setUncheckedTexture (const Texture &texture) |
Change the image that is displayed when the checkbox is not checked. More... | |
void | setCheckedTexture (const Texture &texture) |
Change the image that is displayed when the checkbox is checked. More... | |
void | setUncheckedHoverTexture (const Texture &texture) |
Change the image that is displayed when the checkbox is not checked and the mouse is on top of the checkbox. More... | |
void | setCheckedHoverTexture (const Texture &texture) |
Change the image that is displayed when the checkbox is checked and the mouse is on top of the checkbox. More... | |
void | setFocusedTexture (const Texture &texture) |
Change the image that is displayed on top of the checkbox when it is focused. More... | |
Public Member Functions inherited from tgui::WidgetRenderer | |
virtual | ~WidgetRenderer () |
Virtual destructor. | |
Public Member Functions inherited from tgui::WidgetPadding | |
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 Padding | getPadding () const |
Returns the size of the padding. More... | |
|
inline |
Constructor.
radioButton | The radio button 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::RadioButtonRenderer::setBackgroundColor | ( | const Color & | color | ) |
Changes the background color.
This color is ignored when checked and unchecked images are set.
color | New background color |
This color can be seen as the border color. It is only visible when there is some padding.
This color will overwrite the color for both the normal and hover state.
void tgui::RadioButtonRenderer::setBackgroundColorHover | ( | const Color & | color | ) |
Changes the background color in hover state (mouse is standing on top of the radio button).
This color is ignored when checked and unchecked images are set.
color | New background color |
This color can be seen as the border color. It is only visible when there is some padding.
void tgui::RadioButtonRenderer::setBackgroundColorNormal | ( | const Color & | color | ) |
Changes the background color in normal state (mouse is not on top of the radio button).
This color is ignored when checked and unchecked images are set.
color | New background color |
This color can be seen as the border color. It is only visible when there is some padding.
void tgui::RadioButtonRenderer::setCheckColor | ( | const Color & | color | ) |
Changes the color that is used to fill the radio button when it is checked.
This color is ignored when checked and unchecked images are set.
color | New check color |
This color will overwrite the color for both the normal and hover state.
void tgui::RadioButtonRenderer::setCheckColorHover | ( | const Color & | color | ) |
Changes the color that is used to fill the radio button when it is checked (mouse is on top of radio button).
This color is ignored when checked and unchecked images are set.
color | New check color |
void tgui::RadioButtonRenderer::setCheckColorNormal | ( | const Color & | color | ) |
Changes the color that is used to fill the radio button when it is checked (mouse is not on radio button).
This color is ignored when checked and unchecked images are set.
color | New check color |
void tgui::RadioButtonRenderer::setCheckedHoverTexture | ( | const Texture & | texture | ) |
Change the image that is displayed when the checkbox is checked and the mouse is on top of the checkbox.
texture | The new checked hover texture |
This only has effect when the normal checked and unchecked images are also set. Pass an empty string to unset the image.
void tgui::RadioButtonRenderer::setCheckedTexture | ( | const Texture & | texture | ) |
Change the image that is displayed when the checkbox is checked.
texture | The new checked texture |
When checked and unchecked images are set, the background and foreground color properties will be ignored. Pass an empty string to unset the image.
void tgui::RadioButtonRenderer::setFocusedTexture | ( | const Texture & | texture | ) |
Change the image that is displayed on top of the checkbox when it is focused.
texture | The new checked hover texture |
This only has effect when the normal checked and unchecked images are also set. Pass an empty string to unset the image.
void tgui::RadioButtonRenderer::setForegroundColor | ( | const Color & | color | ) |
Changes the foreground color.
This color is ignored when checked and unchecked images are set.
color | New foreground color |
This color is drawn on top of the background color, but it does not overdraw it completely when padding is set. When there is padding, the background color will thus serve as the border color.
This color will overwrite the color for both the normal and hover state.
void tgui::RadioButtonRenderer::setForegroundColorHover | ( | const Color & | color | ) |
Changes the foreground color in hover state (mouse is standing on top of the radio button).
This color is ignored when checked and unchecked images are set.
color | New foreground color |
This color is drawn on top of the background color, but it does not overdraw it completely when padding is set. When there is padding, the background color will thus serve as the border color.
void tgui::RadioButtonRenderer::setForegroundColorNormal | ( | const Color & | color | ) |
Changes the foreground color in normal state (mouse is not on top of the radio button).
This color is ignored when checked and unchecked images are set.
color | New foreground color |
This color is drawn on top of the background color, but it does not overdraw it completely when padding is set. When there is padding, the background color will thus serve as the border color.
This color will overwrite the color for both the normal and hover state.
|
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. |
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. |
Reimplemented from tgui::WidgetRenderer.
void tgui::RadioButtonRenderer::setTextColor | ( | const Color & | color | ) |
Changes the color of the text.
color | New text color |
This color will overwrite the color for both the normal and hover state.
void tgui::RadioButtonRenderer::setTextColorHover | ( | const Color & | color | ) |
Changes the color of the text in hover state (mouse is standing on top of the radio button).
color | New text color |
void tgui::RadioButtonRenderer::setTextColorNormal | ( | const Color & | color | ) |
Changes the color of the text in normal state (mouse not on top of the radio button).
color | New text color |
void tgui::RadioButtonRenderer::setUncheckedHoverTexture | ( | const Texture & | texture | ) |
Change the image that is displayed when the checkbox is not checked and the mouse is on top of the checkbox.
texture | The new unchecked hover texture |
This only has effect when the normal checked and unchecked images are also set. Pass an empty string to unset the image.
void tgui::RadioButtonRenderer::setUncheckedTexture | ( | const Texture & | texture | ) |
Change the image that is displayed when the checkbox is not checked.
texture | The new unchecked texture |
When checked and unchecked images are set, the background and foreground color properties will be ignored. Pass an empty string to unset the image.