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


setColSize

+ void setColSize (int32_t _colId,
int32_t _size);
change a size view of a colomn.


setRowSize

+ void setRowSize (int32_t _size);
change a size view of a line.


getColSize

+ int32_t getColSize (int32_t _colId);
get the size view of a colomn.


getRowSize

+ int32_t getRowSize (void );
get the size view 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)


subWidgetRemove

+ virtual void subWidgetRemove (ewol::Widget* _newWidget);
remove definitly a widget from the system and this Gird.


subWidgetRemove

+ virtual void subWidgetRemove (int32_t _colId,
int32_t _rowId);
remove definitly a widget from the system and this Gird.


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 ...).


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 ...).


setBorderSize

+ void setBorderSize (const ivec2 & _newBorderSize);
set the current border size of the current element:


getBorderSize

+ const ivec2 & getBorderSize (void );
get the current border size of the current element:


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


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


onObjectRemove

+ virtual void onObjectRemove (ewol::Object* _removeObject);
Inform object that an other object is removed ...
Note: : Sub classes must call this class


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


calculateMinMaxSize

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