26 #ifndef TGUI_SCROLLBAR_HPP 27 #define TGUI_SCROLLBAR_HPP 30 #include <TGUI/Slider.hpp> 95 bool load(
const std::string& configFileFilename,
const std::string& sectionName =
"Scrollbar");
105 const std::string& getLoadedConfigFile()
const;
115 void setSize(
float width,
float height);
124 virtual sf::Vector2f getSize()
const;
136 void setMaximum(
unsigned int maximum);
147 void setValue(
unsigned int value);
161 void setLowValue(
unsigned int lowValue);
170 void setVerticalScroll(
bool verticallScroll);
181 unsigned int getMaximum()
const;
192 unsigned int getValue()
const;
201 unsigned int getLowValue()
const;
210 bool getVerticalScroll()
const;
219 void setArrowScrollAmount(
unsigned int scrollAmount);
228 unsigned int getArrowScrollAmount();
239 void setAutoHide(
bool autoHide);
249 bool getAutoHide()
const;
262 virtual void setTransparency(
unsigned char transparency);
268 virtual bool mouseOnWidget(
float x,
float y);
273 virtual void leftMousePressed(
float x,
float y);
278 virtual void leftMouseReleased(
float x,
float y);
283 virtual void mouseMoved(
float x,
float y);
288 virtual void mouseWheelMoved(
int delta,
int x,
int y);
293 virtual void widgetFocused();
301 virtual bool setProperty(std::string property,
const std::string& value);
308 virtual bool getProperty(std::string property, std::string& value)
const;
316 virtual std::list< std::pair<std::string, std::string> > getPropertyList()
const;
325 sf::FloatRect getThumbRect()
const;
334 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const;
345 ValueChanged = WidgetCallbacksCount * 1,
346 AllScrollbarCallbacks = WidgetCallbacksCount * 2 - 1,
347 ScrollbarCallbacksCount = WidgetCallbacksCount * 2
354 std::string m_LoadedConfigFile;
357 bool m_MouseDownOnThumb;
358 sf::Vector2f m_MouseDownOnThumbPos;
359 sf::Vector2f m_lastMousePos;
361 unsigned int m_Maximum;
362 unsigned int m_Value;
365 unsigned int m_LowValue;
368 bool m_VerticalScroll;
371 bool m_VerticalImage;
374 unsigned int m_ScrollAmount;
380 bool m_MouseDownOnArrow;
387 bool m_SeparateHoverImage;
391 sf::Vector2f m_ThumbSize;
393 Texture m_TextureTrackNormal_L;
395 Texture m_TextureTrackNormal_M;
397 Texture m_TextureTrackNormal_R;
403 Texture m_TextureArrowUpNormal;
406 Texture m_TextureArrowDownNormal;
407 Texture m_TextureArrowDownHover;
424 #endif // TGUI_SCROLLBAR_HPP Namespace that contains all TGUI functions and classes.
Definition: AnimatedPicture.hpp:33
Definition: ComboBox.hpp:38
Definition: TextureManager.hpp:52
Definition: TextBox.hpp:40
Definition: ListBox.hpp:40
Definition: ChatBox.hpp:41