Class: widget::Gird
Synopsis:
+ static void init (ewol::WidgetManager & _widgetManager);
+ Gird (int32_t _colNumber);
+ ~Gird (void);
+ 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);
+ void subWidgetRemoveAll (void);
+ void subWidgetAdd (int32_t _colId,
int32_t _rowId,
ewol::Widget * _newWidget);
+ void subWidgetRemove (ewol::Widget * _newWidget);
+ void subWidgetRemove (int32_t _colId,
int32_t _rowId);
+ void subWidgetUnLink (ewol::Widget * _newWidget);
+ void subWidgetUnLink (int32_t _colId,
int32_t _rowId);
+ void setBorderSize (const ivec2 & _newBorderSize);
+ const ivec2 & getBorderSize (void);
+ void systemDraw (const ewol::DrawProperty & _displayProp);
+ void onRegenerateDisplay (void);
+ ewol::Widget * getWidgetAtPos (const vec2 & pos);
+ void onObjectRemove (ewol::EObject * _removeObject);
+ void calculateSize (const vec2 & _availlable);
+ void calculateMinMaxSize (void);
Object Hierarchy:
ewol::EObject +--> ewol::Widget +--> widget::Gird
Description:
/** * @ingroup ewolWidgetGroup */Detail:
widget::init ()
static void init(ewol::WidgetManager & _widgetManager);
widget::Gird ()
Gird(int32_t _colNumber);
Constructor
widget::~Gird ()
~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 ()
void subWidgetRemoveAll(void);
remove all sub element from the widget.
subWidgetAdd ()
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 ()
void subWidgetRemove(ewol::Widget * _newWidget);
remove definitly a widget from the system and this Gird.
Parameter [input]: _newWidget the element pointer.
subWidgetRemove ()
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 ()
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 ()
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 ()
void systemDraw(const ewol::DrawProperty & _displayProp);
onRegenerateDisplay ()
void onRegenerateDisplay(void);
getWidgetAtPos ()
ewol::Widget * getWidgetAtPos(const vec2 & pos);
onObjectRemove ()
void onObjectRemove(ewol::EObject * _removeObject);
calculateSize ()
void calculateSize(const vec2 & _availlable);
calculateMinMaxSize ()
void calculateMinMaxSize(void);
widget::init ()
static void init(ewol::WidgetManager & _widgetManager);
widget::Gird ()
Gird(int32_t _colNumber);
Constructor
widget::~Gird ()
~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 ()
void subWidgetRemoveAll(void);
remove all sub element from the widget.
subWidgetAdd ()
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 ()
void subWidgetRemove(ewol::Widget * _newWidget);
remove definitly a widget from the system and this Gird.
-
Parameter [input]: _newWidget the element pointer.
subWidgetRemove ()
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 ()
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 ()
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 ()
void systemDraw(const ewol::DrawProperty & _displayProp);
onRegenerateDisplay ()
void onRegenerateDisplay(void);
getWidgetAtPos ()
ewol::Widget * getWidgetAtPos(const vec2 & pos);
onObjectRemove ()
void onObjectRemove(ewol::EObject * _removeObject);
calculateSize ()
void calculateSize(const vec2 & _availlable);
calculateMinMaxSize ()
void calculateMinMaxSize(void);