TGUI  0.8-dev
ScrollbarRenderer.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_SCROLLBAR_RENDERER_HPP
27 #define TGUI_SCROLLBAR_RENDERER_HPP
28 
29 
30 #include <TGUI/Renderers/WidgetRenderer.hpp>
31 
33 
34 namespace tgui
35 {
36  class TGUI_API ScrollbarRenderer : public WidgetRenderer
37  {
38  public:
39 
41 
42 
51  void setTrackColor(Color color);
52 
53 
60  Color getTrackColor() const;
61 
62 
69  void setTrackColorHover(Color color);
70 
71 
78  Color getTrackColorHover() const;
79 
80 
89  void setThumbColor(Color color);
90 
91 
98  Color getThumbColor() const;
99 
100 
107  void setThumbColorHover(Color color);
108 
109 
116  Color getThumbColorHover() const;
117 
118 
127  void setArrowBackgroundColor(Color color);
128 
129 
136  Color getArrowBackgroundColor() const;
137 
138 
145  void setArrowBackgroundColorHover(Color color);
146 
147 
154  Color getArrowBackgroundColorHover() const;
155 
156 
165  void setArrowColor(Color color);
166 
167 
174  Color getArrowColor() const;
175 
176 
183  void setArrowColorHover(Color color);
184 
185 
192  Color getArrowColorHover() const;
193 
194 
203  void setTextureTrack(const Texture& texture);
204 
205 
212  Texture& getTextureTrack() const;
213 
214 
221  void setTextureTrackHover(const Texture& texture);
222 
223 
230  Texture& getTextureTrackHover() const;
231 
232 
241  void setTextureThumb(const Texture& texture);
242 
243 
250  Texture& getTextureThumb() const;
251 
252 
259  void setTextureThumbHover(const Texture& texture);
260 
261 
268  Texture& getTextureThumbHover() const;
269 
270 
279  void setTextureArrowUp(const Texture& texture);
280 
281 
288  Texture& getTextureArrowUp() const;
289 
290 
297  void setTextureArrowUpHover(const Texture& texture);
298 
299 
306  Texture& getTextureArrowUpHover() const;
307 
308 
317  void setTextureArrowDown(const Texture& texture);
318 
319 
326  Texture& getTextureArrowDown() const;
327 
328 
335  void setTextureArrowDownHover(const Texture& texture);
336 
337 
344  Texture& getTextureArrowDownHover() const;
345 
346 
348  };
349 
351 }
352 
354 
355 #endif // TGUI_SCROLLBAR_RENDERER_HPP
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
Wrapper for colors.
Definition: Color.hpp:46
WidgetRenderer()=default
Default constructor.
Definition: Texture.hpp:39
Definition: ScrollbarRenderer.hpp:36
Base class for all renderer classes.
Definition: WidgetRenderer.hpp:60