26 #ifndef TGUI_SLIDER2D_HPP 27 #define TGUI_SLIDER2D_HPP 30 #include <TGUI/ClickableWidget.hpp> 95 bool load(
const std::string& configFileFilename,
const std::string& sectionName =
"Slider2d");
105 const std::string& getLoadedConfigFile()
const;
115 void setSize(
float width,
float height);
127 void setMinimum(
const sf::Vector2f& minimum);
139 void setMaximum(
const sf::Vector2f& maximum);
150 void setValue(
const sf::Vector2f& value);
161 sf::Vector2f getMinimum()
const;
172 sf::Vector2f getMaximum()
const;
183 sf::Vector2f getValue()
const;
196 void setFixedThumbSize(
bool fixedSize);
207 bool getFixedThumbSize()
const;
218 void enableThumbCenter(
bool autoCenterThumb);
240 virtual void setTransparency(
unsigned char transparency);
246 virtual void leftMousePressed(
float x,
float y);
251 virtual void leftMouseReleased(
float x,
float y);
256 virtual void mouseMoved(
float x,
float y);
261 virtual void widgetFocused();
266 virtual void mouseNoLongerDown();
274 virtual bool setProperty(std::string property,
const std::string& value);
281 virtual bool getProperty(std::string property, std::string& value)
const;
289 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
298 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
309 ValueChanged = ClickableWidgetCallbacksCount * 1,
310 ThumbReturnedToCenter = ClickableWidgetCallbacksCount * 2,
311 AllSlider2dCallbacks = ClickableWidgetCallbacksCount * 4 - 1,
312 Slider2dCallbacksCount = ClickableWidgetCallbacksCount * 4
319 std::string m_LoadedConfigFile;
321 sf::Vector2f m_Minimum;
322 sf::Vector2f m_Maximum;
323 sf::Vector2f m_Value;
325 bool m_ReturnThumbToCenter;
326 bool m_FixedThumbSize;
333 bool m_SeparateHoverImage;
341 #endif // TGUI_SLIDER2D_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
Definition: TextureManager.hpp:52
Slider2dCallbacks
Defines specific triggers to Slider2d.
Definition: Slider2d.hpp:307
Definition: Slider2d.hpp:38