|
TGUI
0.8.9
|
Public Member Functions | |
| void | setBorders (const Borders &borders) |
| Changes the size of the borders. More... | |
| Borders | getBorders () const |
| Returns the size of the borders. More... | |
| void | setTextColor (Color color) |
| Changes the color of the text. More... | |
| Color | getTextColor () const |
| Returns the text color. More... | |
| void | setTextColorHover (Color color) |
| Changes the color of the text in the hover state (mouse on button, but not pressed) More... | |
| Color | getTextColorHover () const |
| Returns the text color in the hover state (mouse on button, but not pressed) More... | |
| void | setTextColorDown (Color color) |
| Changes the color of the text in the down state (mouse on button and left mouse button being held down) More... | |
| Color | getTextColorDown () const |
| Returns the text color in the down state (mouse on button and left mouse button being held down) More... | |
| void | setTextColorDisabled (Color color) |
| Changes the color of the text that is used when the button is disabled. More... | |
| Color | getTextColorDisabled () const |
| Returns the text color that is used when the button is disabled. More... | |
| void | setTextColorFocused (Color color) |
| Changes the color of the text that is used when the button is focused (while not hovered) More... | |
| Color | getTextColorFocused () const |
| Returns the text color that is used when the button is focused. More... | |
| void | setBackgroundColor (Color color) |
| Changes the color of the background. More... | |
| Color | getBackgroundColor () const |
| Returns the background color. More... | |
| void | setBackgroundColorHover (Color color) |
| Changes the color of the background in the hover state (mouse on button, but not pressed) More... | |
| Color | getBackgroundColorHover () const |
| Returns the background color in the hover state (mouse on button, but not pressed) More... | |
| void | setBackgroundColorDown (Color color) |
| Changes the color of the background in the down state (mouse on button and left mouse button being held down) More... | |
| Color | getBackgroundColorDown () const |
| Returns the background color in the down state (mouse on button and left mouse button being held down) More... | |
| void | setBackgroundColorDisabled (Color color) |
| Changes the color of the background that is used when the button is disabled. More... | |
| Color | getBackgroundColorDisabled () const |
| Returns the background color that is used when the button is disabled. More... | |
| void | setBackgroundColorFocused (Color color) |
| Changes the color of the background that is used when the button is focused (while not hovered) More... | |
| Color | getBackgroundColorFocused () const |
| Returns the background color that is used when the button is focused. More... | |
| void | setBorderColor (Color color) |
| Changes the color of the borders. More... | |
| Color | getBorderColor () const |
| Returns the color of the borders. More... | |
| void | setBorderColorHover (Color color) |
| Changes the color of the borders in the hover state (mouse on button, but not pressed) More... | |
| Color | getBorderColorHover () const |
| Returns the color of the borders in the hover state (mouse on button, but not pressed) More... | |
| void | setBorderColorDown (Color color) |
| Changes the color of the borders in the down state (mouse on button and left mouse button being held down) More... | |
| Color | getBorderColorDown () const |
| Returns the color of the borders in the down state (mouse on button and left mouse button being held down) More... | |
| void | setBorderColorDisabled (Color color) |
| Changes the color of the borders that is used when the button is disabled. More... | |
| Color | getBorderColorDisabled () const |
| Returns the color of the borders that is used when the button is disabled. More... | |
| void | setBorderColorFocused (Color color) |
| Changes the color of the borders that is used when the button is focused (while not hovered) More... | |
| Color | getBorderColorFocused () const |
| Returns the color of the borders that is used when the button is focused. More... | |
| void | setTexture (const Texture &texture) |
| Change the image that is displayed. More... | |
| Texture & | getTexture () const |
| Returns the image that is displayed. More... | |
| void | setTextureHover (const Texture &texture) |
| Changes the image that is displayed when the mouse is located on top of the button. More... | |
| Texture & | getTextureHover () const |
| Returns the image that is displayed when the mouse is located on top of the button. More... | |
| void | setTextureDown (const Texture &texture) |
| Changes the image that is displayed when the mouse is held down on top of the button. More... | |
| Texture & | getTextureDown () const |
| Returns the image that is displayed when the mouse is held down on top of the button. More... | |
| void | setTextureDisabled (const Texture &texture) |
| Changes the image that is displayed when the button is disabled. More... | |
| Texture & | getTextureDisabled () const |
| Returns the image that is displayed when the button is disabled. More... | |
| void | setTextureFocused (const Texture &texture) |
| Change the image that is drawn on top of the button image when the button is focused (while not hovered) More... | |
| Texture & | getTextureFocused () const |
| Returns the image that is drawn on top of the button image when the button is focused. More... | |
| void | setTextStyle (TextStyle style) |
| Changes the text style. More... | |
| TextStyle | getTextStyle () const |
| Returns text style. More... | |
| void | setTextStyleHover (TextStyle style) |
| Changes the text style in the hover state (mouse on button, but not pressed) More... | |
| TextStyle | getTextStyleHover () const |
| Returns text style in the hover state (mouse on button, but not pressed) More... | |
| void | setTextStyleDown (TextStyle style) |
| Changes the text style in the down state (mouse on button and left mouse button being held down) More... | |
| TextStyle | getTextStyleDown () const |
| Returns text style in the down state (mouse on button and left mouse button being held down) More... | |
| void | setTextStyleDisabled (TextStyle style) |
| Changes the text style that is used when the button is disabled. More... | |
| TextStyle | getTextStyleDisabled () const |
| Returns text style used when the button is disabled. More... | |
| void | setTextStyleFocused (TextStyle style) |
| Changes the text style that is used when the button is focused (while not hovered) More... | |
| TextStyle | getTextStyleFocused () const |
| Returns text style used when the button is focused. More... | |
| void | setTextOutlineColor (Color outlineColor) |
| Changes the outline color of the text (used when TextOutlineThickness > 0) More... | |
| Color | getTextOutlineColor () const |
| Returns the outline color of the text (used when TextOutlineThickness > 0) More... | |
| void | setTextOutlineThickness (float outlineThickness) |
| Changes the thickness of the text outline (0 by default, which means there is no outline). More... | |
| float | getTextOutlineThickness () const |
| Returns the thickness of the text outline. More... | |
| WidgetRenderer ()=default | |
| Default constructor. | |
| WidgetRenderer (const std::shared_ptr< RendererData > &data) | |
| Construct the renderer from renderer data. More... | |
Public Member Functions inherited from tgui::WidgetRenderer | |
| WidgetRenderer ()=default | |
| Default constructor. | |
| WidgetRenderer (const std::shared_ptr< RendererData > &data) | |
| Construct the renderer from renderer data. More... | |
| virtual | ~WidgetRenderer ()=default |
| Virtual destructor. | |
| void | setOpacity (float opacity) |
| Changes the opacity of the widget. More... | |
| float | getOpacity () const |
| Returns the opacity of the widget. More... | |
| void | setOpacityDisabled (float opacity) |
| Changes the opacity of the widget when it is disabled. More... | |
| float | getOpacityDisabled () const |
| Returns the opacity of the widget when it is disabled. More... | |
| void | setFont (Font font) |
| Changes the font used for the text in the widget. More... | |
| Font | getFont () const |
| Returns the font associated with the widget (if any) More... | |
| void | setTransparentTexture (bool ignoreTransparentParts) |
| Sets whether mouse events should be ignored on transparent parts of the texture of the widget in normal state. More... | |
| bool | getTransparentTexture () const |
| Returns whether mouse events should be ignored on transparent parts of the texture of the widget. More... | |
| void | setProperty (const std::string &property, ObjectConverter &&value) |
| Changes a property of the renderer. More... | |
| ObjectConverter | getProperty (const std::string &property) const |
| Retrieves the value of a certain property. More... | |
| const std::map< std::string, ObjectConverter > & | getPropertyValuePairs () const |
| Gets a map with all properties and their values. More... | |
| void | subscribe (const void *id, const std::function< void(const std::string &property)> &function) |
| Subscribes a callback function to changes in the renderer. More... | |
| void | unsubscribe (const void *id) |
| Subscribes a callback function to changes in the renderer. More... | |
| std::shared_ptr< RendererData > | getData () const |
| Returns the renderer data. More... | |
| std::shared_ptr< RendererData > | clone () const |
| Gets a clone of the renderer data. More... | |
| Color tgui::ButtonRenderer::getBackgroundColor | ( | ) | const |
Returns the background color.
| Color tgui::ButtonRenderer::getBackgroundColorDisabled | ( | ) | const |
Returns the background color that is used when the button is disabled.
| Color tgui::ButtonRenderer::getBackgroundColorDown | ( | ) | const |
Returns the background color in the down state (mouse on button and left mouse button being held down)
| Color tgui::ButtonRenderer::getBackgroundColorFocused | ( | ) | const |
Returns the background color that is used when the button is focused.
| Color tgui::ButtonRenderer::getBackgroundColorHover | ( | ) | const |
Returns the background color in the hover state (mouse on button, but not pressed)
| Color tgui::ButtonRenderer::getBorderColor | ( | ) | const |
Returns the color of the borders.
| Color tgui::ButtonRenderer::getBorderColorDisabled | ( | ) | const |
Returns the color of the borders that is used when the button is disabled.
| Color tgui::ButtonRenderer::getBorderColorDown | ( | ) | const |
Returns the color of the borders in the down state (mouse on button and left mouse button being held down)
| Color tgui::ButtonRenderer::getBorderColorFocused | ( | ) | const |
Returns the color of the borders that is used when the button is focused.
| Color tgui::ButtonRenderer::getBorderColorHover | ( | ) | const |
Returns the color of the borders in the hover state (mouse on button, but not pressed)
| Borders tgui::ButtonRenderer::getBorders | ( | ) | const |
Returns the size of the borders.
| Color tgui::ButtonRenderer::getTextColor | ( | ) | const |
Returns the text color.
| Color tgui::ButtonRenderer::getTextColorDisabled | ( | ) | const |
Returns the text color that is used when the button is disabled.
| Color tgui::ButtonRenderer::getTextColorDown | ( | ) | const |
Returns the text color in the down state (mouse on button and left mouse button being held down)
| Color tgui::ButtonRenderer::getTextColorFocused | ( | ) | const |
Returns the text color that is used when the button is focused.
| Color tgui::ButtonRenderer::getTextColorHover | ( | ) | const |
Returns the text color in the hover state (mouse on button, but not pressed)
| Color tgui::ButtonRenderer::getTextOutlineColor | ( | ) | const |
Returns the outline color of the text (used when TextOutlineThickness > 0)
| Text | outline color |
| float tgui::ButtonRenderer::getTextOutlineThickness | ( | ) | const |
Returns the thickness of the text outline.
| Text | outline thickness |
| TextStyle tgui::ButtonRenderer::getTextStyle | ( | ) | const |
Returns text style.
| TextStyle tgui::ButtonRenderer::getTextStyleDisabled | ( | ) | const |
Returns text style used when the button is disabled.
| TextStyle tgui::ButtonRenderer::getTextStyleDown | ( | ) | const |
Returns text style in the down state (mouse on button and left mouse button being held down)
| TextStyle tgui::ButtonRenderer::getTextStyleFocused | ( | ) | const |
Returns text style used when the button is focused.
| TextStyle tgui::ButtonRenderer::getTextStyleHover | ( | ) | const |
Returns text style in the hover state (mouse on button, but not pressed)
| Texture & tgui::ButtonRenderer::getTexture | ( | ) | const |
Returns the image that is displayed.
| Texture & tgui::ButtonRenderer::getTextureDisabled | ( | ) | const |
Returns the image that is displayed when the button is disabled.
| Texture & tgui::ButtonRenderer::getTextureDown | ( | ) | const |
Returns the image that is displayed when the mouse is held down on top of the button.
| Texture & tgui::ButtonRenderer::getTextureFocused | ( | ) | const |
Returns the image that is drawn on top of the button image when the button is focused.
| Texture & tgui::ButtonRenderer::getTextureHover | ( | ) | const |
Returns the image that is displayed when the mouse is located on top of the button.
| void tgui::ButtonRenderer::setBackgroundColor | ( | Color | color | ) |
Changes the color of the background.
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBackgroundColorDisabled | ( | Color | color | ) |
Changes the color of the background that is used when the button is disabled.
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBackgroundColorDown | ( | Color | color | ) |
Changes the color of the background in the down state (mouse on button and left mouse button being held down)
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBackgroundColorFocused | ( | Color | color | ) |
Changes the color of the background that is used when the button is focused (while not hovered)
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBackgroundColorHover | ( | Color | color | ) |
Changes the color of the background in the hover state (mouse on button, but not pressed)
| color | New background color |
Note that this color is ignored when you set an image as background.
| void tgui::ButtonRenderer::setBorderColor | ( | Color | color | ) |
Changes the color of the borders.
| color | New border color |
| void tgui::ButtonRenderer::setBorderColorDisabled | ( | Color | color | ) |
Changes the color of the borders that is used when the button is disabled.
| color | New border color |
| void tgui::ButtonRenderer::setBorderColorDown | ( | Color | color | ) |
Changes the color of the borders in the down state (mouse on button and left mouse button being held down)
| color | New border color |
| void tgui::ButtonRenderer::setBorderColorFocused | ( | Color | color | ) |
Changes the color of the borders that is used when the button is focused (while not hovered)
| color | New border color |
| void tgui::ButtonRenderer::setBorderColorHover | ( | Color | color | ) |
Changes the color of the borders in the hover state (mouse on button, but not pressed)
| color | New border color |
| void tgui::ButtonRenderer::setBorders | ( | const Borders & | borders | ) |
Changes the size of the borders.
| borders | Size of the borders |
| void tgui::ButtonRenderer::setTextColor | ( | Color | color | ) |
Changes the color of the text.
| color | New text color |
| void tgui::ButtonRenderer::setTextColorDisabled | ( | Color | color | ) |
Changes the color of the text that is used when the button is disabled.
| color | New text color |
| void tgui::ButtonRenderer::setTextColorDown | ( | Color | color | ) |
Changes the color of the text in the down state (mouse on button and left mouse button being held down)
| color | New text color |
| void tgui::ButtonRenderer::setTextColorFocused | ( | Color | color | ) |
Changes the color of the text that is used when the button is focused (while not hovered)
| color | New text color |
| void tgui::ButtonRenderer::setTextColorHover | ( | Color | color | ) |
Changes the color of the text in the hover state (mouse on button, but not pressed)
| color | New text color |
| void tgui::ButtonRenderer::setTextOutlineColor | ( | Color | outlineColor | ) |
Changes the outline color of the text (used when TextOutlineThickness > 0)
| outlineColor | New text outline color |
| void tgui::ButtonRenderer::setTextOutlineThickness | ( | float | outlineThickness | ) |
Changes the thickness of the text outline (0 by default, which means there is no outline).
| outlineThickness | New text outline thickness |
| void tgui::ButtonRenderer::setTextStyle | ( | TextStyle | style | ) |
Changes the text style.
| style | New text style |
| void tgui::ButtonRenderer::setTextStyleDisabled | ( | TextStyle | style | ) |
Changes the text style that is used when the button is disabled.
| style | New text style |
| void tgui::ButtonRenderer::setTextStyleDown | ( | TextStyle | style | ) |
Changes the text style in the down state (mouse on button and left mouse button being held down)
| style | New text style |
| void tgui::ButtonRenderer::setTextStyleFocused | ( | TextStyle | style | ) |
Changes the text style that is used when the button is focused (while not hovered)
| style | New text style |
| void tgui::ButtonRenderer::setTextStyleHover | ( | TextStyle | style | ) |
Changes the text style in the hover state (mouse on button, but not pressed)
| style | New text style |
| void tgui::ButtonRenderer::setTexture | ( | const Texture & | texture | ) |
Change the image that is displayed.
| texture | The new texture |
When this image is set, the background color property will be ignored.
| void tgui::ButtonRenderer::setTextureDisabled | ( | const Texture & | texture | ) |
Changes the image that is displayed when the button is disabled.
| texture | The new disabled texture |
| void tgui::ButtonRenderer::setTextureDown | ( | const Texture & | texture | ) |
Changes the image that is displayed when the mouse is held down on top of the button.
| texture | The new down texture |
| void tgui::ButtonRenderer::setTextureFocused | ( | const Texture & | texture | ) |
Change the image that is drawn on top of the button image when the button is focused (while not hovered)
| texture | The new focus texture |
| void tgui::ButtonRenderer::setTextureHover | ( | const Texture & | texture | ) |
Changes the image that is displayed when the mouse is located on top of the button.
| texture | The new hover texture |
|
inline |
Construct the renderer from renderer data.
| data | Renderer data to initialize the renderer with |