26 #ifndef _TGUI_SPIN_BUTTON_INCLUDED_
27 #define _TGUI_SPIN_BUTTON_INCLUDED_
46 SpinButton(
const SpinButton& copy);
52 virtual ~SpinButton();
58 SpinButton& operator= (
const SpinButton& right);
64 virtual SpinButton* clone();
81 virtual bool load(
const std::string& pathname);
91 virtual void setSize(
float width,
float height);
97 virtual Vector2u getSize()
const;
103 virtual Vector2f getScaledSize()
const;
111 virtual std::string getLoadedPathname()
const;
120 virtual void setMinimum(
unsigned int minimum);
129 virtual void setMaximum(
unsigned int maximum);
137 virtual void setValue(
unsigned int value);
145 virtual unsigned int getMinimum()
const;
153 virtual unsigned int getMaximum()
const;
159 virtual unsigned int getValue()
const;
166 virtual bool mouseOnObject(
float x,
float y);
167 virtual void leftMousePressed(
float x,
float y);
168 virtual void leftMouseReleased(
float x,
float y);
169 virtual void mouseMoved(
float x,
float y);
170 virtual void objectFocused();
180 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
194 unsigned int m_Minimum;
195 unsigned int m_Maximum;
196 unsigned int m_Value;
199 bool m_SeparateHoverImage;
202 bool m_MouseHoverOnTopArrow;
203 bool m_MouseDownOnTopArrow;
205 sf::Texture* m_TextureNormal;
206 sf::Texture* m_TextureHover;
208 sf::Sprite m_SpriteNormal;
209 sf::Sprite m_SpriteHover;
212 std::string m_LoadedPathname;
220 #endif //_TGUI_SPIN_BUTTON_INCLUDED_
The parent struct for every object.
Definition: Objects.hpp:36