class: ewol::widget::WSlider
enum:
Constructor and Destructor:
+ WSlider (void );
+ virtual ~WSlider (void );
Synopsis:
+ void init (ewol::widget::Manager & _widgetManager);
+ const char* const eventStartSlide;
+ const char* const eventStopSlide;
+ const char* const configMode;
# void subWidgetSelectSetVectorId (int32_t _id);
+ void subWidgetSelectSet (int32_t _id);
+ void subWidgetSelectSet (ewol::Widget* _widgetPointer);
+ void subWidgetSelectSet (const std::string & _widgetName);
+ void setTransitionSpeed (float _timeSecond);
+ float getTransitionSpeed (void );
+ void setTransitionMode (enum sladingMode _mode);
+ enum sladingMode getTransitionMode (void );
+ virtual void calculateSize (const vec2 & _availlable);
+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
+ virtual void onRegenerateDisplay (void );
+ virtual ewol::Widget* getWidgetAtPos (const vec2 & _pos);
+ virtual void periodicCall (const ewol::event::Time & _event);
+ virtual bool onSetConfig (const ewol::object::Config & _conf);
+ virtual bool onGetConfig (const char* _config,
std::string & _result) const;
Object Hierarchy:
+ewol::Object
+--> +ewol::Widget
+--> +ewol::widget::ContainerN
+--> ewol::widget::WSlider
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);
eventStartSlide
+ const char* const eventStartSlide;
eventStopSlide
+ const char* const eventStopSlide;
configMode
+ const char* const configMode;
WSlider
+ WSlider (void );
~WSlider
+ virtual ~WSlider (void );
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 (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 (void );
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 (void );
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 (void );
Event generated when a redraw is needed
getWidgetAtPos
+ virtual 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: NULL 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
onSetConfig
+ virtual bool onSetConfig (const ewol::object::Config & _conf);
Configuration requested to the curent Object
Parameter [input]: _conf Configuration handle.
Return: true if the parametere has been used
onGetConfig
+ virtual bool onGetConfig (const char* _config,
std::string & _result) const;
Receive a configuration message from an other element system or from the curent Object
Parameter [input]: _config Configuration name.
Parameter [output]: _result Result of the request.
Return: true if the config is set
+ewol::Object
+--> +ewol::Widget
+--> +ewol::widget::ContainerN
+--> ewol::widget::WSlider
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);
eventStartSlide
+ const char* const eventStartSlide;
eventStopSlide
+ const char* const eventStopSlide;
configMode
+ const char* const configMode;
WSlider
+ WSlider (void );
~WSlider
+ virtual ~WSlider (void );
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 (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 (void );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 (void );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 (void );Event generated when a redraw is needed
getWidgetAtPos
+ virtual 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: | NULL 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 |
onSetConfig
+ virtual bool onSetConfig (const ewol::object::Config & _conf);Configuration requested to the curent Object
Parameter [input]: | _conf | Configuration handle. |
Return: | true if the parametere has been used |
onGetConfig
+ virtual bool onGetConfig (const char* _config,Receive a configuration message from an other element system or from the curent Object
std::string & _result) const;
Parameter [input]: | _config | Configuration name. | Parameter [output]: | _result | Result of the request. |
Return: | true if the config is set |