Dear all.
Sometimes it is needed to get genlist item's type.
It will help to get item's type.
+EAPI Elm_Genlist_Item_Flags elm_genlist_item_flags_get(const
Elm_Object_Item *it);
Thank you.
Index: elementary/src/lib/elm_genlist.c
===================================================================
--- elementary/src/lib/elm_genlist.c (리비전 67877)
+++ elementary/src/lib/elm_genlist.c (작업 사본)
@@ -5323,6 +5323,14 @@
return wd->reorder_mode;
}
+EAPI Elm_Genlist_Item_Flags
+elm_genlist_item_flags_get(const Elm_Object_Item *it)
+{
+ ELM_OBJ_ITEM_CHECK_OR_RETURN(it, ELM_GENLIST_ITEM_MAX);
+ Elm_Gen_Item *_it = (Elm_Gen_Item *) it;
+ return _it->item->flags;
+}
+
/* for gengrid as of now */
void
_elm_genlist_page_relative_set(Evas_Object *obj,
Index: elementary/src/lib/elm_genlist.h
===================================================================
--- elementary/src/lib/elm_genlist.h (리비전 67877)
+++ elementary/src/lib/elm_genlist.h (작업 사본)
@@ -351,7 +351,9 @@
{
ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items
*/
- ELM_GENLIST_ITEM_GROUP = (1 << 1) /**< index of a group of items */
+ ELM_GENLIST_ITEM_GROUP = (1 << 1), /**< index of a group of items */
+
+ ELM_GENLIST_ITEM_MAX = (1 << 2)
} Elm_Genlist_Item_Flags;
typedef enum
@@ -1832,5 +1834,18 @@
EAPI Eina_Bool elm_genlist_reorder_mode_get(const
Evas_Object *obj);
/**
+ * Get the Item's Flags
+ *
+ * @param item The genlist item
+ * @return The item flags.
+ *
+ * This function returns the item's type. Normally the item's type.
+ * If it failed, return value is ELM_GENLIST_ITEM_MAX
+ *
+ * @ingroup Genlist
+ */
+EAPI Elm_Genlist_Item_Flags elm_genlist_item_flags_get(const
Elm_Object_Item *it);
+
+/**
* @}
*/
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel