elementary/gengrid - elm_gengrid_item_item_class_set -> elm_gengrid_item_item_class_update

SVN revision: 68542
This commit is contained in:
ChunEon Park 2012-02-29 09:01:24 +00:00
parent 93981f37c3
commit 67d14d50ed
3 changed files with 35 additions and 5 deletions

View File

@ -3950,6 +3950,22 @@ EINA_DEPRECATED EAPI void elm_gengrid_item_del(Elm_Obje
*/
EINA_DEPRECATED EAPI const Evas_Object *elm_gengrid_item_object_get(const Elm_Object_Item *it);
/**
* Update the item class of a gengrid item.
*
* This sets another class of the item, changing the way that it is
* displayed. After changing the item class, elm_gengrid_item_update() is
* called on the item @p it.
*
* @param it The gengrid item
* @param gic The gengrid item class describing the function pointers and the item style.
*
* @deprecated Use elm_gengrid_item_item_class_update instead
* @ingroup Gengrid
*/
EINA_DEPRECATED EAPI void elm_gengrid_item_item_class_set(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic);
/**
* Append a filter function for text inserted in the entry
*

View File

@ -2321,9 +2321,16 @@ elm_gengrid_item_item_class_get(const Elm_Object_Item *it)
return (Elm_Gengrid_Item_Class *) elm_genlist_item_item_class_get(it);
}
EAPI void
EINA_DEPRECATED EAPI void
elm_gengrid_item_item_class_set(Elm_Object_Item *it,
const Elm_Gengrid_Item_Class *itc)
{
elm_gengrid_item_item_class_update(it, itc);
}
EAPI void
elm_gengrid_item_item_class_update(Elm_Object_Item *it,
const Elm_Gengrid_Item_Class *itc)
{
ELM_OBJ_ITEM_CHECK_OR_RETURN(it);
EINA_SAFETY_ON_NULL_RETURN(itc);

View File

@ -1025,17 +1025,18 @@ EAPI void elm_gengrid_item_update(Elm_Object_Item *it);
EAPI const Elm_Gengrid_Item_Class *elm_gengrid_item_item_class_get(const Elm_Object_Item *it);
/**
* Get the Gengrid Item class for the given Gengrid Item.
* Update the item class of a gengrid item.
*
* This sets the Gengrid_Item_Class for the given item. It can be used to examine
* the function pointers and item_style.
* This sets another class of the item, changing the way that it is
* displayed. After changing the item class, elm_gengrid_item_update() is
* called on the item @p it.
*
* @param it The gengrid item
* @param gic The gengrid item class describing the function pointers and the item style.
*
* @ingroup Gengrid
*/
EAPI void elm_gengrid_item_item_class_set(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic);
EAPI void elm_gengrid_item_item_class_update(Elm_Object_Item *it, const Elm_Gengrid_Item_Class *gic);
/**
* Get a given gengrid item's position, relative to the whole
@ -1166,6 +1167,9 @@ EAPI void elm_gengrid_item_bring_in(Elm_Object_Item *it
* have only one tooltip at a time, so any previous tooltip data
* will get removed.
*
* In order to set a content or something else as a tooltip, look at
* elm_gengrid_item_tooltip_content_cb_set().
*
* @ingroup Gengrid
*/
EAPI void elm_gengrid_item_tooltip_text_set(Elm_Object_Item *it, const char *text);
@ -1191,6 +1195,9 @@ EAPI void elm_gengrid_item_tooltip_text_set(Elm_Object_
* return a valid Evas object, which will be fully managed by the
* tooltip system, getting deleted when the tooltip is gone.
*
* In order to set just a text as a tooltip, look at
* elm_gengrid_item_tooltip_text_set().
*
* @ingroup Gengrid
*/
EAPI void elm_gengrid_item_tooltip_content_cb_set(Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);