2014-06-27 15:14:09 -07:00
|
|
|
class Evas.Grid (Evas.Smart_Clipped)
|
2014-03-10 08:02:10 -07:00
|
|
|
{
|
|
|
|
legacy_prefix: evas_object_grid;
|
|
|
|
eo_prefix: evas_obj_grid;
|
2015-05-07 08:36:45 -07:00
|
|
|
methods {
|
|
|
|
@property mirrored {
|
2014-03-10 08:02:10 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Sets the mirrored mode of the grid. In mirrored mode the grid items go
|
|
|
|
from right to left instead of left to right. That is, 0,0 is top right, not
|
|
|
|
to left.
|
|
|
|
|
|
|
|
@since 1.1 */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Gets the mirrored mode of the grid.
|
|
|
|
|
|
|
|
@return @c EINA_TRUE if it's a mirrored grid, @c EINA_FALSE otherwise.
|
|
|
|
@see evas_object_grid_mirrored_set()
|
|
|
|
@since 1.1 */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:13:08 -07:00
|
|
|
mirrored: bool; /*@ the mirrored mode to set */
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property size {
|
2014-03-10 08:02:10 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the virtual resolution for the grid
|
|
|
|
|
|
|
|
@since 1.1 */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the current virtual resolution
|
|
|
|
|
|
|
|
@see evas_object_grid_size_set()
|
|
|
|
@since 1.1 */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:13:08 -07:00
|
|
|
w: int; /*@ The virtual horizontal size (resolution) in integer units */
|
|
|
|
h: int; /*@ The virtual vertical size (resolution) in integer units */
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property children {
|
2014-03-10 08:02:10 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the list of children for the grid.
|
|
|
|
|
|
|
|
@note 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.
|
|
|
|
@since 1.1 */
|
2014-09-09 06:21:39 -07:00
|
|
|
return: free(own(list<Evas.Object *> *), eina_list_free) @warn_unused;
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:24 -07:00
|
|
|
accessor_new @const {
|
2014-03-10 08:02:10 -07:00
|
|
|
/*@
|
|
|
|
Get an accessor to get random access to the list of children for the grid.
|
|
|
|
|
|
|
|
@note Do not remove or delete objects while walking the list.
|
|
|
|
@since 1.1 */
|
2014-09-09 06:21:39 -07:00
|
|
|
return: free(own(accessor<Evas.Object *> *), eina_accessor_free)
|
|
|
|
@warn_unused;
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
clear {
|
|
|
|
/*@
|
|
|
|
Faster way to remove all child objects from a grid object.
|
|
|
|
|
|
|
|
@since 1.1 */
|
|
|
|
|
|
|
|
params {
|
2015-05-18 08:13:08 -07:00
|
|
|
@in clear: bool; /*@ if true, it will delete just removed children. */
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:24 -07:00
|
|
|
iterator_new @const {
|
2014-03-10 08:02:10 -07:00
|
|
|
/*@
|
|
|
|
Get an iterator to walk the list of children for the grid.
|
|
|
|
|
|
|
|
@note Do not remove or delete objects while walking the list.
|
|
|
|
@since 1.1 */
|
2014-09-09 06:21:39 -07:00
|
|
|
return: free(own(iterator<Evas.Object *> *), eina_iterator_free)
|
|
|
|
@warn_unused;
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
add_to {
|
|
|
|
/*@
|
|
|
|
Create a grid that is child of a given element @a parent.
|
|
|
|
|
|
|
|
@see evas_object_grid_add()
|
|
|
|
@since 1.1 */
|
|
|
|
|
2015-06-01 03:17:22 -07:00
|
|
|
return: Evas.Object * @warn_unused;
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
unpack {
|
|
|
|
/*@
|
|
|
|
Remove child from grid.
|
|
|
|
|
|
|
|
@note removing a child will immediately call a walk over children in order
|
|
|
|
to recalculate numbers of columns and rows. If you plan to remove
|
|
|
|
all children, use evas_object_grid_clear() instead.
|
|
|
|
|
|
|
|
@return 1 on success, 0 on failure.
|
|
|
|
@since 1.1 */
|
|
|
|
|
2014-08-07 08:58:45 -07:00
|
|
|
return: bool;
|
2014-03-10 08:02:10 -07:00
|
|
|
params {
|
2015-06-01 03:17:22 -07:00
|
|
|
@in child: Evas.Object * @nonull;
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
}
|
2014-07-22 09:13:24 -07:00
|
|
|
pack_get @const {
|
2014-03-10 08:02:10 -07:00
|
|
|
/*@
|
|
|
|
Get the pack options for a grid child
|
|
|
|
|
|
|
|
Get the pack x, y, width and height in virtual coordinates set by
|
|
|
|
evas_object_grid_pack()
|
|
|
|
@return 1 on success, 0 on failure.
|
|
|
|
@since 1.1 */
|
2014-08-07 08:58:45 -07:00
|
|
|
return: bool;
|
2014-03-10 08:02:10 -07:00
|
|
|
params {
|
2015-06-01 03:17:22 -07:00
|
|
|
@in child: Evas.Object *; /*@ The grid child to query for coordinates */
|
2015-05-18 08:13:08 -07:00
|
|
|
@out x: int; /*@ The pointer to where the x coordinate will be returned */
|
|
|
|
@out y: int; /*@ The pointer to where the y coordinate will be returned */
|
|
|
|
@out w: int; /*@ The pointer to where the width will be returned */
|
|
|
|
@out h: int; /*@ The pointer to where the height will be returned */
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
pack {
|
|
|
|
/*@
|
|
|
|
Add a new child to a grid object.
|
|
|
|
|
|
|
|
@return 1 on success, 0 on failure.
|
|
|
|
@since 1.1 */
|
|
|
|
|
2014-08-07 08:58:45 -07:00
|
|
|
return: bool;
|
2014-03-10 08:02:10 -07:00
|
|
|
params {
|
2015-06-01 03:17:22 -07:00
|
|
|
@in child: Evas.Object * @nonull; /*@ The child object to add. */
|
2015-05-18 08:13:08 -07:00
|
|
|
@in x: int; /*@ The virtual x coordinate of the child */
|
|
|
|
@in y: int; /*@ The virtual y coordinate of the child */
|
|
|
|
@in w: int; /*@ The virtual width of the child */
|
|
|
|
@in h: int; /*@ The virtual height of the child */
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 03:14:59 -07:00
|
|
|
Eo.Base.constructor;
|
2014-03-10 08:02:10 -07:00
|
|
|
}
|
|
|
|
}
|