|
void | setBorders (const Borders &borders) |
| Changes the size of the borders.
|
|
Borders | getBorders () const |
| Returns the size of the borders.
|
|
void | setTextDistanceRatio (float ratio) |
| Changes the relative distance between the radio button and the text next to it.
|
|
float | getTextDistanceRatio () const |
| The relative distance between the radio button and the text next to it.
|
|
void | setTextColor (Color color) |
| Changes the color of the text.
|
|
Color | getTextColor () const |
| Returns the text color.
|
|
void | setTextColorHover (Color color) |
| Changes the color of the text in hover state (mouse is standing on top of the radio button)
|
|
Color | getTextColorHover () const |
| Returns the text color in the hover state (mouse on radio button)
|
|
void | setTextColorDisabled (Color color) |
| Changes the color of the text when the radio button is disabled.
|
|
Color | getTextColorDisabled () const |
| Returns the text color when the radio button is disabled.
|
|
void | setTextColorChecked (Color color) |
| Changes the color of the text when the radio button is checked.
|
|
Color | getTextColorChecked () const |
| Returns the text color when the radio button is checked.
|
|
void | setTextColorCheckedHover (Color color) |
| Changes the color of the text in hover state when the radio button is checked.
|
|
Color | getTextColorCheckedHover () const |
| Returns the text color in the hover state when the radio button is checked.
|
|
void | setTextColorCheckedDisabled (Color color) |
| Changes the color of the text when the radio button is checked and disabled.
|
|
Color | getTextColorCheckedDisabled () const |
| Returns the text color when the radio button is checked and disabled.
|
|
void | setBackgroundColor (Color color) |
| Changes the background color.
|
|
Color | getBackgroundColor () const |
| Returns the background color.
|
|
void | setBackgroundColorHover (Color color) |
| Changes the background color in hover state (mouse is standing on top of the radio button)
|
|
Color | getBackgroundColorHover () const |
| Returns the background color in the hover state (mouse on radio button)
|
|
void | setBackgroundColorDisabled (Color color) |
| Changes the background color when the radio button is disabled.
|
|
Color | getBackgroundColorDisabled () const |
| Returns the background color when the radio button is disabled.
|
|
void | setBackgroundColorChecked (Color color) |
| Changes the background color used when the radio button is checked.
|
|
Color | getBackgroundColorChecked () const |
| Returns the background color used when the radio button is checked.
|
|
void | setBackgroundColorCheckedHover (Color color) |
| Changes the background color in hover state used when the radio button is checked.
|
|
Color | getBackgroundColorCheckedHover () const |
| Returns the background color in the hover state used when the radio button is checked.
|
|
void | setBackgroundColorCheckedDisabled (Color color) |
| Changes the background color when the radio button is checked and disabled.
|
|
Color | getBackgroundColorCheckedDisabled () const |
| Returns the background color when the radio button is checked and disabled.
|
|
void | setBorderColor (Color color) |
| Changes the border color.
|
|
Color | getBorderColor () const |
| Returns the border color.
|
|
void | setBorderColorHover (Color color) |
| Changes the border color in hover state (mouse is standing on top of the radio button)
|
|
Color | getBorderColorHover () const |
| Returns the border color in the hover state (mouse on radio button)
|
|
void | setBorderColorDisabled (Color color) |
| Changes the border color when the radio button is disabled.
|
|
Color | getBorderColorDisabled () const |
| Returns the border color when the radio button is disabled.
|
|
void | setBorderColorFocused (Color color) |
| Changes the color of the borders that is used when the radio button is focused (while not hovered)
|
|
Color | getBorderColorFocused () const |
| Returns the color of the borders that is used when the radio button is focused.
|
|
void | setBorderColorChecked (Color color) |
| Changes the border color used when the radio button is checked.
|
|
Color | getBorderColorChecked () const |
| Returns the border color used when the radio button is checked.
|
|
void | setBorderColorCheckedHover (Color color) |
| Changes the border color in hover state used when the radio button is checked.
|
|
Color | getBorderColorCheckedHover () const |
| Returns the border color in the hover state used when the radio button is checked.
|
|
void | setBorderColorCheckedDisabled (Color color) |
| Changes the border color when the radio button is checked and disabled.
|
|
Color | getBorderColorCheckedDisabled () const |
| Returns the border color when the radio button is checked and disabled.
|
|
void | setBorderColorCheckedFocused (Color color) |
| Changes the color of the borders that is used when the radio button is checked and focused (while not hovered)
|
|
Color | getBorderColorCheckedFocused () const |
| Returns the color of the borders that is used when the radio button is checked and focused.
|
|
void | setCheckColor (Color color) |
| Changes the color that is used to fill the radio button when it is checked.
|
|
Color | getCheckColor () const |
| Returns the check color.
|
|
void | setCheckColorHover (Color color) |
| Changes the color that is used to fill the radio button when the mouse is on top of it.
|
|
Color | getCheckColorHover () const |
| Returns the check color used to fill the radio button when the mouse is on top of it.
|
|
void | setCheckColorDisabled (Color color) |
| Changes the color that is used to fill the radio button when the radio button is disabled.
|
|
Color | getCheckColorDisabled () const |
| Returns the check color used to fill the radio button when the radio button is disabled.
|
|
void | setTextureUnchecked (const Texture &texture) |
| Changes the image that is displayed when the checkbox is not checked.
|
|
const Texture & | getTextureUnchecked () const |
| Returns the image that is displayed when the checkbox is not checked.
|
|
void | setTextureChecked (const Texture &texture) |
| Changes the image that is displayed when the checkbox is checked.
|
|
const Texture & | getTextureChecked () const |
| Returns the image that is displayed when the checkbox is checked.
|
|
void | setTextureUncheckedHover (const Texture &texture) |
| Changes the image that is displayed when the checkbox is not checked and the mouse is on top of the checkbox.
|
|
const Texture & | getTextureUncheckedHover () const |
| Returns the image that is displayed when the checkbox is not checked and the mouse is on top of the checkbox.
|
|
void | setTextureCheckedHover (const Texture &texture) |
| Changes the image that is displayed when the checkbox is checked and the mouse is on top of the checkbox.
|
|
const Texture & | getTextureCheckedHover () const |
| Returns the image that is displayed when the checkbox is checked and the mouse is on top of the checkbox.
|
|
void | setTextureUncheckedDisabled (const Texture &texture) |
| Changes the image that is displayed when the checkbox is not checked and the checkbox is disabled.
|
|
const Texture & | getTextureUncheckedDisabled () const |
| Returns the image that is displayed when the checkbox is not checked and the checkbox is disabled.
|
|
void | setTextureCheckedDisabled (const Texture &texture) |
| Changes the image that is displayed when the checkbox is checked and the checkbox is disabled.
|
|
const Texture & | getTextureCheckedDisabled () const |
| Returns the image that is displayed when the checkbox is checked and the checkbox is disabled.
|
|
void | setTextureUncheckedFocused (const Texture &texture) |
| Changes the image that is displayed on top of the checkbox when it is unchecked and focused.
|
|
const Texture & | getTextureUncheckedFocused () const |
| Returns the image that is displayed on top of the checkbox when it is unchecked and focused.
|
|
void | setTextureCheckedFocused (const Texture &texture) |
| Changes the image that is displayed on top of the checkbox when it is checked and focused.
|
|
const Texture & | getTextureCheckedFocused () const |
| Returns the image that is displayed on top of the checkbox when it is checked and focused.
|
|
void | setTextStyle (TextStyles style) |
| Changes the text style.
|
|
TextStyles | getTextStyle () const |
| Returns text style.
|
|
void | setTextStyleChecked (TextStyles style) |
| Changes the text style in the checked state.
|
|
TextStyles | getTextStyleChecked () const |
| Returns text style in the checked state.
|
|
| WidgetRenderer ()=default |
| Default constructor.
|
|
| WidgetRenderer (const std::shared_ptr< RendererData > &data) |
| Construct the renderer from renderer data.
|
|
| WidgetRenderer ()=default |
| Default constructor.
|
|
| WidgetRenderer (const std::shared_ptr< RendererData > &data) |
| Construct the renderer from renderer data.
|
|
virtual | ~WidgetRenderer ()=default |
| Virtual destructor.
|
|
void | setOpacity (float opacity) |
| Changes the opacity of the widget.
|
|
float | getOpacity () const |
| Returns the opacity of the widget.
|
|
void | setOpacityDisabled (float opacity) |
| Changes the opacity of the widget when it is disabled.
|
|
float | getOpacityDisabled () const |
| Returns the opacity of the widget when it is disabled.
|
|
void | setFont (Font font) |
| Changes the font used for the text in the widget.
|
|
Font | getFont () const |
| Returns the font associated with the widget (if any)
|
|
void | setTransparentTexture (bool ignoreTransparentParts) |
| Sets whether mouse events should be ignored on transparent parts of the texture of the widget in normal state.
|
|
bool | getTransparentTexture () const |
| Returns whether mouse events should be ignored on transparent parts of the texture of the widget.
|
|
void | setProperty (const String &property, ObjectConverter &&value) |
| Changes a property of the renderer.
|
|
ObjectConverter | getProperty (const String &property) const |
| Retrieves the value of a certain property.
|
|
const std::map< String, ObjectConverter > & | getPropertyValuePairs () const |
| Gets a map with all properties and their values.
|
|
void | subscribe (const void *id, const std::function< void(const String &property)> &function) |
| Subscribes a callback function to changes in the renderer.
|
|
void | unsubscribe (const void *id) |
| Subscribes a callback function to changes in the renderer.
|
|
void | setData (const std::shared_ptr< RendererData > &data) |
|
std::shared_ptr< RendererData > | getData () const |
| Returns the renderer data.
|
|
std::shared_ptr< RendererData > | clone () const |
| Gets a clone of the renderer data.
|
|
std::shared_ptr< RendererData > | m_data = RendererData::create() |
|