class: ewol::widget::Slider


Constructor and Destructor:

#                                       Slider                 ();
+ virtual ~Slider ();

Synopsis:

+         ewol::object::Signal<int32_t> signalChange;
# void init ();
+ DECLARE_WIDGET_FACTORY (Slider ,
"Slider" );
# ewol::object::Param<float> m_value;
+ void setValue (float _val);
+ float getValue ();
# ewol::object::Param<float> m_min;
+ void setMin (float _val);
+ float getMin ();
# ewol::object::Param<float> m_max;
+ void setMax (float _val);
+ float getMax ();
# ewol::object::Param<float> m_step;
+ void setStep (float _val);
+ float getStep ();
+ void setColor (etk::Color<> _newColor);
# ewol::compositing::Drawing m_draw;
# etk::Color<> m_textColorFg;
# etk::Color<> m_textColorBg;
# void updateValue (float _newValue);
+ virtual void onDraw ();
+ virtual void calculateMinMaxSize ();
+ virtual void onRegenerateDisplay ();
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);

Object Hierarchy:

+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Slider

Detail:

signalChange

+ ewol::object::Signal<int32_t> signalChange;



Slider

#  Slider ();



init

# void init ();



DECLARE_WIDGET_FACTORY

+  DECLARE_WIDGET_FACTORY (Slider ,
"Slider" );



~Slider

+ virtual  ~Slider ();



m_value

# ewol::object::Param<float> m_value;
current value of the Slider


setValue

+ void setValue (float _val);
Set the value of the slider.


getValue

+ float getValue ();
Get the value of the slider.


m_min

# ewol::object::Param<float> m_min;
minimum value of the slider


setMin

+ void setMin (float _val);
Set the minumum value of the slider.


getMin

+ float getMin ();
Get the minimum value of the slider.


m_max

# ewol::object::Param<float> m_max;
maximum value of the slider


setMax

+ void setMax (float _val);
Set the maximum value of the slider.


getMax

+ float getMax ();
Get the maximum value of the slider.


m_step

# ewol::object::Param<float> m_step;



setStep

+ void setStep (float _val);
Set the step value of the slider.


getStep

+ float getStep ();
Get the step value of the slider.


setColor

+ void setColor (etk::Color<> _newColor);



m_draw

# ewol::compositing::Drawing m_draw;
drawing tool.


m_textColorFg

# etk::Color<> m_textColorFg;
Text color


m_textColorBg

# etk::Color<> m_textColorBg;
Background color


updateValue

# void updateValue (float _newValue);



onDraw

+ virtual void onDraw ();
Common widget drawing function (called by the drawing thread [Android, X11, ...])


calculateMinMaxSize

+ virtual void calculateMinMaxSize ();
calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM


onRegenerateDisplay

+ virtual void onRegenerateDisplay ();
Event generated when a redraw is needed


onEventInput

+ virtual bool onEventInput (const ewol::event::Input & _event);
Event on an input of this Widget (finger, mouse, stilet)


onParameterChangeValue

+ virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);