TGUI  0.8-alpha
ButtonRenderer.hpp
1 //
3 // TGUI - Texus' Graphical User Interface
4 // Copyright (C) 2012-2018 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_BUTTON_RENDERER_HPP
27 #define TGUI_BUTTON_RENDERER_HPP
28 
29 
30 #include <TGUI/Renderers/WidgetRenderer.hpp>
31 
33 
34 namespace tgui
35 {
36  class TGUI_API ButtonRenderer : public WidgetRenderer
37  {
38  public:
39 
41 
42 
49  void setBorders(const Borders& borders);
50 
51 
58  Borders getBorders() const;
59 
60 
67  void setTextColor(Color color);
68 
69 
76  Color getTextColor() const;
77 
78 
85  void setTextColorHover(Color color);
86 
87 
94  Color getTextColorHover() const;
95 
96 
103  void setTextColorDown(Color color);
104 
105 
112  Color getTextColorDown() const;
113 
114 
121  void setTextColorDisabled(Color color);
122 
123 
130  Color getTextColorDisabled() const;
131 
132 
137  void setTextColorFocused(Color color);
138 
139 
144  Color getTextColorFocused() const;
145 
146 
155  void setBackgroundColor(Color color);
156 
157 
164  Color getBackgroundColor() const;
165 
166 
175  void setBackgroundColorHover(Color color);
176 
177 
184  Color getBackgroundColorHover() const;
185 
186 
195  void setBackgroundColorDown(Color color);
196 
197 
204  Color getBackgroundColorDown() const;
205 
206 
215  void setBackgroundColorDisabled(Color color);
216 
217 
224  Color getBackgroundColorDisabled() const;
225 
226 
233  void setBackgroundColorFocused(Color color);
234 
235 
240  Color getBackgroundColorFocused() const;
241 
242 
249  void setBorderColor(Color color);
250 
251 
258  Color getBorderColor() const;
259 
260 
267  void setBorderColorHover(Color color);
268 
269 
276  Color getBorderColorHover() const;
277 
278 
285  void setBorderColorDown(Color color);
286 
287 
294  Color getBorderColorDown() const;
295 
296 
303  void setBorderColorDisabled(Color color);
304 
305 
312  Color getBorderColorDisabled() const;
313 
314 
319  void setBorderColorFocused(Color color);
320 
321 
326  Color getBorderColorFocused() const;
327 
328 
337  void setTexture(const Texture& texture);
338 
339 
346  Texture& getTexture() const;
347 
348 
355  void setTextureHover(const Texture& texture);
356 
357 
364  Texture& getTextureHover() const;
365 
366 
373  void setTextureDown(const Texture& texture);
374 
375 
382  Texture& getTextureDown() const;
383 
384 
391  void setTextureDisabled(const Texture& texture);
392 
393 
400  Texture& getTextureDisabled() const;
401 
402 
407  void setTextureFocused(const Texture& texture);
408 
409 
414  Texture& getTextureFocused() const;
415 
416 
423  void setTextStyle(TextStyle style);
424 
425 
432  TextStyle getTextStyle() const;
433 
434 
441  void setTextStyleHover(TextStyle style);
442 
443 
450  TextStyle getTextStyleHover() const;
451 
452 
459  void setTextStyleDown(TextStyle style);
460 
461 
468  TextStyle getTextStyleDown() const;
469 
470 
477  void setTextStyleDisabled(TextStyle style);
478 
479 
486  TextStyle getTextStyleDisabled() const;
487 
488 
493  void setTextStyleFocused(TextStyle style);
494 
495 
500  TextStyle getTextStyleFocused() const;
501 
502 
504  };
505 
507 }
508 
510 
511 #endif // TGUI_BUTTON_RENDERER_HPP
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
Wrapper for colors.
Definition: Color.hpp:47
Wrapper for text styles.
Definition: TextStyle.hpp:46
WidgetRenderer()=default
Default constructor.
Definition: ButtonRenderer.hpp:36
Definition: Texture.hpp:40
Definition: Outline.hpp:38
Base class for all renderer classes.
Definition: WidgetRenderer.hpp:80