forked from enlightenment/efl
97 lines
2.3 KiB
C
97 lines
2.3 KiB
C
#ifndef _ELM_GRID_EO_H_
|
|
#define _ELM_GRID_EO_H_
|
|
|
|
#ifndef _ELM_GRID_EO_CLASS_TYPE
|
|
#define _ELM_GRID_EO_CLASS_TYPE
|
|
|
|
typedef Eo Elm_Grid;
|
|
|
|
#endif
|
|
|
|
#ifndef _ELM_GRID_EO_TYPES
|
|
#define _ELM_GRID_EO_TYPES
|
|
|
|
|
|
#endif
|
|
/** Elementary grid class
|
|
*
|
|
* @ingroup Elm_Grid
|
|
*/
|
|
#define ELM_GRID_CLASS elm_grid_class_get()
|
|
|
|
EWAPI const Efl_Class *elm_grid_class_get(void);
|
|
|
|
/**
|
|
* @brief Set the virtual size of the grid
|
|
*
|
|
* @param[in] obj The object.
|
|
* @param[in] w The virtual width of the grid
|
|
* @param[in] h The virtual height of the grid
|
|
*
|
|
* @ingroup Elm_Grid
|
|
*/
|
|
EOAPI void elm_obj_grid_size_set(Eo *obj, int w, int h);
|
|
|
|
/**
|
|
* @brief Get the virtual size of the grid
|
|
*
|
|
* @param[in] obj The object.
|
|
* @param[out] w The virtual width of the grid
|
|
* @param[out] h The virtual height of the grid
|
|
*
|
|
* @ingroup Elm_Grid
|
|
*/
|
|
EOAPI void elm_obj_grid_size_get(const Eo *obj, int *w, int *h);
|
|
|
|
/**
|
|
* @brief Get the list of the 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.
|
|
*
|
|
* @param[in] obj The object.
|
|
*
|
|
* @return List of children
|
|
*
|
|
* @ingroup Elm_Grid
|
|
*/
|
|
EOAPI Eina_List *elm_obj_grid_children_get(const Eo *obj) EINA_WARN_UNUSED_RESULT;
|
|
|
|
/**
|
|
* @brief Faster way to remove all child objects from a grid object.
|
|
*
|
|
* @param[in] obj The object.
|
|
* @param[in] clear If @c true, it will delete just removed children
|
|
*
|
|
* @ingroup Elm_Grid
|
|
*/
|
|
EOAPI void elm_obj_grid_clear(Eo *obj, Eina_Bool clear);
|
|
|
|
/**
|
|
* @brief Unpack a child from a grid object
|
|
*
|
|
* @param[in] obj The object.
|
|
* @param[in] subobj The child to unpack
|
|
*
|
|
* @ingroup Elm_Grid
|
|
*/
|
|
EOAPI void elm_obj_grid_unpack(Eo *obj, Efl_Canvas_Object *subobj);
|
|
|
|
/**
|
|
* @brief Pack child at given position and size
|
|
*
|
|
* @param[in] obj The object.
|
|
* @param[in] subobj The child to pack.
|
|
* @param[in] x The virtual x coord at which to pack it.
|
|
* @param[in] y The virtual y coord at which to pack it.
|
|
* @param[in] w The virtual width at which to pack it.
|
|
* @param[in] h The virtual height at which to pack it.
|
|
*
|
|
* @ingroup Elm_Grid
|
|
*/
|
|
EOAPI void elm_obj_grid_pack(Eo *obj, Efl_Canvas_Object *subobj, int x, int y, int w, int h);
|
|
|
|
#endif
|