Widget_Data *wd;
ELM_WIDGET_STANDARD_SETUP(wd, Widget_Data, parent, e, obj, NULL);
-
ELM_SET_WIDTYPE(widtype, "grid");
- wd->obj = obj;
elm_widget_type_set(obj, "grid");
elm_widget_sub_object_add(parent, obj);
elm_widget_data_set(obj, wd);
if (!wd) return;
evas_object_grid_pack_get(wd->grd, subobj, x, y, w, h);
}
+
+EAPI Eina_List *
+elm_grid_children_get(const Evas_Object *obj)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype) NULL;
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return NULL;
+ return evas_object_grid_children_get(wd->grd);
+}
EAPI void elm_grid_pack_set(Evas_Object *subobj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
/**
- * get packing of a child
+ * Get packing of a child
*
* @param subobj The child to query
* @param x Pointer to integer to store the virtual x coord
EAPI void elm_grid_pack_get(Evas_Object *subobj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
/**
+ * Get the list of the children for the grid.
+ *
+ * @param obj The grid object
+ *
+ * @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.
+ *
+ * @ingroup Grid
+ */
+EAPI Eina_List *elm_grid_children_get(const Evas_Object *obj);
+
+/**
* @}
*/