TGUI
0.9.5
|
Public Member Functions | |
void | setBorders (const Borders &borders) |
Changes the size of the borders. | |
Borders | getBorders () const |
Returns the size of the borders. | |
void | setBorderBetweenArrows (float space) |
Changes the space that is left between the arrows. | |
float | getBorderBetweenArrows () const |
Returns the space that is left between the arrows. | |
void | setBackgroundColor (Color color) |
Changes the color of the background of the arrows. | |
Color | getBackgroundColor () const |
Returns the background color of the arrows. | |
void | setBackgroundColorHover (Color color) |
Changes the background color of the arrows in the hover state (mouse standing on top of the spin button) | |
Color | getBackgroundColorHover () const |
Returns the background color of the arrows in the hover state (mouse standing on top of the spin button) | |
void | setArrowColor (Color color) |
Changes the color of the arrows. | |
Color | getArrowColor () const |
Returns the color of the arrows. | |
void | setArrowColorHover (Color color) |
Changes the color of the arrows in the hover state (mouse standing on top of the spin button) | |
Color | getArrowColorHover () const |
Returns the color of the arrows in the hover state (mouse standing on top of the spin button) | |
void | setBorderColor (Color color) |
Changes the color of the borders. | |
Color | getBorderColor () const |
Returns the color of the borders. | |
void | setTextureArrowUp (const Texture &texture) |
Changes the image that is used as the up arrow. | |
const Texture & | getTextureArrowUp () const |
Returns the image that is used as the up arrow. | |
void | setTextureArrowUpHover (const Texture &texture) |
Changes the image that is used as the up arrow when the mouse is located on top of the spin button. | |
const Texture & | getTextureArrowUpHover () const |
Returns the image that is used as the up arrow when the mouse is located on top of the spin button. | |
void | setTextureArrowDown (const Texture &texture) |
Changes the image that is used as the down arrow. | |
const Texture & | getTextureArrowDown () const |
Returns the image that is used as the up arrow. | |
void | setTextureArrowDownHover (const Texture &texture) |
Changes the image that is used as the down arrow when the mouse is located on top of the spin button. | |
const Texture & | getTextureArrowDownHover () const |
Returns the image that is used as the down arrow when the mouse is located on top of the spin button. | |
WidgetRenderer ()=default | |
Default constructor. | |
WidgetRenderer (const std::shared_ptr< RendererData > &data) | |
Construct the renderer from renderer data. | |
Public Member Functions inherited from tgui::WidgetRenderer | |
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. | |
Additional Inherited Members | |
Protected Attributes inherited from tgui::WidgetRenderer | |
std::shared_ptr< RendererData > | m_data = RendererData::create() |
Color tgui::SpinButtonRenderer::getArrowColor | ( | ) | const |
Returns the color of the arrows.
Color tgui::SpinButtonRenderer::getArrowColorHover | ( | ) | const |
Returns the color of the arrows in the hover state (mouse standing on top of the spin button)
Color tgui::SpinButtonRenderer::getBackgroundColor | ( | ) | const |
Returns the background color of the arrows.
Color tgui::SpinButtonRenderer::getBackgroundColorHover | ( | ) | const |
Returns the background color of the arrows in the hover state (mouse standing on top of the spin button)
float tgui::SpinButtonRenderer::getBorderBetweenArrows | ( | ) | const |
Returns the space that is left between the arrows.
Color tgui::SpinButtonRenderer::getBorderColor | ( | ) | const |
Returns the color of the borders.
Borders tgui::SpinButtonRenderer::getBorders | ( | ) | const |
Returns the size of the borders.
const Texture & tgui::SpinButtonRenderer::getTextureArrowDown | ( | ) | const |
Returns the image that is used as the up arrow.
const Texture & tgui::SpinButtonRenderer::getTextureArrowDownHover | ( | ) | const |
Returns the image that is used as the down arrow when the mouse is located on top of the spin button.
const Texture & tgui::SpinButtonRenderer::getTextureArrowUp | ( | ) | const |
Returns the image that is used as the up arrow.
const Texture & tgui::SpinButtonRenderer::getTextureArrowUpHover | ( | ) | const |
Returns the image that is used as the up arrow when the mouse is located on top of the spin button.
void tgui::SpinButtonRenderer::setArrowColor | ( | Color | color | ) |
Changes the color of the arrows.
color | New arrow color |
Note that this color is ignored when an up and down arrow texture were set.
void tgui::SpinButtonRenderer::setArrowColorHover | ( | Color | color | ) |
Changes the color of the arrows in the hover state (mouse standing on top of the spin button)
color | New arrow color |
void tgui::SpinButtonRenderer::setBackgroundColor | ( | Color | color | ) |
Changes the color of the background of the arrows.
color | New background color |
Note that this color is ignored when you set an image as background.
void tgui::SpinButtonRenderer::setBackgroundColorHover | ( | Color | color | ) |
Changes the background color of the arrows in the hover state (mouse standing on top of the spin button)
color | New background color |
void tgui::SpinButtonRenderer::setBorderBetweenArrows | ( | float | space | ) |
Changes the space that is left between the arrows.
space | The space between the arrows |
void tgui::SpinButtonRenderer::setBorderColor | ( | Color | color | ) |
Changes the color of the borders.
color | New border color |
void tgui::SpinButtonRenderer::setBorders | ( | const Borders & | borders | ) |
Changes the size of the borders.
borders | Size of the borders |
void tgui::SpinButtonRenderer::setTextureArrowDown | ( | const Texture & | texture | ) |
Changes the image that is used as the down arrow.
texture | The new down arrow texture |
When this image and the up image are set, the arrow color property will be ignored.
void tgui::SpinButtonRenderer::setTextureArrowDownHover | ( | const Texture & | texture | ) |
Changes the image that is used as the down arrow when the mouse is located on top of the spin button.
texture | The new down hover arrow texture |
void tgui::SpinButtonRenderer::setTextureArrowUp | ( | const Texture & | texture | ) |
Changes the image that is used as the up arrow.
texture | The new up arrow texture |
When this image and the down image are set, the arrow color property will be ignored.
void tgui::SpinButtonRenderer::setTextureArrowUpHover | ( | const Texture & | texture | ) |
Changes the image that is used as the up arrow when the mouse is located on top of the spin button.
texture | The new up hover arrow texture |
|
inline |
Construct the renderer from renderer data.
data | Renderer data to initialize the renderer with |