TGUI  1.3.0
Loading...
Searching...
No Matches
TabsRenderer.hpp
1
2//
3// TGUI - Texus' Graphical User Interface
4// Copyright (C) 2012-2024 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
26#ifndef TGUI_TABS_RENDERER_HPP
27#define TGUI_TABS_RENDERER_HPP
28
29
30#include <TGUI/Renderers/WidgetRenderer.hpp>
31
33
34TGUI_MODULE_EXPORT namespace tgui
35{
36 class TGUI_API TabsRenderer : public WidgetRenderer
37 {
38 public:
39
40 using WidgetRenderer::WidgetRenderer;
41
42
49 void setBorders(const Borders& borders);
50
51
58 TGUI_NODISCARD Borders getBorders() const;
59
60
69 void setBackgroundColor(Color backgroundColor);
70
71
78 TGUI_NODISCARD Color getBackgroundColor() const;
79
80
87 void setBackgroundColorHover(Color backgroundColor);
88
89
96 TGUI_NODISCARD Color getBackgroundColorHover() const;
97
98
103 void setBackgroundColorDisabled(Color backgroundColor);
104
105
110 TGUI_NODISCARD Color getBackgroundColorDisabled() const;
111
112
119 void setSelectedBackgroundColor(Color backgroundColor);
120
121
128 TGUI_NODISCARD Color getSelectedBackgroundColor() const;
129
130
138
139
147
148
155 void setTextColor(Color textColor);
156
157
164 TGUI_NODISCARD Color getTextColor() const;
165
166
173 void setTextColorHover(Color textColor);
174
175
182 TGUI_NODISCARD Color getTextColorHover() const;
183
184
190
191
196 TGUI_NODISCARD Color getTextColorDisabled() const;
197
198
206
207
214 TGUI_NODISCARD Color getSelectedTextColor() const;
215
216
224
225
232 TGUI_NODISCARD Color getSelectedTextColorHover() const;
233
234
242
243
250 TGUI_NODISCARD Color getBorderColor() const;
251
252
259
260
266 TGUI_NODISCARD Color getBorderColorHover() const;
267
268
275
276
282 TGUI_NODISCARD Color getSelectedBorderColor() const;
283
284
291
292
298 TGUI_NODISCARD Color getSelectedBorderColorHover() const;
299
300
308 void setTextureTab(const Texture& texture);
309
310
317 TGUI_NODISCARD const Texture& getTextureTab() const;
318
319
324 void setTextureTabHover(const Texture& texture);
325
326
331 TGUI_NODISCARD const Texture& getTextureTabHover() const;
332
333
341 void setTextureSelectedTab(const Texture& texture);
342
343
350 TGUI_NODISCARD const Texture& getTextureSelectedTab() const;
351
352
358
359
364 TGUI_NODISCARD const Texture& getTextureSelectedTabHover() const;
365
366
373 void setTextureDisabledTab(const Texture& texture);
374
375
380 TGUI_NODISCARD const Texture& getTextureDisabledTab() const;
381
382
389 void setDistanceToSide(float distanceToSide);
390
391
398 TGUI_NODISCARD float getDistanceToSide() const;
399
400
402 };
403
405}
406
408
409#endif // TGUI_TABS_RENDERER_HPP
Wrapper for colors.
Definition Color.hpp:74
Definition Outline.hpp:39
Definition TabsRenderer.hpp:37
void setTextureDisabledTab(const Texture &texture)
Change the image of a disabled tab.
TGUI_NODISCARD float getDistanceToSide() const
Returns the distance between the text and the side of the tab.
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.
void setTextureTab(const Texture &texture)
Change the image of a tab.
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.
TGUI_NODISCARD Color getBackgroundColor() const
Returns the background color of the tabs.
TGUI_NODISCARD const Texture & getTextureSelectedTab() const
Returns the image of a selected tab.
void setTextureTabHover(const Texture &texture)
Change the image of a tab when the mouse is on top of it.
TGUI_NODISCARD Color getSelectedBackgroundColorHover() const
Returns the background color of the selected tab when the mouse is on top of it.
TGUI_NODISCARD Color getSelectedBorderColor() const
Returns the color of the borders around the selected tab.
TGUI_NODISCARD const Texture & getTextureTabHover() const
Returns the image of a tab 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.
TGUI_NODISCARD Color getBackgroundColorHover() const
Returns the background color of the tab below the mouse.
TGUI_NODISCARD Color getBackgroundColorDisabled() const
Returns the background color of a disabled tab.
TGUI_NODISCARD const Texture & getTextureTab() const
Returns the image of a tab.
TGUI_NODISCARD Color getTextColorHover() const
Returns the color of the text when the mouse is on top of the tab.
void setSelectedBorderColor(Color color)
Sets the color of the borders around the selected tab.
TGUI_NODISCARD Color getTextColorDisabled() const
Returns the color of the text of a disabled tab.
void setBackgroundColorDisabled(Color backgroundColor)
Changes the background color of a disabled tab.
TGUI_NODISCARD Color getBorderColor() const
Returns the color of the borders.
void setBorders(const Borders &borders)
Changes the size of the borders.
TGUI_NODISCARD const Texture & getTextureDisabledTab() const
Returns the image of a disabled tab.
TGUI_NODISCARD Borders getBorders() const
Returns the size of the borders.
void setTextColor(Color textColor)
Changes the color of the text.
TGUI_NODISCARD Color getSelectedBackgroundColor() const
Returns the background color of the selected tab.
void setTextColorDisabled(Color textColor)
Changes the color of the text of a disabled tab.
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.
TGUI_NODISCARD Color getSelectedTextColorHover() const
Returns the color of the text from the selected tab when the mouse is on top of it.
TGUI_NODISCARD Color getSelectedBorderColorHover() const
Returns the color of the borders around the selected tab when the mouse is on top of it.
TGUI_NODISCARD const Texture & getTextureSelectedTabHover() const
Returns the image of a 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.
TGUI_NODISCARD Color getSelectedTextColor() const
Returns the color of the text from the selected tab.
void setTextureSelectedTab(const Texture &texture)
Change the image of a selected tab.
TGUI_NODISCARD Color getTextColor() const
Returns the color of the text.
void setTextureSelectedTabHover(const Texture &texture)
Change the image of a selected tab when the mouse is on top of it.
TGUI_NODISCARD Color getBorderColorHover() const
Returns the color of the borders when the mouse is on top of it.
Texture wrapper that internally reuses resources when multiple Texture objects are loaded from the sa...
Definition Texture.hpp:57
Base class for all renderer classes.
Definition WidgetRenderer.hpp:72
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:39