26 #ifndef TGUI_SLIDER_HPP 27 #define TGUI_SLIDER_HPP 30 #include <TGUI/Widget.hpp> 95 virtual bool load(
const std::string& configFileFilename,
const std::string& sectionName =
"Slider");
105 const std::string& getLoadedConfigFile()
const;
121 virtual void setPosition(
float x,
float y);
132 void setSize(
float width,
float height);
141 virtual sf::Vector2f getSize()
const;
154 virtual void setMinimum(
unsigned int minimum);
167 virtual void setMaximum(
unsigned int maximum);
179 virtual void setValue(
unsigned int value);
188 void setVerticalScroll(
bool verticallScroll);
199 unsigned int getMinimum()
const;
210 unsigned int getMaximum()
const;
221 unsigned int getValue()
const;
230 bool getVerticalScroll()
const;
243 virtual void setTransparency(
unsigned char transparency);
249 virtual bool mouseOnWidget(
float x,
float y);
254 virtual void leftMousePressed(
float x,
float y);
259 virtual void leftMouseReleased(
float x,
float y);
264 virtual void mouseMoved(
float x,
float y);
269 virtual void mouseWheelMoved(
int delta,
int x,
int y);
274 virtual void widgetFocused();
282 virtual bool setProperty(std::string property,
const std::string& value);
289 virtual bool getProperty(std::string property, std::string& value)
const;
297 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
306 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
317 ValueChanged = WidgetCallbacksCount * 1,
318 AllSliderCallbacks = WidgetCallbacksCount * 2 - 1,
319 SliderCallbacksCount = WidgetCallbacksCount * 2
326 std::string m_LoadedConfigFile;
329 bool m_MouseDownOnThumb;
330 sf::Vector2f m_MouseDownOnThumbPos;
331 sf::Vector2f m_lastMousePos;
333 unsigned int m_Minimum;
334 unsigned int m_Maximum;
335 unsigned int m_Value;
338 bool m_VerticalScroll;
341 bool m_VerticalImage;
348 bool m_SeparateHoverImage;
352 sf::Vector2f m_ThumbSize;
354 Texture m_TextureTrackNormal_L;
356 Texture m_TextureTrackNormal_M;
358 Texture m_TextureTrackNormal_R;
369 #endif // TGUI_SLIDER_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
Definition: TextureManager.hpp:52
Definition: Slider.hpp:38
SliderCallbacks
Defines specific triggers to Slider.
Definition: Slider.hpp:315