TGUI
1.1
|
Public Member Functions | |
void | setBorders (const Borders &borders) |
Changes the size of the borders. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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) | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD Color | getTextColorCheckedDisabled () const |
Returns the text color when the radio button is checked and disabled. | |
void | setBackgroundColor (Color color) |
Changes the background color. | |
TGUI_NODISCARD 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) | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD Color | getBackgroundColorCheckedDisabled () const |
Returns the background color when the radio button is checked and disabled. | |
void | setBorderColor (Color color) |
Changes the border color. | |
TGUI_NODISCARD 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) | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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) | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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) | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD TextStyles | getTextStyle () const |
Returns text style. | |
void | setTextStyleChecked (TextStyles style) |
Changes the text style in the checked state. | |
TGUI_NODISCARD TextStyles | getTextStyleChecked () const |
Returns text style in the checked state. | |
WidgetRenderer ()=default | |
Default constructor. | |
WidgetRenderer (const WidgetRenderer &) | |
Copy constructor. | |
WidgetRenderer (WidgetRenderer &&)=default | |
Default move constructor. | |
WidgetRenderer (const std::shared_ptr< RendererData > &data) | |
Construct the renderer from renderer data. | |
![]() | |
WidgetRenderer ()=default | |
Default constructor. | |
WidgetRenderer (const WidgetRenderer &) | |
Copy constructor. | |
WidgetRenderer (WidgetRenderer &&)=default | |
Default move constructor. | |
WidgetRenderer & | operator= (const WidgetRenderer &) |
Copy assignment operator. | |
WidgetRenderer & | operator= (WidgetRenderer &&)=default |
Default move assignment operator. | |
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. | |
TGUI_NODISCARD float | getOpacity () const |
Returns the opacity of the widget. | |
void | setOpacityDisabled (float opacity) |
Changes the opacity of the widget when it is disabled. | |
TGUI_NODISCARD float | getOpacityDisabled () const |
Returns the opacity of the widget when it is disabled. | |
void | setFont (const Font &font) |
Changes the font used for the text in the widget. | |
TGUI_NODISCARD Font | getFont () const |
Returns the font associated with the widget (if any) | |
void | setTextSize (unsigned int size) |
Changes the text size of the widget that is specified by the renderer. | |
TGUI_NODISCARD unsigned int | getTextSize () const |
Returns text size of the widget that is specified by the renderer. | |
void | setTransparentTexture (bool ignoreTransparentParts) |
Sets whether mouse events should be ignored on transparent parts of the texture of the widget in normal state. | |
TGUI_NODISCARD 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. | |
TGUI_NODISCARD ObjectConverter | getProperty (const String &property) const |
Retrieves the value of a certain property. | |
TGUI_NODISCARD const std::map< String, ObjectConverter > & | getPropertyValuePairs () const |
Gets a map with all properties and their values. | |
void | subscribe (Widget *widget) |
Subscribes a callback function to changes in the renderer. | |
void | unsubscribe (Widget *widget) |
Subscribes a callback function to changes in the renderer. | |
void | setData (const std::shared_ptr< RendererData > &data) |
TGUI_NODISCARD std::shared_ptr< RendererData > | getData () const |
Returns the renderer data. | |
TGUI_NODISCARD std::shared_ptr< RendererData > | clone () const |
Gets a clone of the renderer data. | |
Additional Inherited Members | |
![]() | |
std::shared_ptr< RendererData > | m_data = RendererData::create() |
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBackgroundColor | ( | ) | const |
Returns the background color.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBackgroundColorChecked | ( | ) | const |
Returns the background color used when the radio button is checked.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBackgroundColorCheckedDisabled | ( | ) | const |
Returns the background color when the radio button is checked and disabled.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBackgroundColorCheckedHover | ( | ) | const |
Returns the background color in the hover state used when the radio button is checked.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBackgroundColorDisabled | ( | ) | const |
Returns the background color when the radio button is disabled.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBackgroundColorHover | ( | ) | const |
Returns the background color in the hover state (mouse on radio button)
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBorderColor | ( | ) | const |
Returns the border color.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBorderColorChecked | ( | ) | const |
Returns the border color used when the radio button is checked.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBorderColorCheckedDisabled | ( | ) | const |
Returns the border color when the radio button is checked and disabled.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBorderColorCheckedFocused | ( | ) | const |
Returns the color of the borders that is used when the radio button is checked and focused.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBorderColorCheckedHover | ( | ) | const |
Returns the border color in the hover state used when the radio button is checked.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBorderColorDisabled | ( | ) | const |
Returns the border color when the radio button is disabled.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBorderColorFocused | ( | ) | const |
Returns the color of the borders that is used when the radio button is focused.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getBorderColorHover | ( | ) | const |
Returns the border color in the hover state (mouse on radio button)
TGUI_NODISCARD Borders tgui::RadioButtonRenderer::getBorders | ( | ) | const |
Returns the size of the borders.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getCheckColor | ( | ) | const |
Returns the check color.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getCheckColorDisabled | ( | ) | const |
Returns the check color used to fill the radio button when the radio button is disabled.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getCheckColorHover | ( | ) | const |
Returns the check color used to fill the radio button when the mouse is on top of it.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getTextColor | ( | ) | const |
Returns the text color.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getTextColorChecked | ( | ) | const |
Returns the text color when the radio button is checked.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getTextColorCheckedDisabled | ( | ) | const |
Returns the text color when the radio button is checked and disabled.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getTextColorCheckedHover | ( | ) | const |
Returns the text color in the hover state when the radio button is checked.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getTextColorDisabled | ( | ) | const |
Returns the text color when the radio button is disabled.
TGUI_NODISCARD Color tgui::RadioButtonRenderer::getTextColorHover | ( | ) | const |
Returns the text color in the hover state (mouse on radio button)
TGUI_NODISCARD float tgui::RadioButtonRenderer::getTextDistanceRatio | ( | ) | const |
The relative distance between the radio button and the text next to it.
TGUI_NODISCARD TextStyles tgui::RadioButtonRenderer::getTextStyle | ( | ) | const |
Returns text style.
TGUI_NODISCARD TextStyles tgui::RadioButtonRenderer::getTextStyleChecked | ( | ) | const |
Returns text style in the checked state.
TGUI_NODISCARD const Texture & tgui::RadioButtonRenderer::getTextureChecked | ( | ) | const |
Returns the image that is displayed when the checkbox is checked.
TGUI_NODISCARD const Texture & tgui::RadioButtonRenderer::getTextureCheckedDisabled | ( | ) | const |
Returns the image that is displayed when the checkbox is checked and the checkbox is disabled.
TGUI_NODISCARD const Texture & tgui::RadioButtonRenderer::getTextureCheckedFocused | ( | ) | const |
Returns the image that is displayed on top of the checkbox when it is checked and focused.
TGUI_NODISCARD const Texture & tgui::RadioButtonRenderer::getTextureCheckedHover | ( | ) | const |
Returns the image that is displayed when the checkbox is checked and the mouse is on top of the checkbox.
TGUI_NODISCARD const Texture & tgui::RadioButtonRenderer::getTextureUnchecked | ( | ) | const |
Returns the image that is displayed when the checkbox is not checked.
TGUI_NODISCARD const Texture & tgui::RadioButtonRenderer::getTextureUncheckedDisabled | ( | ) | const |
Returns the image that is displayed when the checkbox is not checked and the checkbox is disabled.
TGUI_NODISCARD const Texture & tgui::RadioButtonRenderer::getTextureUncheckedFocused | ( | ) | const |
Returns the image that is displayed on top of the checkbox when it is unchecked and focused.
TGUI_NODISCARD const Texture & tgui::RadioButtonRenderer::getTextureUncheckedHover | ( | ) | const |
Returns the image that is displayed when the checkbox is not checked and the mouse is on top of the checkbox.
void tgui::RadioButtonRenderer::setBackgroundColor | ( | Color | color | ) |
Changes the background color.
color | New background color |
This color is ignored when checked and unchecked images are set.
void tgui::RadioButtonRenderer::setBackgroundColorChecked | ( | Color | color | ) |
Changes the background color used when the radio button is checked.
color | New background color |
void tgui::RadioButtonRenderer::setBackgroundColorCheckedDisabled | ( | Color | color | ) |
Changes the background color when the radio button is checked and disabled.
color | New background color |
void tgui::RadioButtonRenderer::setBackgroundColorCheckedHover | ( | Color | color | ) |
Changes the background color in hover state used when the radio button is checked.
color | New background color |
void tgui::RadioButtonRenderer::setBackgroundColorDisabled | ( | Color | color | ) |
Changes the background color when the radio button is disabled.
color | New background color |
void tgui::RadioButtonRenderer::setBackgroundColorHover | ( | Color | color | ) |
Changes the background color in hover state (mouse is standing on top of the radio button)
color | New background color |
void tgui::RadioButtonRenderer::setBorderColor | ( | Color | color | ) |
Changes the border color.
color | New border color |
void tgui::RadioButtonRenderer::setBorderColorChecked | ( | Color | color | ) |
Changes the border color used when the radio button is checked.
color | New border color |
void tgui::RadioButtonRenderer::setBorderColorCheckedDisabled | ( | Color | color | ) |
Changes the border color when the radio button is checked and disabled.
color | New border color |
void tgui::RadioButtonRenderer::setBorderColorCheckedFocused | ( | Color | color | ) |
Changes the color of the borders that is used when the radio button is checked and focused (while not hovered)
color | New border color |
void tgui::RadioButtonRenderer::setBorderColorCheckedHover | ( | Color | color | ) |
Changes the border color in hover state used when the radio button is checked.
color | New border color |
void tgui::RadioButtonRenderer::setBorderColorDisabled | ( | Color | color | ) |
Changes the border color when the radio button is disabled.
color | New border color |
void tgui::RadioButtonRenderer::setBorderColorFocused | ( | Color | color | ) |
Changes the color of the borders that is used when the radio button is focused (while not hovered)
color | New border color |
void tgui::RadioButtonRenderer::setBorderColorHover | ( | Color | color | ) |
Changes the border color in hover state (mouse is standing on top of the radio button)
color | New border color |
void tgui::RadioButtonRenderer::setBorders | ( | const Borders & | borders | ) |
Changes the size of the borders.
borders | Size of the borders |
void tgui::RadioButtonRenderer::setCheckColor | ( | Color | color | ) |
Changes the color that is used to fill the radio button when it is checked.
color | New check color |
This color is ignored when checked and unchecked images are set.
void tgui::RadioButtonRenderer::setCheckColorDisabled | ( | Color | color | ) |
Changes the color that is used to fill the radio button when the radio button is disabled.
color | New check color |
void tgui::RadioButtonRenderer::setCheckColorHover | ( | Color | color | ) |
Changes the color that is used to fill the radio button when the mouse is on top of it.
color | New check color |
void tgui::RadioButtonRenderer::setTextColor | ( | Color | color | ) |
Changes the color of the text.
color | New text color |
void tgui::RadioButtonRenderer::setTextColorChecked | ( | Color | color | ) |
Changes the color of the text when the radio button is checked.
color | New text color |
void tgui::RadioButtonRenderer::setTextColorCheckedDisabled | ( | Color | color | ) |
Changes the color of the text when the radio button is checked and disabled.
color | New text color |
void tgui::RadioButtonRenderer::setTextColorCheckedHover | ( | Color | color | ) |
Changes the color of the text in hover state when the radio button is checked.
color | New text color |
void tgui::RadioButtonRenderer::setTextColorDisabled | ( | Color | color | ) |
Changes the color of the text when the radio button is disabled.
color | New text color |
void tgui::RadioButtonRenderer::setTextColorHover | ( | 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::setTextDistanceRatio | ( | float | ratio | ) |
Changes the relative distance between the radio button and the text next to it.
ratio | The ratio of the distance based on the width of the radio button |
The default value is 0.2 which means that if the width of the radio button would be 50 pixels then the gap between the radio button and the text will be 10 pixels.
void tgui::RadioButtonRenderer::setTextStyle | ( | TextStyles | style | ) |
Changes the text style.
style | New text style |
void tgui::RadioButtonRenderer::setTextStyleChecked | ( | TextStyles | style | ) |
Changes the text style in the checked state.
style | New text style |
void tgui::RadioButtonRenderer::setTextureChecked | ( | const Texture & | texture | ) |
Changes 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 check color properties will be ignored.
void tgui::RadioButtonRenderer::setTextureCheckedDisabled | ( | const Texture & | texture | ) |
Changes the image that is displayed when the checkbox is checked and the checkbox is disabled.
texture | The new checked disabled texture |
This only has effect when the normal checked and unchecked images are also set.
void tgui::RadioButtonRenderer::setTextureCheckedFocused | ( | const Texture & | texture | ) |
Changes the image that is displayed on top of the checkbox when it is checked and focused.
texture | The new focused texture |
This only has effect when the normal checked and unchecked images are also set. Pass an empty texture to unset the image.
void tgui::RadioButtonRenderer::setTextureCheckedHover | ( | const Texture & | texture | ) |
Changes 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.
void tgui::RadioButtonRenderer::setTextureUnchecked | ( | const Texture & | texture | ) |
Changes 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 check color properties will be ignored.
void tgui::RadioButtonRenderer::setTextureUncheckedDisabled | ( | const Texture & | texture | ) |
Changes the image that is displayed when the checkbox is not checked and the checkbox is disabled.
texture | The new unchecked disabled texture |
This only has effect when the normal checked and unchecked images are also set.
void tgui::RadioButtonRenderer::setTextureUncheckedFocused | ( | const Texture & | texture | ) |
Changes the image that is displayed on top of the checkbox when it is unchecked and focused.
texture | The new focused texture |
This only has effect when the normal checked and unchecked images are also set. Pass an empty texture to unset the image.
void tgui::RadioButtonRenderer::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.
texture | The new unchecked hover texture |
This only has effect when the normal checked and unchecked images are also set.
|
inline |
Construct the renderer from renderer data.
data | Renderer data to initialize the renderer with |