class: ewol::widget::Gird
Constructor and Destructor:
+ Gird (int32_t _colNumber);
+ virtual ~Gird (void );
Synopsis:
+ void init (ewol::widget::Manager & _widgetManager);
+ void setColNumber (int32_t _colNumber);
+ void setColSize (int32_t _colId,
int32_t _size);
+ void setRowSize (int32_t _size);
+ int32_t getColSize (int32_t _colId);
+ int32_t getRowSize (void );
+ void setGravityButtom (void );
+ void setGravityTop (void );
+ virtual void subWidgetRemoveAll (void );
+ virtual void subWidgetAdd (int32_t _colId,
int32_t _rowId,
ewol::Widget* _newWidget);
+ virtual void subWidgetRemove (ewol::Widget* _newWidget);
+ virtual void subWidgetRemove (int32_t _colId,
int32_t _rowId);
+ virtual void subWidgetUnLink (ewol::Widget* _newWidget);
+ virtual void subWidgetUnLink (int32_t _colId,
int32_t _rowId);
+ void setBorderSize (const ivec2 & _newBorderSize);
+ const ivec2 & getBorderSize (void );
+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
+ virtual void onRegenerateDisplay (void );
+ virtual ewol::Widget* getWidgetAtPos (const vec2 & pos);
+ virtual void onObjectRemove (ewol::Object* _removeObject);
+ virtual void calculateSize (const vec2 & _availlable);
+ virtual void calculateMinMaxSize (void );
Object Hierarchy:
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Gird
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);
Gird
+ Gird (int32_t _colNumber);
Constructor
~Gird
+ virtual ~Gird (void );
Desstructor
setColNumber
+ void setColNumber (int32_t _colNumber);
set the number of colomn
Parameter [input]: colNumber Nuber of colomn
setColSize
+ void setColSize (int32_t _colId,
int32_t _size);
change a size view of a colomn.
Parameter [input]: colId Id of the colomn [0..x].
Parameter [input]: size size of the colomn.
setRowSize
+ void setRowSize (int32_t _size);
change a size view of a line.
Parameter [input]: size size of the line.
getColSize
+ int32_t getColSize (int32_t _colId);
get the size view of a colomn.
Parameter [input]: colId Id of the colomn [0..x].
Return: The size of the colomn.
getRowSize
+ int32_t getRowSize (void );
get the size view of the lines.
Return: The size of the lines.
setGravityButtom
+ void setGravityButtom (void );
set the gravity of the widget on the Button (index 0 is on buttom)
setGravityTop
+ void setGravityTop (void );
set the gravity of the widget on the Top (index 0 is on top)
subWidgetRemoveAll
+ virtual void subWidgetRemoveAll (void );
remove all sub element from the widget.
subWidgetAdd
+ virtual void subWidgetAdd (int32_t _colId,
int32_t _rowId,
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]: _colId Id of the colomn [0..x].
Parameter [input]: _rowId Id of the row [0..y].
Parameter [input]: _newWidget the element pointer
subWidgetRemove
+ virtual void subWidgetRemove (ewol::Widget* _newWidget);
remove definitly a widget from the system and this Gird.
Parameter [input]: _newWidget the element pointer.
subWidgetRemove
+ virtual void subWidgetRemove (int32_t _colId,
int32_t _rowId);
remove definitly a widget from the system and this Gird.
Parameter [input]: _colId Id of the colomn [0..x].
Parameter [input]: _rowId Id of the row [0..y].
subWidgetUnLink
+ virtual void subWidgetUnLink (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.
subWidgetUnLink
+ virtual void subWidgetUnLink (int32_t _colId,
int32_t _rowId);
Just unlick the specify widget, this function does not remove it from the system (if you can, do nt use it ...).
Parameter [input]: _colId Id of the colomn [0..x].
Parameter [input]: _rowId Id of the row [0..y].
setBorderSize
+ void setBorderSize (const ivec2 & _newBorderSize);
set the current border size of the current element:
Parameter [input]: _newBorderSize The border size to set (0 if not used)
getBorderSize
+ const ivec2 & getBorderSize (void );
get the current border size of the current element:
Return: the border size (0 if not used)
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
onObjectRemove
+ virtual void onObjectRemove (ewol::Object* _removeObject);
Inform object that an other object is removed ...
Note: : Sub classes must call this class
Parameter [input]: _removObject Pointer on the Object remeved == > the user must remove all reference on this Object
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 (void );
calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Gird
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);
Gird
+ Gird (int32_t _colNumber);Constructor
~Gird
+ virtual ~Gird (void );Desstructor
setColNumber
+ void setColNumber (int32_t _colNumber);set the number of colomn
Parameter [input]: | colNumber | Nuber of colomn |
setColSize
+ void setColSize (int32_t _colId,change a size view of a colomn.
int32_t _size);
Parameter [input]: | colId | Id of the colomn [0..x]. | Parameter [input]: | size | size of the colomn. |
setRowSize
+ void setRowSize (int32_t _size);change a size view of a line.
Parameter [input]: | size | size of the line. |
getColSize
+ int32_t getColSize (int32_t _colId);get the size view of a colomn.
Parameter [input]: | colId | Id of the colomn [0..x]. |
Return: | The size of the colomn. |
getRowSize
+ int32_t getRowSize (void );get the size view of the lines.
Return: | The size of the lines. |
setGravityButtom
+ void setGravityButtom (void );set the gravity of the widget on the Button (index 0 is on buttom)
setGravityTop
+ void setGravityTop (void );set the gravity of the widget on the Top (index 0 is on top)
subWidgetRemoveAll
+ virtual void subWidgetRemoveAll (void );remove all sub element from the widget.
subWidgetAdd
+ virtual void subWidgetAdd (int32_t _colId,add at end position a Widget (note : This system use an inverted phylisophie (button to top, and left to right)
int32_t _rowId,
ewol::Widget* _newWidget);
Parameter [input]: | _colId | Id of the colomn [0..x]. | Parameter [input]: | _rowId | Id of the row [0..y]. | Parameter [input]: | _newWidget | the element pointer |
subWidgetRemove
+ virtual void subWidgetRemove (ewol::Widget* _newWidget);remove definitly a widget from the system and this Gird.
Parameter [input]: | _newWidget | the element pointer. |
subWidgetRemove
+ virtual void subWidgetRemove (int32_t _colId,remove definitly a widget from the system and this Gird.
int32_t _rowId);
Parameter [input]: | _colId | Id of the colomn [0..x]. | Parameter [input]: | _rowId | Id of the row [0..y]. |
subWidgetUnLink
+ virtual void subWidgetUnLink (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. |
subWidgetUnLink
+ virtual void subWidgetUnLink (int32_t _colId,Just unlick the specify widget, this function does not remove it from the system (if you can, do nt use it ...).
int32_t _rowId);
Parameter [input]: | _colId | Id of the colomn [0..x]. | Parameter [input]: | _rowId | Id of the row [0..y]. |
setBorderSize
+ void setBorderSize (const ivec2 & _newBorderSize);set the current border size of the current element:
Parameter [input]: | _newBorderSize | The border size to set (0 if not used) |
getBorderSize
+ const ivec2 & getBorderSize (void );get the current border size of the current element:
Return: | the border size (0 if not used) |
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 |
onObjectRemove
+ virtual void onObjectRemove (ewol::Object* _removeObject);Inform object that an other object is removed ...
Note: : Sub classes must call this class
Parameter [input]: | _removObject | Pointer on the Object remeved == > the user must remove all reference on this Object |
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 (void );calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM