Tizen Native API  5.5

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

Functions

Evas_Objectelm_grid_add (Evas_Object *parent)
void elm_grid_pack_set (Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
void elm_grid_pack_get (Evas_Object *subobj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)

Function Documentation

Add a new grid to the parent

Parameters:
parentThe parent object
Returns:
The new object or NULL if it cannot be created
Since :
2.3
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

Parameters:
subobjThe child to query
xPointer to integer to store the virtual x coord
yPointer to integer to store the virtual y coord
wPointer to integer to store the virtual width
hPointer to integer to store the virtual height
Since :
2.3
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

Parameters:
subobjThe child to set packing of
xThe virtual x coord at which to pack it
yThe virtual y coord at which to pack it
wThe virtual width at which to pack it
hThe virtual height at which to pack it
Since :
2.3