TGUI
1.6.1
|
Public Member Functions | |
void | setBorders (const Borders &borders) |
Changes the size of the borders. | |
Borders | getBorders () const |
Returns the size of the borders. | |
void | setBackgroundColor (Color backgroundColor) |
Changes the background color of the tabs. | |
Color | getBackgroundColor () const |
Returns the background color of the tabs. | |
void | setBackgroundColorHover (Color backgroundColor) |
Changes the background color of the tab below the mouse. | |
Color | getBackgroundColorHover () const |
Returns the background color of the tab below the mouse. | |
void | setBackgroundColorDisabled (Color backgroundColor) |
Changes the background color of a disabled tab. | |
Color | getBackgroundColorDisabled () const |
Returns the background color of a disabled tab. | |
void | setSelectedBackgroundColor (Color backgroundColor) |
Changes the background color of the selected tab. | |
Color | getSelectedBackgroundColor () const |
Returns the background color of the selected tab. | |
void | setSelectedBackgroundColorHover (Color backgroundColor) |
Changes the background color of the selected tab when the mouse is on top of it. | |
Color | getSelectedBackgroundColorHover () const |
Returns the background color of the selected tab when the mouse is on top of it. | |
void | setTextColor (Color textColor) |
Changes the color of the text. | |
Color | getTextColor () const |
Returns the color of the text. | |
void | setTextColorHover (Color textColor) |
Changes the color of the text when the mouse is on top of the tab. | |
Color | getTextColorHover () const |
Returns the color of the text when the mouse is on top of the tab. | |
void | setTextColorDisabled (Color textColor) |
Changes the color of the text of a disabled tab. | |
Color | getTextColorDisabled () const |
Returns the color of the text of a disabled tab. | |
void | setSelectedTextColor (Color textColor) |
Changes the color of the text from the selected tab. | |
Color | getSelectedTextColor () const |
Returns the color of the text from the selected tab. | |
void | setSelectedTextColorHover (Color textColor) |
Changes the color of the text from the selected tab when the mouse is on top of it. | |
Color | getSelectedTextColorHover () const |
Returns the color of the text from the selected tab when the mouse is on top of it. | |
void | setBorderColor (Color color) |
Sets the color of the borders. | |
Color | getBorderColor () const |
Returns the color of the borders. | |
void | setBorderColorHover (Color color) |
Sets the color of the borders when the mouse is on top of it. | |
Color | getBorderColorHover () const |
Returns the color of the borders when the mouse is on top of it. | |
void | setSelectedBorderColor (Color color) |
Sets the color of the borders around the selected tab. | |
Color | getSelectedBorderColor () const |
Returns the color of the borders around the selected tab. | |
void | setSelectedBorderColorHover (Color color) |
Sets the color of the borders around the selected tab when the mouse is on top of it. | |
Color | getSelectedBorderColorHover () const |
Returns the color of the borders around the selected tab when the mouse is on top of it. | |
void | setTextureTab (const Texture &texture) |
Change the image of a tab. | |
const Texture & | getTextureTab () const |
Returns the image of a tab. | |
void | setTextureTabHover (const Texture &texture) |
Change the image of a tab when the mouse is on top of it. | |
const Texture & | getTextureTabHover () const |
Returns the image of a tab when the mouse is on top of it. | |
void | setTextureSelectedTab (const Texture &texture) |
Change the image of a selected tab. | |
const Texture & | getTextureSelectedTab () const |
Returns the image of a selected tab. | |
void | setTextureSelectedTabHover (const Texture &texture) |
Change the image of a selected tab when the mouse is on top of it. | |
const Texture & | getTextureSelectedTabHover () const |
Returns the image of a selected tab when the mouse is on top of it. | |
void | setTextureDisabledTab (const Texture &texture) |
Change the image of a disabled tab. | |
const Texture & | getTextureDisabledTab () const |
Returns the image of a disabled tab. | |
void | setDistanceToSide (float distanceToSide) |
Changes the distance between the text and the side of the tab. | |
float | getDistanceToSide () const |
Returns the distance between the text and the side of the tab. | |
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. | |
Public Member Functions inherited from tgui::WidgetRenderer | |
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. | |
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 (const 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 | setTextSize (unsigned int size) |
Changes the text size of the widget that is specified by the renderer. | |
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. | |
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 (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 (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() |
|
nodiscard |
Returns the background color of the tabs.
|
nodiscard |
Returns the background color of a disabled tab.
|
nodiscard |
Returns the background color of the tab below the mouse.
|
nodiscard |
Returns the color of the borders.
|
nodiscard |
Returns the color of the borders when the mouse is on top of it.
|
nodiscard |
Returns the size of the borders.
|
nodiscard |
Returns the distance between the text and the side of the tab.
|
nodiscard |
Returns the background color of the selected tab.
|
nodiscard |
Returns the background color of the selected tab when the mouse is on top of it.
|
nodiscard |
Returns the color of the borders around the selected tab.
|
nodiscard |
Returns the color of the borders around the selected tab when the mouse is on top of it.
|
nodiscard |
Returns the color of the text from the selected tab.
|
nodiscard |
Returns the color of the text from the selected tab when the mouse is on top of it.
|
nodiscard |
Returns the color of the text.
|
nodiscard |
Returns the color of the text of a disabled tab.
|
nodiscard |
Returns the color of the text when the mouse is on top of the tab.
|
nodiscard |
Returns the image of a disabled tab.
|
nodiscard |
Returns the image of a selected tab.
|
nodiscard |
Returns the image of a selected tab when the mouse is on top of it.
|
nodiscard |
Returns the image of a tab.
|
nodiscard |
Returns the image of a tab when the mouse is on top of it.
void tgui::TabsRenderer::setBackgroundColor | ( | Color | backgroundColor | ) |
Changes the background color of the tabs.
backgroundColor | The new background color |
Note that this color is ignored when the tab and selected tab image were set.
void tgui::TabsRenderer::setBackgroundColorDisabled | ( | Color | backgroundColor | ) |
Changes the background color of a disabled tab.
backgroundColor | The new disabled background color |
void tgui::TabsRenderer::setBackgroundColorHover | ( | Color | backgroundColor | ) |
Changes the background color of the tab below the mouse.
backgroundColor | The new hover background color |
void tgui::TabsRenderer::setBorderColor | ( | Color | color | ) |
Sets the color of the borders.
color | The new border color |
void tgui::TabsRenderer::setBorderColorHover | ( | Color | color | ) |
Sets the color of the borders when the mouse is on top of it.
color | The new hover border color |
void tgui::TabsRenderer::setBorders | ( | const Borders & | borders | ) |
Changes the size of the borders.
borders | Size of the borders |
void tgui::TabsRenderer::setDistanceToSide | ( | float | distanceToSide | ) |
Changes the distance between the text and the side of the tab.
distanceToSide | distance between the text and the side of the tab |
void tgui::TabsRenderer::setSelectedBackgroundColor | ( | Color | backgroundColor | ) |
Changes the background color of the selected tab.
backgroundColor | The new selected tab background color |
void tgui::TabsRenderer::setSelectedBackgroundColorHover | ( | Color | backgroundColor | ) |
Changes the background color of the selected tab when the mouse is on top of it.
backgroundColor | The new selected hover tab background color |
void tgui::TabsRenderer::setSelectedBorderColor | ( | Color | color | ) |
Sets the color of the borders around the selected tab.
color | The new selected border color |
void tgui::TabsRenderer::setSelectedBorderColorHover | ( | Color | color | ) |
Sets the color of the borders around the selected tab when the mouse is on top of it.
color | The new selected hover border color |
void tgui::TabsRenderer::setSelectedTextColor | ( | Color | textColor | ) |
Changes the color of the text from the selected tab.
textColor | The new selected tab text color |
void tgui::TabsRenderer::setSelectedTextColorHover | ( | Color | textColor | ) |
Changes the color of the text from the selected tab when the mouse is on top of it.
textColor | The new selected hover tab text color |
void tgui::TabsRenderer::setTextColor | ( | Color | textColor | ) |
Changes the color of the text.
textColor | The new text color |
void tgui::TabsRenderer::setTextColorDisabled | ( | Color | textColor | ) |
Changes the color of the text of a disabled tab.
textColor | The new disabled text color |
void tgui::TabsRenderer::setTextColorHover | ( | Color | textColor | ) |
Changes the color of the text when the mouse is on top of the tab.
textColor | The new hover text color |
void tgui::TabsRenderer::setTextureDisabledTab | ( | const Texture & | texture | ) |
Change the image of a disabled tab.
texture | The new disabled tab texture |
The disabled texture is only used when a normal and selected tab texture are also set.
void tgui::TabsRenderer::setTextureSelectedTab | ( | const Texture & | texture | ) |
Change the image of a selected tab.
texture | The new selected tab texture |
When this image is set then the background color properties will be ignored for selected tabs.
void tgui::TabsRenderer::setTextureSelectedTabHover | ( | const Texture & | texture | ) |
Change the image of a selected tab when the mouse is on top of it.
texture | The new selected hover tab texture |
void tgui::TabsRenderer::setTextureTab | ( | const Texture & | texture | ) |
Change the image of a tab.
texture | The new tab texture |
When this image is set then the background color properties will be ignored for non-selected tabs.
void tgui::TabsRenderer::setTextureTabHover | ( | const Texture & | texture | ) |
Change the image of a tab when the mouse is on top of it.
texture | The new hover tab texture |
|
inline |
Construct the renderer from renderer data.
data | Renderer data to initialize the renderer with |