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 
43  RadioButtonRenderer() = default;
44 
45 
52  RadioButtonRenderer(std::shared_ptr<RendererData> data)
53  {
54  setData(data);
55  }
56 
57 
64  void setBorders(const Borders& borders);
65 
66 
73  Borders getBorders() const;
74 
75 
85  void setTextDistanceRatio(float ratio);
86 
87 
96  float getTextDistanceRatio() const;
97 
98 
105  void setTextColor(Color color);
106 
107 
114  Color getTextColor() const;
115 
116 
123  void setTextColorHover(Color color);
124 
125 
132  Color getTextColorHover() const;
133 
134 
141  void setTextColorDisabled(Color color);
142 
143 
150  Color getTextColorDisabled() const;
151 
152 
159  void setTextColorChecked(Color color);
160 
161 
168  Color getTextColorChecked() const;
169 
170 
177  void setTextColorCheckedHover(Color color);
178 
179 
186  Color getTextColorCheckedHover() const;
187 
188 
195  void setTextColorCheckedDisabled(Color color);
196 
197 
204  Color getTextColorCheckedDisabled() const;
205 
206 
215  void setBackgroundColor(Color color);
216 
217 
224  Color getBackgroundColor() const;
225 
226 
233  void setBackgroundColorHover(Color color);
234 
235 
242  Color getBackgroundColorHover() const;
243 
244 
251  void setBackgroundColorDisabled(Color color);
252 
253 
260  Color getBackgroundColorDisabled() const;
261 
262 
269  void setBackgroundColorChecked(Color color);
270 
271 
278  Color getBackgroundColorChecked() const;
279 
280 
287  void setBackgroundColorCheckedHover(Color color);
288 
289 
296  Color getBackgroundColorCheckedHover() const;
297 
298 
305  void setBackgroundColorCheckedDisabled(Color color);
306 
307 
314  Color getBackgroundColorCheckedDisabled() const;
315 
316 
323  void setBorderColor(Color color);
324 
325 
332  Color getBorderColor() const;
333 
334 
341  void setBorderColorHover(Color color);
342 
343 
350  Color getBorderColorHover() const;
351 
352 
359  void setBorderColorDisabled(Color color);
360 
361 
368  Color getBorderColorDisabled() const;
369 
370 
377  void setBorderColorChecked(Color color);
378 
379 
386  Color getBorderColorChecked() const;
387 
388 
395  void setBorderColorCheckedHover(Color color);
396 
397 
404  Color getBorderColorCheckedHover() const;
405 
406 
413  void setBorderColorCheckedDisabled(Color color);
414 
415 
422  Color getBorderColorCheckedDisabled() const;
423 
424 
433  void setCheckColor(Color color);
434 
435 
442  Color getCheckColor() const;
443 
444 
451  void setCheckColorHover(Color color);
452 
453 
460  Color getCheckColorHover() const;
461 
462 
469  void setCheckColorDisabled(Color color);
470 
471 
478  Color getCheckColorDisabled() const;
479 
480 
489  void setTextureUnchecked(const Texture& texture);
490 
491 
498  Texture& getTextureUnchecked() const;
499 
500 
509  void setTextureChecked(const Texture& texture);
510 
511 
518  Texture& getTextureChecked() const;
519 
520 
529  void setTextureUncheckedHover(const Texture& texture);
530 
531 
538  Texture& getTextureUncheckedHover() const;
539 
540 
549  void setTextureCheckedHover(const Texture& texture);
550 
551 
558  Texture& getTextureCheckedHover() const;
559 
560 
569  void setTextureUncheckedDisabled(const Texture& texture);
570 
571 
578  Texture& getTextureUncheckedDisabled() const;
579 
580 
589  void setTextureCheckedDisabled(const Texture& texture);
590 
591 
598  Texture& getTextureCheckedDisabled() const;
599 
600 
610  void setTextureFocused(const Texture& texture);
611 
612 
619  Texture& getTextureFocused() const;
620 
621 
628  void setTextStyle(TextStyle style);
629 
630 
637  TextStyle getTextStyle() const;
638 
639 
646  void setTextStyleChecked(TextStyle style);
647 
648 
655  TextStyle getTextStyleChecked() const;
656 
657 
659  };
660 
662 }
663 
665 
666 #endif // TGUI_RADIO_BUTTON_RENDERER_HPP
Namespace that contains all TGUI functions and classes.
Definition: Animation.hpp:33
Wrapper for colors.
Definition: Color.hpp:46
Wrapper for text styles.
Definition: TextStyle.hpp:46
Definition: RadioButtonRenderer.hpp:36
Definition: Texture.hpp:39
Definition: Outline.hpp:37
RadioButtonRenderer(std::shared_ptr< RendererData > data)
Construct the renderer from renderer data.
Definition: RadioButtonRenderer.hpp:52
Base class for all renderer classes.
Definition: WidgetRenderer.hpp:59