TGUI 1.13
Loading...
Searching...
No Matches
TabsRenderer.hpp
1
2//
3// TGUI - Texus' Graphical User Interface
4// Copyright (C) 2012-2026 Bruno Van de Velde (vdv_b@tgui.eu)
5//
6// This software is provided 'as-is', without any express or implied warranty.
7// In no event will the authors be held liable for any damages arising from the use of this software.
8//
9// Permission is granted to anyone to use this software for any purpose,
10// including commercial applications, and to alter it and redistribute it freely,
11// subject to the following restrictions:
12//
13// 1. The origin of this software must not be misrepresented;
14// you must not claim that you wrote the original software.
15// If you use this software in a product, an acknowledgment
16// in the product documentation would be appreciated but is not required.
17//
18// 2. Altered source versions must be plainly marked as such,
19// and must not be misrepresented as being the original software.
20//
21// 3. This notice may not be removed or altered from any source distribution.
22//
24
25#ifndef TGUI_TABS_RENDERER_HPP
26#define TGUI_TABS_RENDERER_HPP
27
28#include <TGUI/Renderers/WidgetRenderer.hpp>
29
31
32namespace tgui
33{
34 class TGUI_API TabsRenderer : public WidgetRenderer
35 {
36 public:
38
44 void setBorders(const Borders& borders);
45
51 [[nodiscard]] Borders getBorders() const;
52
60 void setBackgroundColor(Color backgroundColor);
61
67 [[nodiscard]] Color getBackgroundColor() const;
68
74 void setBackgroundColorHover(Color backgroundColor);
75
81 [[nodiscard]] Color getBackgroundColorHover() const;
82
87 void setBackgroundColorDisabled(Color backgroundColor);
88
93 [[nodiscard]] Color getBackgroundColorDisabled() const;
94
100 void setSelectedBackgroundColor(Color backgroundColor);
101
107 [[nodiscard]] Color getSelectedBackgroundColor() const;
108
115
122
128 void setTextColor(Color textColor);
129
135 [[nodiscard]] Color getTextColor() const;
136
142 void setTextColorHover(Color textColor);
143
149 [[nodiscard]] Color getTextColorHover() const;
150
156
161 [[nodiscard]] Color getTextColorDisabled() const;
162
169
175 [[nodiscard]] Color getSelectedTextColor() const;
176
183
189 [[nodiscard]] Color getSelectedTextColorHover() const;
190
197
203 [[nodiscard]] Color getBorderColor() const;
204
211
217 [[nodiscard]] Color getBorderColorHover() const;
218
225
231 [[nodiscard]] Color getSelectedBorderColor() const;
232
239
245 [[nodiscard]] Color getSelectedBorderColorHover() const;
246
254 void setTextureTab(const Texture& texture);
255
261 [[nodiscard]] const Texture& getTextureTab() const;
262
267 void setTextureTabHover(const Texture& texture);
268
273 [[nodiscard]] const Texture& getTextureTabHover() const;
274
282 void setTextureSelectedTab(const Texture& texture);
283
289 [[nodiscard]] const Texture& getTextureSelectedTab() const;
290
296
301 [[nodiscard]] const Texture& getTextureSelectedTabHover() const;
302
309 void setTextureDisabledTab(const Texture& texture);
310
315 [[nodiscard]] const Texture& getTextureDisabledTab() const;
316
322 void setDistanceToSide(float distanceToSide);
323
329 [[nodiscard]] float getDistanceToSide() const;
330
339 void setRoundedBorderRadius(float radius);
340
346 [[nodiscard]] float getRoundedBorderRadius() const;
347 };
348} // namespace tgui
349
350#endif // TGUI_TABS_RENDERER_HPP
Wrapper for colors.
Definition Color.hpp:63
Definition TabsRenderer.hpp:35
void setTextureDisabledTab(const Texture &texture)
Change the image of a disabled tab.
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.
void setBorderColorHover(Color color)
Sets the color of the borders when the mouse is on top of it.
const Texture & getTextureDisabledTab() const
Returns the image of a disabled tab.
const Texture & getTextureSelectedTabHover() const
Returns the image of a selected tab when the mouse is on top of it.
void setTextureTab(const Texture &texture)
Change the image of a tab.
void setRoundedBorderRadius(float radius)
Changes the radius for the rounded corners if you want to draw a rounded rectangle as background for ...
void setSelectedBackgroundColor(Color backgroundColor)
Changes the background color of the selected tab.
void setBackgroundColorHover(Color backgroundColor)
Changes the background color of the tab below the mouse.
void setSelectedBackgroundColorHover(Color backgroundColor)
Changes the background color of 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.
Borders getBorders() const
Returns the size of the borders.
float getDistanceToSide() const
Returns the distance between the text and the side of the tab.
Color getBorderColor() const
Returns the color of the borders.
const Texture & getTextureTab() const
Returns the image of a tab.
Color getTextColorDisabled() const
Returns the color of the text of a disabled tab.
void setTextureTabHover(const Texture &texture)
Change the image of a tab when the mouse is on top of it.
Color getSelectedBackgroundColor() const
Returns the background color of the selected tab.
const Texture & getTextureSelectedTab() const
Returns the image of a selected tab.
Color getTextColorHover() const
Returns the color of the text when the mouse is on top of the tab.
Color getBorderColorHover() const
Returns the color of the borders when the mouse is on top of it.
void setSelectedBorderColorHover(Color color)
Sets the color of the borders around the selected tab when the mouse is on top of it.
void setSelectedTextColorHover(Color textColor)
Changes the color of the text from the selected tab when the mouse is on top of it.
Color getBackgroundColorDisabled() const
Returns the background color of a disabled tab.
Color getBackgroundColor() const
Returns the background color of the tabs.
Color getSelectedTextColor() const
Returns the color of the text from the selected tab.
void setSelectedBorderColor(Color color)
Sets the color of the borders around the selected tab.
float getRoundedBorderRadius() const
Returns the radius for the rounded corners if you want to draw a rounded rectangle as background for ...
void setBackgroundColorDisabled(Color backgroundColor)
Changes the background color of a disabled tab.
void setBorders(const Borders &borders)
Changes the size of the borders.
Color getSelectedBorderColor() const
Returns the color of the borders around the selected tab.
void setTextColor(Color textColor)
Changes the color of the text.
void setTextColorDisabled(Color textColor)
Changes the color of the text of a disabled tab.
WidgetRenderer()=default
Default constructor.
void setBorderColor(Color color)
Sets the color of the borders.
void setDistanceToSide(float distanceToSide)
Changes the distance between the text and the side of the tab.
Color getSelectedTextColorHover() const
Returns the color of the text from the selected tab when the mouse is on top of it.
void setSelectedTextColor(Color textColor)
Changes the color of the text from the selected tab.
void setBackgroundColor(Color backgroundColor)
Changes the background color of the tabs.
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.
void setTextureSelectedTabHover(const Texture &texture)
Change the image of a 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.
Color getBackgroundColorHover() const
Returns the background color of the tab below the mouse.
Texture wrapper that internally reuses resources when multiple Texture objects are loaded from the sa...
Definition Texture.hpp:53
WidgetRenderer()=default
Default constructor.
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:37