TGUI  0.8-alpha
RadioButtonRenderer.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_RADIO_BUTTON_RENDERER_HPP
27 #define TGUI_RADIO_BUTTON_RENDERER_HPP
28 
29 
30 #include <TGUI/Renderers/WidgetRenderer.hpp>
31 
33 
34 namespace tgui
35 {
36  class TGUI_API RadioButtonRenderer : public WidgetRenderer
37  {
38  public:
39 
41 
42 
49  void setBorders(const Borders& borders);
50 
51 
58  Borders getBorders() const;
59 
60 
70  void setTextDistanceRatio(float ratio);
71 
72 
81  float getTextDistanceRatio() const;
82 
83 
90  void setTextColor(Color color);
91 
92 
99  Color getTextColor() const;
100 
101 
108  void setTextColorHover(Color color);
109 
110 
117  Color getTextColorHover() const;
118 
119 
126  void setTextColorDisabled(Color color);
127 
128 
135  Color getTextColorDisabled() const;
136 
137 
144  void setTextColorChecked(Color color);
145 
146 
153  Color getTextColorChecked() const;
154 
155 
162  void setTextColorCheckedHover(Color color);
163 
164 
171  Color getTextColorCheckedHover() const;
172 
173 
180  void setTextColorCheckedDisabled(Color color);
181 
182 
189  Color getTextColorCheckedDisabled() const;
190 
191 
200  void setBackgroundColor(Color color);
201 
202 
209  Color getBackgroundColor() const;
210 
211 
218  void setBackgroundColorHover(Color color);
219 
220 
227  Color getBackgroundColorHover() const;
228 
229 
236  void setBackgroundColorDisabled(Color color);
237 
238 
245  Color getBackgroundColorDisabled() const;
246 
247 
254  void setBackgroundColorChecked(Color color);
255 
256 
263  Color getBackgroundColorChecked() const;
264 
265 
272  void setBackgroundColorCheckedHover(Color color);
273 
274 
281  Color getBackgroundColorCheckedHover() const;
282 
283 
290  void setBackgroundColorCheckedDisabled(Color color);
291 
292 
299  Color getBackgroundColorCheckedDisabled() const;
300 
301 
308  void setBorderColor(Color color);
309 
310 
317  Color getBorderColor() const;
318 
319 
326  void setBorderColorHover(Color color);
327 
328 
335  Color getBorderColorHover() const;
336 
337 
344  void setBorderColorDisabled(Color color);
345 
346 
353  Color getBorderColorDisabled() const;
354 
355 
360  void setBorderColorFocused(Color color);
361 
362 
367  Color getBorderColorFocused() const;
368 
369 
376  void setBorderColorChecked(Color color);
377 
378 
385  Color getBorderColorChecked() const;
386 
387 
394  void setBorderColorCheckedHover(Color color);
395 
396 
403  Color getBorderColorCheckedHover() const;
404 
405 
412  void setBorderColorCheckedDisabled(Color color);
413 
414 
421  Color getBorderColorCheckedDisabled() const;
422 
423 
428  void setBorderColorCheckedFocused(Color color);
429 
430 
435  Color getBorderColorCheckedFocused() const;
436 
437 
446  void setCheckColor(Color color);
447 
448 
455  Color getCheckColor() const;
456 
457 
464  void setCheckColorHover(Color color);
465 
466 
473  Color getCheckColorHover() const;
474 
475 
482  void setCheckColorDisabled(Color color);
483 
484 
491  Color getCheckColorDisabled() const;
492 
493 
502  void setTextureUnchecked(const Texture& texture);
503 
504 
511  Texture& getTextureUnchecked() const;
512 
513 
522  void setTextureChecked(const Texture& texture);
523 
524 
531  Texture& getTextureChecked() const;
532 
533 
542  void setTextureUncheckedHover(const Texture& texture);
543 
544 
551  Texture& getTextureUncheckedHover() const;
552 
553 
562  void setTextureCheckedHover(const Texture& texture);
563 
564 
571  Texture& getTextureCheckedHover() const;
572 
573 
582  void setTextureUncheckedDisabled(const Texture& texture);
583 
584 
591  Texture& getTextureUncheckedDisabled() const;
592 
593 
602  void setTextureCheckedDisabled(const Texture& texture);
603 
604 
611  Texture& getTextureCheckedDisabled() const;
612 
613 
621  void setTextureUncheckedFocused(const Texture& texture);
622 
623 
628  Texture& getTextureUncheckedFocused() const;
629 
630 
638  void setTextureCheckedFocused(const Texture& texture);
639 
640 
645  Texture& getTextureCheckedFocused() const;
646 
647 
654  void setTextStyle(TextStyle style);
655 
656 
663  TextStyle getTextStyle() const;
664 
665 
672  void setTextStyleChecked(TextStyle style);
673 
674 
681  TextStyle getTextStyleChecked() const;
682 
683 
685  };
686 
688 }
689 
691 
692 #endif // TGUI_RADIO_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: RadioButtonRenderer.hpp:36
Definition: Texture.hpp:40
Definition: Outline.hpp:38
Base class for all renderer classes.
Definition: WidgetRenderer.hpp:80