class: ewol::widget::Sizer
enum:
Constructor and Destructor:
# Sizer ();
+ virtual ~Sizer ();
Synopsis:
+ void init (ewol::widget::Manager & _widgetManager);
# void init (enum displayMode _mode);
+ DECLARE_WIDGET_FACTORY (Sizer ,
"Sizer" );
+ void setMode (enum displayMode _mode);
+ enum displayMode getMode () const;
+ void setBorderSize (const ewol::Dimension & _newBorderSize);
+ const ewol::Dimension & getBorderSize () const;
+ void setAnimationMode (enum animation _animation);
+ enum animation getAnimationMode ();
+ void setAnimationTime (float _time);
+ float getAnimationTime ();
+ virtual void calculateSize (const vec2 & _availlable);
+ virtual void calculateMinMaxSize ();
+ virtual int32_t subWidgetAdd (std::shared_ptr<ewol::Widget> _newWidget);
+ virtual int32_t subWidgetAddStart (std::shared_ptr<ewol::Widget> _newWidget);
+ virtual void subWidgetRemove (std::shared_ptr<ewol::Widget> _newWidget);
+ virtual void subWidgetUnLink (std::shared_ptr<ewol::Widget> _newWidget);
+ 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::Sizer
+--> ewol::widget::Menu
+--> ewol::widget::ColorChooser
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);
Main call of recording the widget on the List of "widget named creator"
Sizer
# Sizer ();
Constructor
Parameter [input]: _mode The mode to display the elements
init
# void init (enum displayMode _mode);
DECLARE_WIDGET_FACTORY
+ DECLARE_WIDGET_FACTORY (Sizer ,
"Sizer" );
~Sizer
+ virtual ~Sizer ();
Desstructor
setMode
+ void setMode (enum displayMode _mode);
set the mode to display elements.
Parameter [input]: _mode The mode to display the elements.
getMode
+ enum displayMode getMode () const;
get the mode to display elements.
Return: The current mode to display the elements.
setBorderSize
+ void setBorderSize (const ewol::Dimension & _newBorderSize);
set the current border size of the current element:
Parameter [input]: _newBorderSize The border size to set (0 if not used)
getBorderSize
+ const ewol::Dimension & getBorderSize () const;
get the current border size of the current element:
Return: the border size (0 if not used)
setAnimationMode
+ void setAnimationMode (enum animation _animation);
set an animation mode for the new element set in the Widget container.
Parameter [input]: _animation The new animation mode.
getAnimationMode
+ enum animation getAnimationMode ();
get the current animation mode.
Return: The animation mode.
setAnimationTime
+ void setAnimationTime (float _time);
set the time to produce animation.
Parameter [input]: _time The new animation time.
getAnimationTime
+ float getAnimationTime ();
get the current animation time.
Return: The time to produce the animation.
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
calculateMinMaxSize
+ virtual void calculateMinMaxSize ();
calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM
subWidgetAdd
+ virtual int32_t subWidgetAdd (std::shared_ptr<ewol::Widget> _newWidget);
add at end position a Widget (note : This system use an inverted phylisophie (button to top, and left to right)
Parameter [input]: _newWidget the element pointer
Return: the ID of the set element
subWidgetAddStart
+ virtual int32_t subWidgetAddStart (std::shared_ptr<ewol::Widget> _newWidget);
add at start position a Widget (note : This system use an inverted phylisophie (button to top, and left to right)
Parameter [input]: _newWidget the element pointer
Return: the ID of the set element
subWidgetRemove
+ virtual void subWidgetRemove (std::shared_ptr<ewol::Widget> _newWidget);
remove definitly a widget from the system and this layer.
Parameter [input]: _newWidget the element pointer.
subWidgetUnLink
+ virtual void subWidgetUnLink (std::shared_ptr<ewol::Widget> _newWidget);
Just unlick the specify widget, this function does not remove it from the system (if you can, do nt use it ...)
Parameter [input]: _newWidget the element pointer.
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::Sizer
+--> ewol::widget::Menu
+--> ewol::widget::ColorChooser
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);Main call of recording the widget on the List of "widget named creator"
Sizer
# Sizer ();Constructor
Parameter [input]: | _mode | The mode to display the elements |
init
# void init (enum displayMode _mode);
DECLARE_WIDGET_FACTORY
+ DECLARE_WIDGET_FACTORY (Sizer ,
"Sizer" );
~Sizer
+ virtual ~Sizer ();Desstructor
setMode
+ void setMode (enum displayMode _mode);set the mode to display elements.
Parameter [input]: | _mode | The mode to display the elements. |
getMode
+ enum displayMode getMode () const;get the mode to display elements.
Return: | The current mode to display the elements. |
setBorderSize
+ void setBorderSize (const ewol::Dimension & _newBorderSize);set the current border size of the current element:
Parameter [input]: | _newBorderSize | The border size to set (0 if not used) |
getBorderSize
+ const ewol::Dimension & getBorderSize () const;get the current border size of the current element:
Return: | the border size (0 if not used) |
setAnimationMode
+ void setAnimationMode (enum animation _animation);set an animation mode for the new element set in the Widget container.
Parameter [input]: | _animation | The new animation mode. |
getAnimationMode
+ enum animation getAnimationMode ();get the current animation mode.
Return: | The animation mode. |
setAnimationTime
+ void setAnimationTime (float _time);set the time to produce animation.
Parameter [input]: | _time | The new animation time. |
getAnimationTime
+ float getAnimationTime ();get the current animation time.
Return: | The time to produce the animation. |
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 |
calculateMinMaxSize
+ virtual void calculateMinMaxSize ();calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM
subWidgetAdd
+ virtual int32_t subWidgetAdd (std::shared_ptr<ewol::Widget> _newWidget);add at end position a Widget (note : This system use an inverted phylisophie (button to top, and left to right)
Parameter [input]: | _newWidget | the element pointer |
Return: | the ID of the set element |
subWidgetAddStart
+ virtual int32_t subWidgetAddStart (std::shared_ptr<ewol::Widget> _newWidget);add at start position a Widget (note : This system use an inverted phylisophie (button to top, and left to right)
Parameter [input]: | _newWidget | the element pointer |
Return: | the ID of the set element |
subWidgetRemove
+ virtual void subWidgetRemove (std::shared_ptr<ewol::Widget> _newWidget);remove definitly a widget from the system and this layer.
Parameter [input]: | _newWidget | the element pointer. |
subWidgetUnLink
+ virtual void subWidgetUnLink (std::shared_ptr<ewol::Widget> _newWidget);Just unlick the specify widget, this function does not remove it from the system (if you can, do nt use it ...)
Parameter [input]: | _newWidget | the element pointer. |
onParameterChangeValue
+ virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);