class: ewol::widget::WSlider
enum:
Constructor and Destructor:
# WSlider ();
+ virtual ~WSlider ();
Synopsis:
+ ewol::object::Signal<void> signalStartSlide;
+ ewol::object::Signal<void> signalStopSlide;
# void init ();
+ DECLARE_WIDGET_FACTORY (WSlider ,
"WSlider" );
# void subWidgetSelectSetVectorId (int32_t _id);
+ void subWidgetSelectSet (int32_t _id);
+ void subWidgetSelectSet (const std::shared_ptr<ewol::Widget> & _widgetPointer);
+ void subWidgetSelectSet (const std::string & _widgetName);
+ void setTransitionSpeed (float _timeSecond);
+ float getTransitionSpeed () const;
+ void setTransitionMode (enum sladingMode _mode);
+ enum sladingMode getTransitionMode ();
+ virtual void calculateSize (const vec2 & _availlable);
+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
+ virtual void onRegenerateDisplay ();
+ virtual std::shared_ptr<ewol::Widget> getWidgetAtPos (const vec2 & _pos);
+ virtual void periodicCall (const ewol::event::Time & _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::ContainerN
+--> ewol::widget::WSlider
Detail:
signalStartSlide
+ ewol::object::Signal<void> signalStartSlide;
signalStopSlide
+ ewol::object::Signal<void> signalStopSlide;
WSlider
# WSlider ();
init
# void init ();
DECLARE_WIDGET_FACTORY
+ DECLARE_WIDGET_FACTORY (WSlider ,
"WSlider" );
~WSlider
+ virtual ~WSlider ();
subWidgetSelectSetVectorId
# void subWidgetSelectSetVectorId (int32_t _id);
Generate the move on the specific vector ID (This is not a public acces, because the vector can have some null pointer inside ...)
Parameter [input]: _id Id in the vector
subWidgetSelectSet
+ void subWidgetSelectSet (int32_t _id);
Select a new subwidget to display
Parameter [input]: _id Id of the subwidget requested
subWidgetSelectSet
+ void subWidgetSelectSet (const std::shared_ptr<ewol::Widget> & _widgetPointer);
Select a new subwidget to display
Parameter [input]: _widgetPointer Pointer on the widget selected (must be added before)
subWidgetSelectSet
+ void subWidgetSelectSet (const std::string & _widgetName);
Select a new subwidget to display
Parameter [input]: _widgetName Name of the subwidget name
setTransitionSpeed
+ void setTransitionSpeed (float _timeSecond);
set transition speed element.
Parameter [input]: _timeSecond number of second needed to do the transition.
getTransitionSpeed
+ float getTransitionSpeed () const;
get transition speed element.
Return: number of second needed to do the transition.
setTransitionMode
+ void setTransitionMode (enum sladingMode _mode);
set a new mode of sliding element
Parameter [input]: _mode new display mode
getTransitionMode
+ enum sladingMode getTransitionMode ();
get a new mode of sliding element
Return: The current sliding mode
calculateSize
+ virtual void calculateSize (const vec2 & _availlable);
Parent set the possible diplay size of the current widget whith his own possibilities
By default this save the widget available size in the widget size
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: _available Available x&y pixel size
systemDraw
+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
{SYSTEM} extern interface to request a draw ... (called by the drawing thread [Android, X11, ...])
This function generate a clipping with the viewport openGL system. Like this a widget draw can not draw over an other widget
Note: This function is virtual for the scrolled widget, and the more complicated openGl widget
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: _displayProp properties of the current display
onRegenerateDisplay
+ virtual void onRegenerateDisplay ();
Event generated when a redraw is needed
getWidgetAtPos
+ virtual std::shared_ptr<ewol::Widget> getWidgetAtPos (const vec2 & _pos);
get the widget at the specific windows absolute position
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: _pos gAbsolute position of the requested widget knowledge
Return: nullptr No widget found<br/>pointer on the widget found
periodicCall
+ virtual void periodicCall (const ewol::event::Time & _event);
periodic call of this widget
Parameter: _event Current time property
onParameterChangeValue
+ virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> +ewol::widget::ContainerN
+--> ewol::widget::WSlider
Detail:
signalStartSlide
+ ewol::object::Signal<void> signalStartSlide;
signalStopSlide
+ ewol::object::Signal<void> signalStopSlide;
WSlider
# WSlider ();
init
# void init ();
DECLARE_WIDGET_FACTORY
+ DECLARE_WIDGET_FACTORY (WSlider ,
"WSlider" );
~WSlider
+ virtual ~WSlider ();
subWidgetSelectSetVectorId
# void subWidgetSelectSetVectorId (int32_t _id);Generate the move on the specific vector ID (This is not a public acces, because the vector can have some null pointer inside ...)
Parameter [input]: | _id | Id in the vector |
subWidgetSelectSet
+ void subWidgetSelectSet (int32_t _id);Select a new subwidget to display
Parameter [input]: | _id | Id of the subwidget requested |
subWidgetSelectSet
+ void subWidgetSelectSet (const std::shared_ptr<ewol::Widget> & _widgetPointer);Select a new subwidget to display
Parameter [input]: | _widgetPointer | Pointer on the widget selected (must be added before) |
subWidgetSelectSet
+ void subWidgetSelectSet (const std::string & _widgetName);Select a new subwidget to display
Parameter [input]: | _widgetName | Name of the subwidget name |
setTransitionSpeed
+ void setTransitionSpeed (float _timeSecond);set transition speed element.
Parameter [input]: | _timeSecond | number of second needed to do the transition. |
getTransitionSpeed
+ float getTransitionSpeed () const;get transition speed element.
Return: | number of second needed to do the transition. |
setTransitionMode
+ void setTransitionMode (enum sladingMode _mode);set a new mode of sliding element
Parameter [input]: | _mode | new display mode |
getTransitionMode
+ enum sladingMode getTransitionMode ();get a new mode of sliding element
Return: | The current sliding mode |
calculateSize
+ virtual void calculateSize (const vec2 & _availlable);Parent set the possible diplay size of the current widget whith his own possibilities By default this save the widget available size in the widget size
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: | _available | Available x&y pixel size |
systemDraw
+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);{SYSTEM} extern interface to request a draw ... (called by the drawing thread [Android, X11, ...]) This function generate a clipping with the viewport openGL system. Like this a widget draw can not draw over an other widget
Note: This function is virtual for the scrolled widget, and the more complicated openGl widget
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: | _displayProp | properties of the current display |
onRegenerateDisplay
+ virtual void onRegenerateDisplay ();Event generated when a redraw is needed
getWidgetAtPos
+ virtual std::shared_ptr<ewol::Widget> getWidgetAtPos (const vec2 & _pos);get the widget at the specific windows absolute position
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: | _pos | gAbsolute position of the requested widget knowledge |
Return: | nullptr No widget found<br/>pointer on the widget found |
periodicCall
+ virtual void periodicCall (const ewol::event::Time & _event);periodic call of this widget
Parameter: | _event | Current time property |
onParameterChangeValue
+ virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);