Tizen Native API

Functions

void elm_grid_size_set (Elm_Grid *obj, Evas_Coord w, Evas_Coord h)
 Set the virtual size of the grid.
void elm_grid_size_get (const Elm_Grid *obj, Evas_Coord *w, Evas_Coord *h)
 Get the virtual size of the grid.
Eina_Listelm_grid_children_get (const Elm_Grid *obj)
 Get the list of the children for the grid.
void elm_grid_clear (Elm_Grid *obj, Eina_Bool clear)
 Faster way to remove all child objects from a grid object.
void elm_grid_unpack (Elm_Grid *obj, Evas_Object *subobj)
 Unpack a child from a grid object.
void elm_grid_pack (Elm_Grid *obj, Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
 Pack child at given position and size.
Evas_Objectelm_grid_add (Evas_Object *parent)
 Add a new grid to the parent.
void elm_grid_pack_set (Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
 Set packing of an existing child at to position and size.
void elm_grid_pack_get (Evas_Object *subobj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
 Get packing of a child.

grid_inheritance_tree.png

The grid is a grid layout widget that lays out a series of children as a fixed "grid" of widgets using a given percentage of the grid width and height each using the child object.

The Grid uses a "Virtual resolution" that is stretched to fill the grid widgets size itself. The default is 100 x 100, so that means the position and sizes of children will effectively be percentages (0 to 100) of the width or height of the grid widget


Function Documentation

Add a new grid to the parent.

Since :
2.3
Parameters:
[in]parentThe parent object
Returns:
The new object or NULL if it cannot be created
Eina_List* elm_grid_children_get ( const Elm_Grid *  obj)

Get the list of the children for the grid.

Since :
2.3
Remarks:
This is a duplicate of the list kept by the grid internally. It's up to the user to destroy it when it no longer needs it. It's possible to remove objects from the grid when walking this list, but these removals won't be reflected on it.
Parameters:
[in]objThe elm grid object
void elm_grid_clear ( Elm_Grid *  obj,
Eina_Bool  clear 
)

Faster way to remove all child objects from a grid object.

Since :
2.3
Parameters:
[in]objThe elm grid object
[in]clearIf true, it will delete just removed children
void elm_grid_pack ( Elm_Grid *  obj,
Evas_Object subobj,
Evas_Coord  x,
Evas_Coord  y,
Evas_Coord  w,
Evas_Coord  h 
)

Pack child at given position and size.

Since :
2.3
Parameters:
[in]objThe elm grid object
[in]subobjThe child to pack
[in]xThe virtual x coord at which to pack it
[in]yThe virtual y coord at which to pack it
[in]wThe virtual width at which to pack it
[in]hThe virtual height at which to pack it
void elm_grid_pack_get ( Evas_Object subobj,
Evas_Coord x,
Evas_Coord y,
Evas_Coord w,
Evas_Coord h 
)

Get packing of a child.

Since :
2.3
Parameters:
[in]subobjThe child to query
[out]xPointer to integer to store the virtual x coord
[out]yPointer to integer to store the virtual y coord
[out]wPointer to integer to store the virtual width
[out]hPointer to integer to store the virtual height
void elm_grid_pack_set ( Evas_Object subobj,
Evas_Coord  x,
Evas_Coord  y,
Evas_Coord  w,
Evas_Coord  h 
)

Set packing of an existing child at to position and size.

Since :
2.3
Parameters:
[in]subobjThe child to set packing of
[in]xThe virtual x coord at which to pack it
[in]yThe virtual y coord at which to pack it
[in]wThe virtual width at which to pack it
[in]hThe virtual height at which to pack it
void elm_grid_size_get ( const Elm_Grid *  obj,
Evas_Coord w,
Evas_Coord h 
)

Get the virtual size of the grid.

Since :
2.3
Parameters:
[in]objThe elm grid object
[out]wThe virtual width of the grid
[out]hThe virtual height of the grid
void elm_grid_size_set ( Elm_Grid *  obj,
Evas_Coord  w,
Evas_Coord  h 
)

Set the virtual size of the grid.

Since :
2.3
Parameters:
[in]objThe elm grid object
[in]wThe virtual width of the grid
[in]hThe virtual height of the grid
void elm_grid_unpack ( Elm_Grid *  obj,
Evas_Object subobj 
)

Unpack a child from a grid object.

Since :
2.3
Parameters:
[in]objThe elm grid object
[in]subobjThe child to unpack