elementary/general - added new API elm_object_item_object_get

It returns the widget object handle which contains the given item. 



SVN revision: 63861
This commit is contained in:
ChunEon Park 2011-10-06 01:13:51 +00:00
parent aeded1ffdb
commit bc501454bb
2 changed files with 18 additions and 0 deletions

View File

@ -1021,6 +1021,18 @@ extern "C" {
#define elm_object_content_unset(obj) elm_object_content_part_unset((obj), NULL)
/**
* Get the wiget object's handle which contains a given item
*
* @param item The Elementary object item
* @return The widget object
*
* @note This returns the widget object itself that an item belongs to.
*
* @ingroup General
*/
EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
/**
* Set a content of an object item
*

View File

@ -2052,6 +2052,12 @@ elm_longpress_timeout_get(void)
return _elm_config->longpress_timeout;
}
EAPI Evas_Object *
elm_object_item_object_get(const Elm_Object_Item *it)
{
return ((Elm_Widget_Item *) it)->widget;
}
EAPI void
elm_object_item_content_part_set(Elm_Object_Item *it,
const char *part,