26 #ifndef _TGUI_SLIDER_INCLUDED_
27 #define _TGUI_SLIDER_INCLUDED_
46 Slider(
const Slider& copy);
58 Slider& operator= (
const Slider& right);
64 virtual Slider* clone();
82 virtual bool load(
const std::string& pathname);
92 virtual void setSize(
float width,
float height);
98 virtual Vector2u getSize()
const;
104 virtual Vector2f getScaledSize()
const;
112 virtual std::string getLoadedPathname()
const;
121 virtual void setMinimum(
unsigned int minimum);
130 virtual void setMaximum(
unsigned int maximum);
138 virtual void setValue(
unsigned int value);
147 virtual void setVerticalScroll(
bool verticallScroll);
155 virtual unsigned int getMinimum()
const;
163 virtual unsigned int getMaximum()
const;
169 virtual unsigned int getValue()
const;
178 virtual bool getVerticalScroll();
185 virtual bool mouseOnObject(
float x,
float y);
186 virtual void leftMousePressed(
float x,
float y);
187 virtual void leftMouseReleased(
float x,
float y);
188 virtual void mouseMoved(
float x,
float y);
189 virtual void mouseWheelMoved(
int delta);
190 virtual void keyPressed(sf::Keyboard::Key key);
191 virtual void objectFocused();
201 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
208 bool m_MouseDownOnThumb;
209 Vector2f m_MouseDownOnThumbPos;
211 unsigned int m_Minimum;
212 unsigned int m_Maximum;
213 unsigned int m_Value;
216 bool m_VerticalScroll;
219 bool m_VerticalImage;
226 bool m_SeparateHoverImage;
230 Vector2f m_ThumbSize;
232 sf::Texture* m_TextureTrackNormal_L;
233 sf::Texture* m_TextureTrackHover_L;
234 sf::Texture* m_TextureTrackNormal_M;
235 sf::Texture* m_TextureTrackHover_M;
236 sf::Texture* m_TextureTrackNormal_R;
237 sf::Texture* m_TextureTrackHover_R;
238 sf::Texture* m_TextureThumbNormal;
239 sf::Texture* m_TextureThumbHover;
241 sf::Sprite m_SpriteTrackNormal_L;
242 sf::Sprite m_SpriteTrackHover_L;
243 sf::Sprite m_SpriteTrackNormal_M;
244 sf::Sprite m_SpriteTrackHover_M;
245 sf::Sprite m_SpriteTrackNormal_R;
246 sf::Sprite m_SpriteTrackHover_R;
247 sf::Sprite m_SpriteThumbNormal;
248 sf::Sprite m_SpriteThumbHover;
251 std::string m_LoadedPathname;
259 #endif //_TGUI_SLIDER_INCLUDED_
The parent struct for every object.
Definition: Objects.hpp:36
Definition: Slider.hpp:35