Data Structures | Public Member Functions | Static Public Member Functions
eo_cxx::evas::grid Struct Reference

Data Structures

struct  address_const_of
 
struct  address_of
 

Public Member Functions

Eina_Accessoraccessor_new () const
 Get an accessor to get random access to the list of children for the grid. More...
 
void clear (bool clear_) const
 Faster way to remove all child objects from a grid object. More...
 
Eina_Iteratoriterator_new () const
 Get an iterator to walk the list of children for the grid. More...
 
::efl::eina::optional< ::evas::objectadd_to () const
 Create a grid that is child of a given element parent. More...
 
bool unpack (::evas::object child_) const
 Remove child from grid. More...
 
bool pack_get (::efl::eina::optional< ::evas::object > child_, int *x_, int *y_, int *w_, int *h_) const
 Get the pack options for a grid child. More...
 
bool pack (::evas::object child_, int x_, int y_, int w_, int h_) const
 Add a new child to a grid object. More...
 
bool mirrored_get () const
 Gets the mirrored mode of the grid. More...
 
void mirrored_set (bool mirrored_) const
 Sets the mirrored mode of the grid. More...
 
void size_get (int *w_, int *h_) const
 Get the current virtual resolution. More...
 
void size_set (int w_, int h_) const
 Set the virtual resolution for the grid. More...
 
::efl::eina::optional< ::efl::eina::list< ::evas::object > > children_get () const
 Get the list of children for the grid. More...
 
 operator::evas::grid () const
 
 operator::evas::grid & ()
 
 operator::evas::grid const & () const
 

Static Public Member Functions

static Eo_Class const * _eo_class ()
 

Member Function Documentation

Eina_Accessor * eo_cxx::evas::grid::accessor_new ( ) const
inline

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
void eo_cxx::evas::grid::clear ( bool  clear_) const
inline

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

Since
1.1
Parameters
clearif true, it will delete just removed children.
Eina_Iterator * eo_cxx::evas::grid::iterator_new ( ) const
inline

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
efl::eina::optional<::evas::object > eo_cxx::evas::grid::add_to ( ) const
inline

Create a grid that is child of a given element parent.

See also
evas_object_grid_add()
Since
1.1
bool eo_cxx::evas::grid::unpack ( ::evas::object  child_) const
inline

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.
Returns
1 on success, 0 on failure.
Since
1.1
Parameters
child
bool eo_cxx::evas::grid::pack_get ( ::efl::eina::optional< ::evas::object child_,
int *  x_,
int *  y_,
int *  w_,
int *  h_ 
) const
inline

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

Returns
1 on success, 0 on failure.
Since
1.1
Parameters
childThe grid child to query for coordinates
[out]xThe pointer to where the x coordinate will be returned
[out]yThe pointer to where the y coordinate will be returned
[out]wThe pointer to where the width will be returned
[out]hThe pointer to where the height will be returned
bool eo_cxx::evas::grid::pack ( ::evas::object  child_,
int  x_,
int  y_,
int  w_,
int  h_ 
) const
inline

Add a new child to a grid object.

Returns
1 on success, 0 on failure.
Since
1.1
Parameters
childThe child object to add.
xThe virtual x coordinate of the child
yThe virtual y coordinate of the child
wThe virtual width of the child
hThe virtual height of the child
bool eo_cxx::evas::grid::mirrored_get ( ) const
inline

Gets the mirrored mode of the grid.

Returns
EINA_TRUE if it's a mirrored grid, EINA_FALSE otherwise.
See also
evas_object_grid_mirrored_set()
Since
1.1
Parameters
mirroredthe mirrored mode to set
void eo_cxx::evas::grid::mirrored_set ( bool  mirrored_) const
inline

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
Parameters
mirroredthe mirrored mode to set
void eo_cxx::evas::grid::size_get ( int *  w_,
int *  h_ 
) const
inline

Get the current virtual resolution.

See also
evas_object_grid_size_set()
Since
1.1
Parameters
wThe virtual horizontal size (resolution) in integer units
hThe virtual vertical size (resolution) in integer units
void eo_cxx::evas::grid::size_set ( int  w_,
int  h_ 
) const
inline

Set the virtual resolution for the grid.

Since
1.1
Parameters
wThe virtual horizontal size (resolution) in integer units
hThe virtual vertical size (resolution) in integer units
efl::eina::optional<::efl::eina::list<::evas::object > > eo_cxx::evas::grid::children_get ( ) const
inline

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