TGUI  0.8-dev
RadioButtonRenderer.hpp
1 //
3 // TGUI - Texus' Graphical User Interface
4 // Copyright (C) 2012-2017 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 
362  void setBorderColorChecked(Color color);
363 
364 
371  Color getBorderColorChecked() const;
372 
373 
380  void setBorderColorCheckedHover(Color color);
381 
382 
389  Color getBorderColorCheckedHover() const;
390 
391 
398  void setBorderColorCheckedDisabled(Color color);
399 
400 
407  Color getBorderColorCheckedDisabled() const;
408 
409 
418  void setCheckColor(Color color);
419 
420 
427  Color getCheckColor() const;
428 
429 
436  void setCheckColorHover(Color color);
437 
438 
445  Color getCheckColorHover() const;
446 
447 
454  void setCheckColorDisabled(Color color);
455 
456 
463  Color getCheckColorDisabled() const;
464 
465 
474  void setTextureUnchecked(const Texture& texture);
475 
476 
483  Texture& getTextureUnchecked() const;
484 
485 
494  void setTextureChecked(const Texture& texture);
495 
496 
503  Texture& getTextureChecked() const;
504 
505 
514  void setTextureUncheckedHover(const Texture& texture);
515 
516 
523  Texture& getTextureUncheckedHover() const;
524 
525 
534  void setTextureCheckedHover(const Texture& texture);
535 
536 
543  Texture& getTextureCheckedHover() const;
544 
545 
554  void setTextureUncheckedDisabled(const Texture& texture);
555 
556 
563  Texture& getTextureUncheckedDisabled() const;
564 
565 
574  void setTextureCheckedDisabled(const Texture& texture);
575 
576 
583  Texture& getTextureCheckedDisabled() const;
584 
585 
595  void setTextureFocused(const Texture& texture);
596 
597 
604  Texture& getTextureFocused() const;
605 
606 
613  void setTextStyle(TextStyle style);
614 
615 
622  TextStyle getTextStyle() const;
623 
624 
631  void setTextStyleChecked(TextStyle style);
632 
633 
640  TextStyle getTextStyleChecked() const;
641 
642 
644  };
645 
647 }
648 
650 
651 #endif // TGUI_RADIO_BUTTON_RENDERER_HPP
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
Wrapper for colors.
Definition: Color.hpp:46
Wrapper for text styles.
Definition: TextStyle.hpp:46
WidgetRenderer()=default
Default constructor.
Definition: RadioButtonRenderer.hpp:36
Definition: Texture.hpp:39
Definition: Outline.hpp:38
Base class for all renderer classes.
Definition: WidgetRenderer.hpp:60