TGUI  0.8-dev
EditBoxRenderer.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_EDIT_BOX_RENDERER_HPP
27 #define TGUI_EDIT_BOX_RENDERER_HPP
28 
29 
30 #include <TGUI/Renderers/WidgetRenderer.hpp>
31 
33 
34 namespace tgui
35 {
36  class TGUI_API EditBoxRenderer : public WidgetRenderer
37  {
38  public:
39 
41 
42 
49  void setTextStyle(TextStyle style);
50 
51 
58  TextStyle getTextStyle() const;
59 
60 
71  void setDefaultTextStyle(TextStyle style);
72 
73 
80  TextStyle getDefaultTextStyle() const;
81 
82 
89  void setBorders(const Borders& borders);
90 
91 
98  Borders getBorders() const;
99 
100 
110  void setPadding(const Padding& padding);
111 
112 
121  Padding getPadding() const;
122 
123 
130  void setCaretWidth(float width);
131 
132 
139  float getCaretWidth() const;
140 
141 
148  void setTextColor(Color textColor);
149 
150 
157  Color getTextColor() const;
158 
159 
166  void setTextColorDisabled(Color textColor);
167 
168 
175  Color getTextColorDisabled() const;
176 
177 
184  void setSelectedTextColor(Color selectedTextColor);
185 
186 
193  Color getSelectedTextColor() const;
194 
195 
202  void setSelectedTextBackgroundColor(Color selectedTextBackgroundColor);
203 
204 
211  Color getSelectedTextBackgroundColor() const;
212 
213 
220  void setDefaultTextColor(Color defaultTextColor);
221 
222 
229  Color getDefaultTextColor() const;
230 
231 
240  void setBackgroundColor(Color color);
241 
242 
249  Color getBackgroundColor() const;
250 
251 
260  void setBackgroundColorHover(Color color);
261 
262 
269  Color getBackgroundColorHover() const;
270 
271 
280  void setBackgroundColorDisabled(Color color);
281 
282 
289  Color getBackgroundColorDisabled() const;
290 
291 
298  void setCaretColor(Color caretColor);
299 
300 
307  Color getCaretColor() const;
308 
309 
316  void setCaretColorHover(Color caretColor);
317 
318 
325  Color getCaretColorHover() const;
326 
327 
334  void setCaretColorDisabled(Color caretColor);
335 
336 
343  Color getCaretColorDisabled() const;
344 
345 
352  void setBorderColor(Color color);
353 
354 
361  Color getBorderColor() const;
362 
363 
370  void setBorderColorHover(Color color);
371 
372 
379  Color getBorderColorHover() const;
380 
381 
388  void setBorderColorDisabled(Color color);
389 
390 
397  Color getBorderColorDisabled() const;
398 
399 
408  void setTexture(const Texture& texture);
409 
410 
417  Texture& getTexture() const;
418 
419 
426  void setTextureHover(const Texture& texture);
427 
428 
435  Texture& getTextureHover() const;
436 
437 
444  void setTextureDisabled(const Texture& texture);
445 
446 
453  Texture& getTextureDisabled() const;
454 
455 
462  void setTextureFocused(const Texture& texture);
463 
464 
471  Texture& getTextureFocused() const;
472 
473 
475  };
476 
478 }
479 
481 
482 #endif // TGUI_EDIT_BOX_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: Texture.hpp:39
Definition: EditBoxRenderer.hpp:36
Definition: Outline.hpp:38
Base class for all renderer classes.
Definition: WidgetRenderer.hpp:60