By: Hugo Camboulive <hugo.camboulive@gmail.com>
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@48087
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
EAPI Eina_Iterator *evas_object_table_iterator_new(const Evas_Object *o) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
EAPI Eina_Accessor *evas_object_table_accessor_new(const Evas_Object *o) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
EAPI Eina_List *evas_object_table_children_get(const Evas_Object *o) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
+ EAPI Evas_Object *evas_object_table_child_get(const Evas_Object *o, unsigned short col, unsigned short row) EINA_ARG_NONNULL(1);
/**
return new_list;
}
+
+/**
+ * Get a child from the table using its coordinates
+ *
+ * @note This does not take into account col/row spanning
+ */
+Evas_Object *
+evas_object_table_child_get(const Evas_Object *o, unsigned short col, unsigned short row)
+{
+ Eina_List *l;
+ Evas_Object_Table_Option *opt;
+
+ EVAS_OBJECT_TABLE_DATA_GET_OR_RETURN_VAL(o, priv, NULL);
+
+ EINA_LIST_FOREACH(priv->children, l, opt)
+ if (opt->col == col && opt->row == row)
+ return opt->obj;
+ return NULL;
+}