elm_gengrid_item_update()
also missing are elm_gengrid_item_prepend(), elm_gengrid_item_insert_before() and elm_gengrid_item_insert_after()! I can't do them right now, so any help is appreciated. SVN revision: 53236
This commit is contained in:
parent
6a10964414
commit
3597572c8c
|
@ -673,6 +673,9 @@ extern "C" {
|
|||
EAPI void elm_gengrid_align_set(Evas_Object *obj, double align_x, double align_y);
|
||||
EAPI void elm_gengrid_align_get(const Evas_Object *obj, double *align_x, double *align_y);
|
||||
EAPI void elm_gengrid_item_del(Elm_Gengrid_Item *item);
|
||||
EAPI void elm_gengrid_item_update(Elm_Gengrid_Item *item);
|
||||
|
||||
|
||||
EAPI void elm_gengrid_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
|
||||
EAPI Eina_Bool elm_gengrid_always_select_mode_get(const Evas_Object *obj);
|
||||
EAPI void elm_gengrid_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select);
|
||||
|
|
|
@ -1626,6 +1626,28 @@ elm_gengrid_item_object_get(const Elm_Gengrid_Item *item)
|
|||
return item->base.view;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the contents of an item
|
||||
*
|
||||
* This updates an item by calling all the item class functions again to get
|
||||
* the icons, labels and states. Use this when the original item data has
|
||||
* changed and the changes are desired to be reflected.
|
||||
*
|
||||
* @param it The item
|
||||
*
|
||||
* @ingroup Gengrid
|
||||
*/
|
||||
EAPI void
|
||||
elm_gengrid_item_update(Elm_Gengrid_Item *item)
|
||||
{
|
||||
if (!item) return;
|
||||
if (!item->realized) return;
|
||||
if (item->want_unrealize) return;
|
||||
_item_unrealize(item);
|
||||
_item_realize(item);
|
||||
_item_place(item, item->x, item->y);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the data associated to a item
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue