+elm_genlist_item_subitems_get()

This commit is contained in:
zmike 2014-02-08 16:02:27 -05:00
parent 296ead7e2d
commit 7899534662
2 changed files with 22 additions and 0 deletions

View File

@ -6136,6 +6136,15 @@ elm_genlist_item_subitems_count(const Elm_Object_Item *it)
return eina_list_count(item->item->items);
}
EAPI const Eina_List *
elm_genlist_item_subitems_get(const Elm_Object_Item *it)
{
Elm_Gen_Item *item = (Elm_Gen_Item *)it;
ELM_GENLIST_ITEM_CHECK_OR_RETURN(it, NULL);
return item->item->items;
}
EAPI void
elm_genlist_item_subitems_clear(Elm_Object_Item *item)
{

View File

@ -570,6 +570,19 @@ EAPI Elm_Object_Item *elm_genlist_item_parent_get(const Elm_Object_I
* @ingroup Genlist
*/
EAPI unsigned int elm_genlist_item_subitems_count(const Elm_Object_Item *it);
/**
* Get the list of subitems of a given item
*
* @param it The item
* @return The list of subitems, @c NULL on error
*
* This returns the list of subitems that an item possesses. It cannot be changed.
*
* @since 1.9
* @ingroup Genlist
*/
EAPI const Eina_List *elm_genlist_item_subitems_get(const Elm_Object_Item *it);
/**
* Remove all sub-items (children) of the given item
*