TGUI  0.8-beta
EditBoxRenderer.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_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 
182  void setTextColorFocused(Color textColor);
183 
184 
189  Color getTextColorFocused() const;
190 
191 
198  void setSelectedTextColor(Color selectedTextColor);
199 
200 
207  Color getSelectedTextColor() const;
208 
209 
216  void setSelectedTextBackgroundColor(Color selectedTextBackgroundColor);
217 
218 
225  Color getSelectedTextBackgroundColor() const;
226 
227 
234  void setDefaultTextColor(Color defaultTextColor);
235 
236 
243  Color getDefaultTextColor() const;
244 
245 
254  void setBackgroundColor(Color color);
255 
256 
263  Color getBackgroundColor() const;
264 
265 
274  void setBackgroundColorHover(Color color);
275 
276 
283  Color getBackgroundColorHover() const;
284 
285 
294  void setBackgroundColorDisabled(Color color);
295 
296 
303  Color getBackgroundColorDisabled() const;
304 
305 
312  void setBackgroundColorFocused(Color color);
313 
314 
319  Color getBackgroundColorFocused() const;
320 
321 
328  void setCaretColor(Color caretColor);
329 
330 
337  Color getCaretColor() const;
338 
339 
346  void setCaretColorHover(Color caretColor);
347 
348 
355  Color getCaretColorHover() const;
356 
357 
362  void setCaretColorFocused(Color caretColor);
363 
364 
369  Color getCaretColorFocused() const;
370 
371 
378  void setBorderColor(Color color);
379 
380 
387  Color getBorderColor() const;
388 
389 
396  void setBorderColorHover(Color color);
397 
398 
405  Color getBorderColorHover() const;
406 
407 
414  void setBorderColorDisabled(Color color);
415 
416 
423  Color getBorderColorDisabled() const;
424 
425 
430  void setBorderColorFocused(Color color);
431 
432 
437  Color getBorderColorFocused() const;
438 
439 
448  void setTexture(const Texture& texture);
449 
450 
457  Texture& getTexture() const;
458 
459 
466  void setTextureHover(const Texture& texture);
467 
468 
475  Texture& getTextureHover() const;
476 
477 
484  void setTextureDisabled(const Texture& texture);
485 
486 
493  Texture& getTextureDisabled() const;
494 
495 
502  void setTextureFocused(const Texture& texture);
503 
504 
511  Texture& getTextureFocused() const;
512 
513 
515  };
516 
518 }
519 
521 
522 #endif // TGUI_EDIT_BOX_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: Texture.hpp:40
Definition: EditBoxRenderer.hpp:36
Definition: Outline.hpp:38
Base class for all renderer classes.
Definition: WidgetRenderer.hpp:80