class hiro::gui::SlidingFloat
Overview
Slider that can be directly interpreted by float value. More…
#include <GuiTypes.h> class SlidingFloat: public hiro::gui::LinkedElement { public: // methods virtual hiro::gui::SlidingFloat* Set(float value); hiro::gui::SlidingFloat* SetMin(float min_val); hiro::gui::SlidingFloat* SetMax(float max_val); hiro::gui::SlidingFloat* SetMinMax(float min, float max); hiro::gui::SlidingFloat* SetStep(float val_step); float Get() const; float GetMin() const; float GetMax() const; float GetStep() const; };
Inherited Members
public: // methods bool TestCondition() const; uint32_t GetId() const; C* SetConditionFunc(std::function<bool(void)> condition_func); C* SetConditionBool(bool* var, hiro::BoolFunc func = hiro::BoolFunc::equals_true); C* Subscribe(std::function<void(const C*)> callback_func); virtual C* Set(const T new_value) = 0; virtual T Get() const = 0; C* SetLink(T* pointer); protected: // methods void SetConditionFuncImpl(std::function<bool(void)> condition_func); virtual void NotifyChange() const; virtual void NotifyChange() const;
Detailed Documentation
Slider that can be directly interpreted by float value.
Methods
virtual hiro::gui::SlidingFloat* Set(float value)
Set value to slider handle. Values outside of min max range are clipped. Default 0.
hiro::gui::SlidingFloat* SetMin(float min_val)
Define the minimal value that can be set. Default 0.
hiro::gui::SlidingFloat* SetMax(float max_val)
Define the maximal value that can be set. Default 1.
hiro::gui::SlidingFloat* SetMinMax(float min, float max)
Define the minimal and the maximal values that can be set.
Default for minimal is 0 and for maximal is 1.
hiro::gui::SlidingFloat* SetStep(float val_step)
Set step by which the slider moves when clicked out of handle bounds. Default 0.1.
float Get() const
Returns current value defined by slider handle.
float GetMin() const
Get the minimal value that can be set.
float GetMax() const
Get the maximal value that can be set.
float GetStep() const
Returns step by which the slider moves when clicked out of handle bounds.