FYP  1.0.0
Final Year Project -- Alexander Meuer
gui::Slider Class Reference
Inheritance diagram for gui::Slider:
Inheritance graph
Collaboration diagram for gui::Slider:
Collaboration graph

Public Member Functions

 Slider (tinyxml2::XMLElement *xml)
 
bool update (int mouseX, int mouseY)
 Returns true if value changed.
 
void setValue (const int value)
 
int getAbsoluteValue () const
 
float getNormalisedValue () const
 
void setPosition (sf::Vector2f const &position)
 
sf::Vector2f const & getPosition () const
 

Private Member Functions

void draw (sf::RenderTarget &target, sf::RenderStates states) const override
 

Private Attributes

const int mMinValue
 Min and max values for the slider. Used when getValue() or setValue() is called.
 
const int mMaxValue
 
float mValue
 From 0.0 to 1.0, how far along the bar the blip is.
 
Button mBlip
 Visual indicator of slider progress.
 
sf::RectangleShape mBar
 Visual representation of slider bar.
 

The documentation for this class was generated from the following file: