Functions
Genlist (Generic list)

Functions

EINA_DEPRECATED void elm_genlist_bounce_set (Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce)
 Enable/disable horizontal and vertical bouncing effect. More...
 
EINA_DEPRECATED void elm_genlist_bounce_get (const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce)
 Get whether the horizontal and vertical bouncing effect is enabled. More...
 
EINA_DEPRECATED void elm_genlist_scroller_policy_set (Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v)
 Set the scrollbar policy. More...
 
EINA_DEPRECATED void elm_genlist_scroller_policy_get (const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v)
 Get the scrollbar policy. More...
 
EOAPI void elm_obj_genlist_homogeneous_set (Eina_Bool homogeneous)
 Enable/disable homogeneous mode. More...
 
EOAPI Eina_Bool elm_obj_genlist_homogeneous_get (void)
 Get whether the homogeneous mode is enabled. More...
 
EOAPI void elm_obj_genlist_select_mode_set (Elm_Object_Select_Mode mode)
 Set the genlist select mode. More...
 
EOAPI Elm_Object_Select_Mode elm_obj_genlist_select_mode_get (void)
 Get the genlist select mode. More...
 
EOAPI void elm_obj_genlist_focus_on_selection_set (Eina_Bool enabled)
 Set focus upon items selection mode. More...
 
EOAPI Eina_Bool elm_obj_genlist_focus_on_selection_get (void)
 Get whether focus upon item's selection mode is enabled. More...
 
EOAPI void elm_obj_genlist_longpress_timeout_set (double timeout)
 Set the timeout in seconds for the longpress event. More...
 
EOAPI double elm_obj_genlist_longpress_timeout_get (void)
 Get the timeout in seconds for the longpress event. More...
 
EOAPI void elm_obj_genlist_multi_select_set (Eina_Bool multi)
 Enable or disable multi-selection in the genlist. More...
 
EOAPI Eina_Bool elm_obj_genlist_multi_select_get (void)
 Get if multi-selection in genlist is enabled or disabled. More...
 
EOAPI void elm_obj_genlist_reorder_mode_set (Eina_Bool reorder_mode)
 Set reorder mode. More...
 
EOAPI Eina_Bool elm_obj_genlist_reorder_mode_get (void)
 Get the reorder mode. More...
 
EOAPI void elm_obj_genlist_decorate_mode_set (Eina_Bool decorated)
 Set Genlist decorate mode. More...
 
EOAPI Eina_Bool elm_obj_genlist_decorate_mode_get (void)
 Get Genlist decorate mode. More...
 
EOAPI void elm_obj_genlist_multi_select_mode_set (Elm_Object_Multi_Select_Mode mode)
 Set the genlist multi select mode. More...
 
EOAPI Elm_Object_Multi_Select_Mode elm_obj_genlist_multi_select_mode_get (void)
 Get the genlist multi select mode. More...
 
EOAPI void elm_obj_genlist_block_count_set (int count)
 Set the maximum number of items within an item block. More...
 
EOAPI int elm_obj_genlist_block_count_get (void)
 Get the maximum number of items within an item block. More...
 
EOAPI void elm_obj_genlist_tree_effect_enabled_set (Eina_Bool enabled)
 Set Genlist tree effect. More...
 
EOAPI Eina_Bool elm_obj_genlist_tree_effect_enabled_get (void)
 Get Genlist tree effect. More...
 
EOAPI void elm_obj_genlist_highlight_mode_set (Eina_Bool highlight)
 Set whether the genlist items should be highlighted on item selection. More...
 
EOAPI Eina_Bool elm_obj_genlist_highlight_mode_get (void)
 Get whether the genlist items' should be highlighted when item selected. More...
 
EOAPI void elm_obj_genlist_mode_set (Elm_List_Mode mode)
 This sets the horizontal stretching mode. More...
 
EOAPI Elm_List_Mode elm_obj_genlist_mode_get (void)
 Get the horizontal stretching mode. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_decorated_item_get (void)
 Get active genlist mode item. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_selected_item_get (void)
 Get the selected item in the genlist. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_first_item_get (void)
 Get the first item in the genlist. More...
 
EOAPI Eina_List * elm_obj_genlist_realized_items_get (void)
 Get a list of realized items in genlist. More...
 
EOAPI const Eina_List * elm_obj_genlist_selected_items_get (void)
 Get a list of selected items in the genlist. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_last_item_get (void)
 Get the last item in the genlist. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_item_insert_before (const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *before_it, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data)
 Insert an item before another in a genlist widget. More...
 
EOAPI void elm_obj_genlist_realized_items_update (void)
 Update the contents of all realized items. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_item_insert_after (const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *after_it, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data)
 Insert an item after another in a genlist widget. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_at_xy_item_get (Evas_Coord x, Evas_Coord y, int *posret)
 Get the item that is at the x, y canvas coords. More...
 
EOAPI unsigned int elm_obj_genlist_items_count (void)
 Return how many items are currently in a list. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_item_prepend (const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data)
 Prepend a new item in a given genlist widget. More...
 
EOAPI void elm_obj_genlist_clear (void)
 Remove all items from a given genlist widget. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_item_append (const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data)
 Append a new item in a given genlist widget. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_item_sorted_insert (const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data)
 Insert a new item into the sorted genlist object. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_search_by_text_item_get (Elm_Object_Item *item_to_search_from, const char *part_name, const char *pattern, Elm_Glob_Match_Flags flags)
 Get genlist item by given string. More...
 
Elm_Object_Itemelm_genlist::item_insert_before (const Elm_Genlist_Item_Class *itc_, const void *data_, Elm_Object_Item *parent_, Elm_Object_Item *before_it_, Elm_Genlist_Item_Type type_, Evas_Smart_Cb func_, const void *func_data_) const
 Insert an item before another in a genlist widget. More...
 
void elm_genlist::realized_items_update () const
 Update the contents of all realized items. More...
 
Elm_Object_Itemelm_genlist::item_insert_after (const Elm_Genlist_Item_Class *itc_, const void *data_, Elm_Object_Item *parent_, Elm_Object_Item *after_it_, Elm_Genlist_Item_Type type_, Evas_Smart_Cb func_, const void *func_data_) const
 Insert an item after another in a genlist widget. More...
 
Elm_Object_Itemelm_genlist::at_xy_item_get (Evas_Coord x_, Evas_Coord y_, int *posret_) const
 Get the item that is at the x, y canvas coords. More...
 
unsigned int elm_genlist::items_count () const
 Return how many items are currently in a list. More...
 
Elm_Object_Itemelm_genlist::item_prepend (const Elm_Genlist_Item_Class *itc_, const void *data_, Elm_Object_Item *parent_, Elm_Genlist_Item_Type type_, Evas_Smart_Cb func_, const void *func_data_) const
 Prepend a new item in a given genlist widget. More...
 
void elm_genlist::clear () const
 Remove all items from a given genlist widget. More...
 
Elm_Object_Itemelm_genlist::item_append (const Elm_Genlist_Item_Class *itc_, const void *data_, Elm_Object_Item *parent_, Elm_Genlist_Item_Type type_, Evas_Smart_Cb func_, const void *func_data_) const
 Append a new item in a given genlist widget. More...
 
Elm_Object_Itemelm_genlist::item_sorted_insert (const Elm_Genlist_Item_Class *itc_, const void *data_, Elm_Object_Item *parent_, Elm_Genlist_Item_Type type_, Eina_Compare_Cb comp_, Evas_Smart_Cb func_, const void *func_data_) const
 Insert a new item into the sorted genlist object. More...
 
Elm_Object_Itemelm_genlist::search_by_text_item_get (Elm_Object_Item *item_to_search_from_, std::string part_name_, std::string pattern_, Elm_Glob_Match_Flags flags_) const
 Get genlist item by given string. More...
 
bool elm_genlist::homogeneous_get () const
 Get whether the homogeneous mode is enabled. More...
 
void elm_genlist::homogeneous_set (bool homogeneous_) const
 Get whether the homogeneous mode is enabled. More...
 
Elm_Object_Select_Mode elm_genlist::select_mode_get () const
 Get the genlist select mode. More...
 
void elm_genlist::select_mode_set (Elm_Object_Select_Mode mode_) const
 Get the genlist select mode. More...
 
bool elm_genlist::focus_on_selection_get () const
 Get whether focus upon item's selection mode is enabled. More...
 
void elm_genlist::focus_on_selection_set (bool enabled_) const
 Get whether focus upon item's selection mode is enabled. More...
 
double elm_genlist::longpress_timeout_get () const
 Get the timeout in seconds for the longpress event. More...
 
void elm_genlist::longpress_timeout_set (double timeout_) const
 Get the timeout in seconds for the longpress event. More...
 
bool elm_genlist::multi_select_get () const
 Get if multi-selection in genlist is enabled or disabled. More...
 
void elm_genlist::multi_select_set (bool multi_) const
 Get if multi-selection in genlist is enabled or disabled. More...
 
bool elm_genlist::reorder_mode_get () const
 Get the reorder mode. More...
 
void elm_genlist::reorder_mode_set (bool reorder_mode_) const
 Get the reorder mode. More...
 
bool elm_genlist::decorate_mode_get () const
 Get Genlist decorate mode. More...
 
void elm_genlist::decorate_mode_set (bool decorated_) const
 Get Genlist decorate mode. More...
 
Elm_Object_Multi_Select_Mode elm_genlist::multi_select_mode_get () const
 Get the genlist multi select mode. More...
 
void elm_genlist::multi_select_mode_set (Elm_Object_Multi_Select_Mode mode_) const
 Get the genlist multi select mode. More...
 
int elm_genlist::block_count_get () const
 Get the maximum number of items within an item block. More...
 
void elm_genlist::block_count_set (int count_) const
 Get the maximum number of items within an item block. More...
 
bool elm_genlist::tree_effect_enabled_get () const
 Get Genlist tree effect. More...
 
void elm_genlist::tree_effect_enabled_set (bool enabled_) const
 Get Genlist tree effect. More...
 
bool elm_genlist::highlight_mode_get () const
 Get whether the genlist items' should be highlighted when item selected. More...
 
void elm_genlist::highlight_mode_set (bool highlight_) const
 Get whether the genlist items' should be highlighted when item selected. More...
 
Elm_List_Mode elm_genlist::mode_get () const
 Get the horizontal stretching mode. More...
 
void elm_genlist::mode_set (Elm_List_Mode mode_) const
 Get the horizontal stretching mode. More...
 
Elm_Object_Itemelm_genlist::decorated_item_get () const
 Get active genlist mode item. More...
 
Elm_Object_Itemelm_genlist::selected_item_get () const
 Get the selected item in the genlist. More...
 
Elm_Object_Itemelm_genlist::first_item_get () const
 Get the first item in the genlist. More...
 
Eina_List * elm_genlist::realized_items_get () const
 Get a list of realized items in genlist. More...
 
const Eina_List * elm_genlist::selected_items_get () const
 Get a list of selected items in the genlist. More...
 
Elm_Object_Itemelm_genlist::last_item_get () const
 Get the last item in the genlist. More...
 
void elm_genlist_homogeneous_set (Elm_Genlist *obj, Eina_Bool homogeneous)
 Enable/disable homogeneous mode. More...
 
Eina_Bool elm_genlist_homogeneous_get (const Elm_Genlist *obj)
 Get whether the homogeneous mode is enabled. More...
 
void elm_genlist_select_mode_set (Elm_Genlist *obj, Elm_Object_Select_Mode mode)
 Set the genlist select mode. More...
 
Elm_Object_Select_Mode elm_genlist_select_mode_get (const Elm_Genlist *obj)
 Get the genlist select mode. More...
 
void elm_genlist_focus_on_selection_set (Elm_Genlist *obj, Eina_Bool enabled)
 Set focus upon items selection mode. More...
 
Eina_Bool elm_genlist_focus_on_selection_get (const Elm_Genlist *obj)
 Get whether focus upon item's selection mode is enabled. More...
 
void elm_genlist_longpress_timeout_set (Elm_Genlist *obj, double timeout)
 Set the timeout in seconds for the longpress event. More...
 
double elm_genlist_longpress_timeout_get (const Elm_Genlist *obj)
 Get the timeout in seconds for the longpress event. More...
 
void elm_genlist_multi_select_set (Elm_Genlist *obj, Eina_Bool multi)
 Enable or disable multi-selection in the genlist. More...
 
Eina_Bool elm_genlist_multi_select_get (const Elm_Genlist *obj)
 Get if multi-selection in genlist is enabled or disabled. More...
 
void elm_genlist_reorder_mode_set (Elm_Genlist *obj, Eina_Bool reorder_mode)
 Set reorder mode. More...
 
Eina_Bool elm_genlist_reorder_mode_get (const Elm_Genlist *obj)
 Get the reorder mode. More...
 
void elm_genlist_decorate_mode_set (Elm_Genlist *obj, Eina_Bool decorated)
 Set Genlist decorate mode. More...
 
Eina_Bool elm_genlist_decorate_mode_get (const Elm_Genlist *obj)
 Get Genlist decorate mode. More...
 
void elm_genlist_multi_select_mode_set (Elm_Genlist *obj, Elm_Object_Multi_Select_Mode mode)
 Set the genlist multi select mode. More...
 
Elm_Object_Multi_Select_Mode elm_genlist_multi_select_mode_get (const Elm_Genlist *obj)
 Get the genlist multi select mode. More...
 
void elm_genlist_block_count_set (Elm_Genlist *obj, int count)
 Set the maximum number of items within an item block. More...
 
int elm_genlist_block_count_get (const Elm_Genlist *obj)
 Get the maximum number of items within an item block. More...
 
void elm_genlist_tree_effect_enabled_set (Elm_Genlist *obj, Eina_Bool enabled)
 Set Genlist tree effect. More...
 
Eina_Bool elm_genlist_tree_effect_enabled_get (const Elm_Genlist *obj)
 Get Genlist tree effect. More...
 
void elm_genlist_highlight_mode_set (Elm_Genlist *obj, Eina_Bool highlight)
 Set whether the genlist items should be highlighted on item selection. More...
 
Eina_Bool elm_genlist_highlight_mode_get (const Elm_Genlist *obj)
 Get whether the genlist items' should be highlighted when item selected. More...
 
void elm_genlist_mode_set (Elm_Genlist *obj, Elm_List_Mode mode)
 This sets the horizontal stretching mode. More...
 
Elm_List_Mode elm_genlist_mode_get (const Elm_Genlist *obj)
 Get the horizontal stretching mode. More...
 
Elm_Object_Itemelm_genlist_decorated_item_get (const Elm_Genlist *obj)
 Get active genlist mode item. More...
 
Elm_Object_Itemelm_genlist_selected_item_get (const Elm_Genlist *obj)
 Get the selected item in the genlist. More...
 
Elm_Object_Itemelm_genlist_first_item_get (const Elm_Genlist *obj)
 Get the first item in the genlist. More...
 
Eina_List * elm_genlist_realized_items_get (const Elm_Genlist *obj)
 Get a list of realized items in genlist. More...
 
const Eina_List * elm_genlist_selected_items_get (const Elm_Genlist *obj)
 Get a list of selected items in the genlist. More...
 
Elm_Object_Itemelm_genlist_last_item_get (const Elm_Genlist *obj)
 Get the last item in the genlist. More...
 
Elm_Object_Itemelm_genlist_item_insert_before (Elm_Genlist *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *before_it, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data)
 Insert an item before another in a genlist widget. More...
 
void elm_genlist_realized_items_update (Elm_Genlist *obj)
 Update the contents of all realized items. More...
 
Elm_Object_Itemelm_genlist_item_insert_after (Elm_Genlist *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *after_it, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data)
 Insert an item after another in a genlist widget. More...
 
Elm_Object_Itemelm_genlist_at_xy_item_get (const Elm_Genlist *obj, Evas_Coord x, Evas_Coord y, int *posret)
 Get the item that is at the x, y canvas coords. More...
 
unsigned int elm_genlist_items_count (const Elm_Genlist *obj)
 Return how many items are currently in a list. More...
 
Elm_Object_Itemelm_genlist_item_prepend (Elm_Genlist *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data)
 Prepend a new item in a given genlist widget. More...
 
void elm_genlist_clear (Elm_Genlist *obj)
 Remove all items from a given genlist widget. More...
 
Elm_Object_Itemelm_genlist_item_append (Elm_Genlist *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data)
 Append a new item in a given genlist widget. More...
 
Elm_Object_Itemelm_genlist_item_sorted_insert (Elm_Genlist *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data)
 Insert a new item into the sorted genlist object. More...
 
Elm_Object_Itemelm_genlist_search_by_text_item_get (Elm_Genlist *obj, Elm_Object_Item *item_to_search_from, const char *part_name, const char *pattern, Elm_Glob_Match_Flags flags)
 Get genlist item by given string. More...
 
Elm_Genlist_Item_Classelm_genlist_item_class_new (void)
 Create a new genlist item class in a given genlist widget. More...
 
void elm_genlist_item_class_free (Elm_Genlist_Item_Class *itc)
 Remove an item class in a given genlist widget. More...
 
void elm_genlist_item_class_ref (Elm_Genlist_Item_Class *itc)
 Increments object reference count for the item class. More...
 
void elm_genlist_item_class_unref (Elm_Genlist_Item_Class *itc)
 Decrements object reference count for the item class. More...
 
void elm_genlist_item_tooltip_text_set (Elm_Object_Item *it, const char *text)
 Set the text to be shown in a given genlist item's tooltips. More...
 
void elm_genlist_item_tooltip_content_cb_set (Elm_Object_Item *it, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb)
 Set the content to be shown in a given genlist item's tooltips. More...
 
void elm_genlist_item_tooltip_unset (Elm_Object_Item *it)
 Unset a tooltip from a given genlist item. More...
 
void elm_genlist_item_tooltip_style_set (Elm_Object_Item *it, const char *style)
 Set a different style for a given genlist item's tooltip. More...
 
const char * elm_genlist_item_tooltip_style_get (const Elm_Object_Item *it)
 Get the style set a given genlist item's tooltip. More...
 
void elm_genlist_item_cursor_set (Elm_Object_Item *it, const char *cursor)
 Set the type of mouse pointer/cursor decoration to be shown, when the mouse pointer is over the given genlist widget item. More...
 
const char * elm_genlist_item_cursor_get (const Elm_Object_Item *it)
 Get the type of mouse pointer/cursor decoration set to be shown, when the mouse pointer is over the given genlist widget item. More...
 
void elm_genlist_item_cursor_unset (Elm_Object_Item *it)
 Unset any custom mouse pointer/cursor decoration set to be shown, when the mouse pointer is over the given genlist widget item, thus making it show the default cursor again. More...
 
void elm_genlist_item_cursor_style_set (Elm_Object_Item *it, const char *style)
 Set a different style for a given custom cursor set for a genlist item. More...
 
const char * elm_genlist_item_cursor_style_get (const Elm_Object_Item *it)
 Get the current style set for a given genlist item's custom cursor. More...
 
void elm_genlist_item_cursor_engine_only_set (Elm_Object_Item *it, Eina_Bool engine_only)
 Set if the (custom) cursor for a given genlist item should be searched in its theme, also, or should only rely on the rendering engine. More...
 
Eina_Bool elm_genlist_item_cursor_engine_only_get (const Elm_Object_Item *it)
 Get if the (custom) cursor for a given genlist item is being searched in its theme, also, or is only relying on the rendering engine. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_item_prev_get (void)
 Get the previous item in a genlist widget's internal list of items, given a handle to one of those items. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_item_next_get (void)
 Get the next item in a genlist widget's internal list of items, given a handle to one of those items. More...
 
EOAPI Elm_Object_Itemelm_obj_genlist_item_parent_get (void)
 Get the parent item of the given item. More...
 
EOAPI const Eina_List * elm_obj_genlist_item_subitems_get (void)
 Get the list of subitems of a given item. More...
 
EOAPI void elm_obj_genlist_item_selected_set (Eina_Bool selected)
 Set whether a given genlist item is selected or not. More...
 
EOAPI Eina_Bool elm_obj_genlist_item_selected_get (void)
 Get whether a given genlist item is selected or not. More...
 
EOAPI void elm_obj_genlist_item_expanded_set (Eina_Bool expanded)
 Sets the expanded state of an item. More...
 
EOAPI Eina_Bool elm_obj_genlist_item_expanded_get (void)
 Get the expanded state of an item. More...
 
EOAPI int elm_obj_genlist_item_expanded_depth_get (void)
 Get the depth of expanded item.
 
EOAPI const Elm_Genlist_Item_Classelm_obj_genlist_item_class_get (void)
 Get the Genlist Item class for the given Genlist Item. More...
 
EOAPI int elm_obj_genlist_item_index_get (void)
 Get the index of the item. More...
 
EOAPI const char * elm_obj_genlist_item_decorate_mode_get (void)
 Get the item's decorate mode. More...
 
EOAPI void elm_obj_genlist_item_flip_set (Eina_Bool flip)
 Set the flip state of a given genlist item. More...
 
EOAPI Eina_Bool elm_obj_genlist_item_flip_get (void)
 Get the flip state of a given genlist item. More...
 
EOAPI void elm_obj_genlist_item_select_mode_set (Elm_Object_Select_Mode mode)
 Set the genlist item's select mode. More...
 
EOAPI Elm_Object_Select_Mode elm_obj_genlist_item_select_mode_get (void)
 Get the genlist item's select mode. More...
 
EOAPI Elm_Genlist_Item_Type elm_obj_genlist_item_type_get (void)
 Get the Item's Type. More...
 
EOAPI unsigned int elm_obj_genlist_item_subitems_count (void)
 Get the number of subitems of a given item. More...
 
EOAPI void elm_obj_genlist_item_subitems_clear (void)
 Remove all sub-items (children) of the given item. More...
 
EOAPI void elm_obj_genlist_item_promote (void)
 Promote an item to the top of the list. More...
 
EOAPI void elm_obj_genlist_item_demote (void)
 Demote an item to the end of the list. More...
 
EOAPI void elm_obj_genlist_item_show (Elm_Genlist_Item_Scrollto_Type type)
 Show the portion of a genlist's internal list containing a given item, immediately. More...
 
EOAPI void elm_obj_genlist_item_bring_in (Elm_Genlist_Item_Scrollto_Type type)
 Animatedly bring in, to the visible area of a genlist, a given item on it. More...
 
EOAPI void elm_obj_genlist_item_all_contents_unset (Eina_List **l)
 Unset all contents fetched by the item class. More...
 
EOAPI void elm_obj_genlist_item_update (void)
 Update all the contents of an item. More...
 
EOAPI void elm_obj_genlist_item_fields_update (const char *parts, Elm_Genlist_Item_Field_Type itf)
 Update the part of an item. More...
 
EOAPI void elm_obj_genlist_item_class_update (const Elm_Genlist_Item_Class *itc)
 Update the item class of an item. More...
 
EOAPI void elm_obj_genlist_item_decorate_mode_set (const char *decorate_it_type, Eina_Bool decorate_it_set)
 Activate a genlist mode on an item. More...
 
Elm_Object_Itemelm_genlist_item_prev_get (const Elm_Genlist_Item *obj)
 Get the previous item in a genlist widget's internal list of items, given a handle to one of those items. More...
 
Elm_Object_Itemelm_genlist_item_next_get (const Elm_Genlist_Item *obj)
 Get the next item in a genlist widget's internal list of items, given a handle to one of those items. More...
 
Elm_Object_Itemelm_genlist_item_parent_get (const Elm_Genlist_Item *obj)
 Get the parent item of the given item. More...
 
const Eina_List * elm_genlist_item_subitems_get (const Elm_Genlist_Item *obj)
 Get the list of subitems of a given item. More...
 
void elm_genlist_item_selected_set (Elm_Genlist_Item *obj, Eina_Bool selected)
 Set whether a given genlist item is selected or not. More...
 
Eina_Bool elm_genlist_item_selected_get (const Elm_Genlist_Item *obj)
 Get whether a given genlist item is selected or not. More...
 
void elm_genlist_item_expanded_set (Elm_Genlist_Item *obj, Eina_Bool expanded)
 Sets the expanded state of an item. More...
 
Eina_Bool elm_genlist_item_expanded_get (const Elm_Genlist_Item *obj)
 Get the expanded state of an item. More...
 
int elm_genlist_item_expanded_depth_get (const Elm_Genlist_Item *obj)
 Get the depth of expanded item.
 
const Elm_Genlist_Item_Classelm_genlist_item_item_class_get (const Elm_Genlist_Item *obj)
 Get the Genlist Item class for the given Genlist Item. More...
 
int elm_genlist_item_index_get (const Elm_Genlist_Item *obj)
 Get the index of the item. More...
 
const char * elm_genlist_item_decorate_mode_get (const Elm_Genlist_Item *obj)
 Get the item's decorate mode. More...
 
void elm_genlist_item_flip_set (Elm_Genlist_Item *obj, Eina_Bool flip)
 Set the flip state of a given genlist item. More...
 
Eina_Bool elm_genlist_item_flip_get (const Elm_Genlist_Item *obj)
 Get the flip state of a given genlist item. More...
 
void elm_genlist_item_select_mode_set (Elm_Genlist_Item *obj, Elm_Object_Select_Mode mode)
 Set the genlist item's select mode. More...
 
Elm_Object_Select_Mode elm_genlist_item_select_mode_get (const Elm_Genlist_Item *obj)
 Get the genlist item's select mode. More...
 
Elm_Genlist_Item_Type elm_genlist_item_type_get (const Elm_Genlist_Item *obj)
 Get the Item's Type. More...
 
unsigned int elm_genlist_item_subitems_count (Elm_Genlist_Item *obj)
 Get the number of subitems of a given item. More...
 
void elm_genlist_item_subitems_clear (Elm_Genlist_Item *obj)
 Remove all sub-items (children) of the given item. More...
 
void elm_genlist_item_promote (Elm_Genlist_Item *obj)
 Promote an item to the top of the list. More...
 
void elm_genlist_item_demote (Elm_Genlist_Item *obj)
 Demote an item to the end of the list. More...
 
void elm_genlist_item_show (Elm_Genlist_Item *obj, Elm_Genlist_Item_Scrollto_Type type)
 Show the portion of a genlist's internal list containing a given item, immediately. More...
 
void elm_genlist_item_bring_in (Elm_Genlist_Item *obj, Elm_Genlist_Item_Scrollto_Type type)
 Animatedly bring in, to the visible area of a genlist, a given item on it. More...
 
void elm_genlist_item_all_contents_unset (Elm_Genlist_Item *obj, Eina_List **l)
 Unset all contents fetched by the item class. More...
 
void elm_genlist_item_update (Elm_Genlist_Item *obj)
 Update all the contents of an item. More...
 
void elm_genlist_item_fields_update (Elm_Genlist_Item *obj, const char *parts, Elm_Genlist_Item_Field_Type itf)
 Update the part of an item. More...
 
void elm_genlist_item_item_class_update (Elm_Genlist_Item *obj, const Elm_Genlist_Item_Class *itc)
 Update the item class of an item. More...
 
void elm_genlist_item_decorate_mode_set (Elm_Genlist_Item *obj, const char *decorate_it_type, Eina_Bool decorate_it_set)
 Activate a genlist mode on an item. More...
 
Evas_Object * elm_genlist_add (Evas_Object *parent)
 Add a new genlist widget to the given parent Elementary (container) object. More...
 
EINA_DEPRECATED void elm_genlist_horizontal_set (Evas_Object *obj, Elm_List_Mode mode)
 This sets the horizontal stretching mode. More...
 
EINA_DEPRECATED Elm_List_Mode elm_genlist_horizontal_get (const Evas_Object *obj)
 Get the horizontal stretching mode. More...
 
EINA_DEPRECATED void * elm_genlist_item_data_get (const Elm_Object_Item *it)
 Return the data associated to a given genlist item. More...
 
EINA_DEPRECATED void elm_genlist_item_data_set (Elm_Object_Item *it, const void *data)
 Set the data associated to a given genlist item. More...
 
EINA_DEPRECATED void elm_genlist_item_disabled_set (Elm_Object_Item *it, Eina_Bool disabled)
 Set whether a given genlist item is disabled or not. More...
 
EINA_DEPRECATED Eina_Bool elm_genlist_item_disabled_get (const Elm_Object_Item *it)
 Get whether a given genlist item is disabled or not. More...
 
EINA_DEPRECATED void elm_genlist_item_del (Elm_Object_Item *it)
 Remove a genlist item from the its parent, deleting it. More...
 
EINA_DEPRECATED Evas_Object * elm_genlist_item_genlist_get (const Elm_Object_Item *it)
 Get the genlist object's handle which contains a given genlist item. More...
 
EINA_DEPRECATED const char * elm_genlist_mode_item_style_get (const Evas_Object *obj)
 Get the mode item style of items in the genlist. More...
 
EINA_DEPRECATED void elm_genlist_mode_item_style_set (Evas_Object *obj, const char *style)
 Set the mode item style of items in the genlist. More...
 
EINA_DEPRECATED Elm_Genlist_Item_Type elm_genlist_item_flags_get (const Elm_Object_Item *it)
 Get the Item's Flags. More...
 

Detailed Description

genlist_inheritance_tree.png
preview-00.png
genlist.png

This widget aims to have more expansive list than the simple list in Elementary that could have more flexible items and allow many more entries while still being fast and low on memory usage. At the same time it was also made to be able to do tree structures. But the price to pay is more complexity when it comes to usage. If all you want is a simple list with icons and a single text, use the normal List object.

Genlist has a fairly large API, mostly because it's relatively complex, trying to be both expansive, powerful and efficient. First we will begin an overview on the theory behind genlist.

This widget inherits from the Layout one, so that all the functions acting on it also work for genlist objects.

This widget implements the elm-scrollable-interface interface, so that all (non-deprecated) functions for the base Scroller widget also work for genlists.

Some calls on the genlist's API are marked as deprecated, as they just wrap the scrollable widgets counterpart functions. Use the ones we point you to, for each case of deprecation here, instead – eventually the deprecated ones will be discarded (next major release).

Genlist item classes - creating items

In order to have the ability to add and delete items on the fly, genlist implements a class (callback) system where the application provides a structure with information about that type of item (genlist may contain multiple different items with different classes, states and styles). Genlist will call the functions in this struct (methods) when an item is "realized" (i.e., created dynamically, while the user is scrolling the list). All objects will simply be deleted when no longer needed with evas_object_del(). The #Elm_Genlist_Item_Class structure contains the following members:

The function pointers inside func are text_get, content_get, state_get and del. The 3 first functions also receive a part parameter described below. A brief description of these functions follows:

available item styles:

preview-04.png
preview-01.png
preview-02.png
preview-03.png

If one wants to use more icons and texts than are offered in theme, there are two solutions. One is to use 'full' style that has one big swallow part. You can swallow anything there. The other solution is to customize genlist item style in application side by using elm_theme_extension_add() and its own edc. Please refer Theme - Using extensions for that.

Structure of items

An item in a genlist can have 0 or more texts (they can be regular text or textblock Evas objects - that's up to the style to determine), 0 or more contents (which are simply objects swallowed into the genlist item's theming Edje object) and 0 or more boolean states, which have the behavior left to the user to define. The Edje part names for each of these properties will be looked up, in the theme file for the genlist, under the Edje (string) data items named "labels", "contents" and "states", respectively. For each of those properties, if more than one part is provided, they must have names listed separated by spaces in the data fields. For the default genlist item theme, we have one text part ("elm.text"), two content parts ("elm.swallow.icon" and "elm.swallow.end") and no state parts.

A genlist item may be at one of several styles. Elementary provides one by default - "default", but this can be extended by system or application custom themes/overlays/extensions (see themes for more details).

Editing and Navigating

Items can be added by several calls. All of them return a Elm_Object_Item handle that is an internal member inside the genlist. They all take a data parameter that is meant to be used for a handle to the applications internal data (eg. the struct with the original item data). The parent parameter is the parent genlist item this belongs to if it is a tree or an indexed group, and NULL if there is no parent. The flags can be a bitmask of #ELM_GENLIST_ITEM_NONE, #ELM_GENLIST_ITEM_TREE and #ELM_GENLIST_ITEM_GROUP. If #ELM_GENLIST_ITEM_TREE is set then this item is displayed as an item that is able to expand and have child items. If #ELM_GENLIST_ITEM_GROUP is set then this item is group index item that is displayed at the top until the next group comes. The func parameter is a convenience callback that is called when the item is selected and the data parameter will be the func_data parameter, obj be the genlist object and event_info will be the genlist item.

elm_genlist_item_append() adds an item to the end of the list, or if there is a parent, to the end of all the child items of the parent. elm_genlist_item_prepend() is the same but adds to the beginning of the list or children list. elm_genlist_item_insert_before() inserts at item before another item and elm_genlist_item_insert_after() inserts after the indicated item.

The application can clear the list with elm_genlist_clear() which deletes all the items in the list and elm_object_item_del() will delete a specific item. elm_genlist_item_subitems_clear() will clear all items that are children of the indicated parent item.

To help inspect list items you can jump to the item at the top of the list with elm_genlist_first_item_get() which will return the item pointer, and similarly elm_genlist_last_item_get() gets the item at the end of the list. elm_genlist_item_next_get() and elm_genlist_item_prev_get() get the next and previous items respectively relative to the indicated item. Using these calls you can walk the entire item list/tree. Note that as a tree the items are flattened in the list, so elm_genlist_item_parent_get() will let you know which item is the parent (and thus know how to skip them if wanted).

Multi-selection

If the application wants multiple items to be able to be selected, elm_genlist_multi_select_set() can enable this. If the list is single-selection only (the default), then elm_genlist_selected_item_get() will return the selected item, if any, or NULL if none is selected. If the list is multi-select then elm_genlist_selected_items_get() will return a list (that is only valid as long as no items are modified (added, deleted, selected or unselected)).

Usage hints

There are also convenience functions. elm_object_item_widget_get() will return the genlist object the item belongs to. elm_genlist_item_show() will make the scroller scroll to show that specific item so its visible. elm_object_item_data_get() returns the data pointer set by the item creation functions.

If an item changes (state of boolean changes, text or contents change), then use elm_genlist_item_update() to have genlist update the item with the new state. Genlist will re-realize the item and thus call the functions in the _Elm_Genlist_Item_Class for that item.

To programmatically (un)select an item use elm_genlist_item_selected_set(). To get its selected state use elm_genlist_item_selected_get(). Similarly to expand/contract an item and get its expanded state, use elm_genlist_item_expanded_set() and elm_genlist_item_expanded_get(). And again to make an item disabled (unable to be selected and appear differently) use elm_object_item_disabled_set() to set this and elm_object_item_disabled_get() to get the disabled state.

In general to indicate how the genlist should expand items horizontally to fill the list area, use elm_genlist_mode_set(). Valid modes are ELM_LIST_LIMIT, ELM_LIST_COMPRESS and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This mode means that if items are too wide to fit, the scroller will scroll horizontally. Otherwise items are expanded to fill the width of the viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded to the viewport width if larger than the item, but genlist widget witdh is limited to the largest item. Do not use ELM_LIST_LIMIT mode with homogeneous mode turned on. ELM_LIST_COMPRESS can be combined with a different style that uses edjes' ellipsis feature (cutting text off like this: "tex...").

Items will call their selection func and callback only once when first becoming selected. Any further clicks will do nothing, unless you enable always select with elm_genlist_select_mode_set() as ELM_OBJECT_SELECT_MODE_ALWAYS. This means even if selected, every click will make the selected callbacks be called. elm_genlist_select_mode_set() as ELM_OBJECT_SELECT_MODE_NONE will turn off the ability to select items entirely and they will neither appear selected nor call selected callback functions.

Remember that you can create new styles and add your own theme augmentation per application with elm_theme_extension_add(). If you absolutely must have a specific style that overrides any theme the user or system sets up you can use elm_theme_overlay_add() to add such a file.

Implementation

Evas tracks every object you create. Every time it processes an event (mouse move, down, up etc.) it needs to walk through objects and find out what event that affects. Even worse every time it renders display updates, in order to just calculate what to re-draw, it needs to walk through many many many objects. Thus, the more objects you keep active, the more overhead Evas has in just doing its work. It is advisable to keep your active objects to the minimum working set you need. Also remember that object creation and deletion carries an overhead, so there is a middle-ground, which is not easily determined. But don't keep massive lists of objects you can't see or use. Genlist does this with list objects. It creates and destroys them dynamically as you scroll around. It groups them into blocks so it can determine the visibility etc. of a whole block at once as opposed to having to walk the whole list. This 2-level list allows for very large numbers of items to be in the list (tests have used up to 2,000,000 items). Also genlist employs a queue for adding items. As items may be different sizes, every item added needs to be calculated as to its size and thus this presents a lot of overhead on populating the list, this genlist employs a queue. Any item added is queued and spooled off over time, actually appearing some time later, so if your list has many members you may find it takes a while for them to all appear, with your process consuming a lot of CPU while it is busy spooling.

Genlist also implements a tree structure for items, but it does so with callbacks to the application, with the application filling in tree structures when requested (allowing for efficient building of a very deep tree that could even be used for file-management). See the above smart signal callbacks for details.

Genlist smart events

This widget emits the following signals, besides the ones sent from Layout:

Supported elm_object_item common APIs

Unsupported elm_object_item common APIs due to the genlist concept. Genlist fills content/text according to the appropriate callback functions. Please use elm_genlist_item_update() or elm_genlist_item_fields_update() instead.

Examples

Here is a list of examples that use the genlist, trying to show some of its capabilities:

Function Documentation

Elm_Object_Item* elm_genlist::at_xy_item_get ( Evas_Coord  x_,
Evas_Coord  y_,
int *  posret_ 
) const
inline

Get the item that is at the x, y canvas coords.

Returns
The item at the coordinates or NULL if none

This returns the item at the given coordinates (which are canvas relative, not object-relative). If an item is at that coordinate, that item handle is returned, and if posret is not NULL, the integer pointed to is set to a value of -1, 0 or 1, depending if the coordinate is on the upper portion of that item (-1), on the middle section (0) or on the lower part (1). If NULL is returned as an item (no item found there), then posret may indicate -1 or 1 based if the coordinate is above or below all items respectively in the genlist.

Parameters
xThe input x coordinate
yThe input y coordinate
[out]posretThe position relative to the item returned here

References elm_obj_genlist_at_xy_item_get().

int elm_genlist::block_count_get ( ) const
inline

Get the maximum number of items within an item block.

Returns
Maximum number of items within an item block
See also
elm_genlist_block_count_set()
Parameters
countMaximum number of items within an item block. Default is 32.

References elm_obj_genlist_block_count_get().

void elm_genlist::block_count_set ( int  count_) const
inline

Get the maximum number of items within an item block.

Returns
Maximum number of items within an item block
See also
elm_genlist_block_count_set()
Parameters
countMaximum number of items within an item block. Default is 32.

References elm_obj_genlist_block_count_set().

void elm_genlist::clear ( ) const
inline

Remove all items from a given genlist widget.

This removes (and deletes) all items in obj, leaving it empty.

See also
elm_object_item_del(), to remove just one item.

References elm_obj_genlist_clear().

bool elm_genlist::decorate_mode_get ( ) const
inline

Get Genlist decorate mode.

Returns
The decorate mode status (EINA_TRUE = decorate mode, EINA_FALSE = normal mode
Parameters
decoratedThe decorate mode status (EINA_TRUE = decorate mode, EINA_FALSE = normal mode

References elm_obj_genlist_decorate_mode_get().

void elm_genlist::decorate_mode_set ( bool  decorated_) const
inline

Get Genlist decorate mode.

Returns
The decorate mode status (EINA_TRUE = decorate mode, EINA_FALSE = normal mode
Parameters
decoratedThe decorate mode status (EINA_TRUE = decorate mode, EINA_FALSE = normal mode

References elm_obj_genlist_decorate_mode_set().

Elm_Object_Item* elm_genlist::decorated_item_get ( ) const
inline

Get active genlist mode item.

Returns
The active item for that current mode. Or NULL if no item is activated with any mode.

This function returns the item that was activated with a mode, by the function elm_genlist_item_decorate_mode_set().

See also
elm_genlist_item_decorate_mode_set()
elm_genlist_mode_get()

References elm_obj_genlist_decorated_item_get().

Evas_Object* elm_genlist_add ( Evas_Object *  parent)

Add a new genlist widget to the given parent Elementary (container) object.

Parameters
parentThe parent object
Returns
a new genlist widget handle or NULL, on errors

This function inserts a new genlist widget on the canvas.

See also
elm_genlist_item_append()
elm_object_item_del()
elm_genlist_clear()
Elm_Object_Item* elm_genlist_at_xy_item_get ( const Elm_Genlist *  obj,
Evas_Coord  x,
Evas_Coord  y,
int *  posret 
)

Get the item that is at the x, y canvas coords.

Returns
The item at the coordinates or NULL if none

This returns the item at the given coordinates (which are canvas relative, not object-relative). If an item is at that coordinate, that item handle is returned, and if posret is not NULL, the integer pointed to is set to a value of -1, 0 or 1, depending if the coordinate is on the upper portion of that item (-1), on the middle section (0) or on the lower part (1). If NULL is returned as an item (no item found there), then posret may indicate -1 or 1 based if the coordinate is above or below all items respectively in the genlist.

Parameters
[in]xThe input x coordinate
[in]yThe input y coordinate
[out]posretThe position relative to the item returned here

References elm_obj_genlist_at_xy_item_get().

int elm_genlist_block_count_get ( const Elm_Genlist *  obj)

Get the maximum number of items within an item block.

Returns
Maximum number of items within an item block
See also
elm_genlist_block_count_set()

References elm_obj_genlist_block_count_get().

void elm_genlist_block_count_set ( Elm_Genlist *  obj,
int  count 
)

Set the maximum number of items within an item block.

This will configure the block count to tune to the target with particular performance matrix.

A block of objects will be used to reduce the number of operations due to many objects in the screen. It can determine the visibility, or if the object has changed, it theme needs to be updated, etc. doing this kind of calculation to the entire block, instead of per object.

The default value for the block count is enough for most lists, so unless you know you will have a lot of objects visible in the screen at the same time, don't try to change this.

See also
elm_genlist_block_count_get()
Implementation
Parameters
[in]countMaximum number of items within an item block. Default is 32.

References elm_obj_genlist_block_count_set().

EINA_DEPRECATED void elm_genlist_bounce_get ( const Evas_Object *  obj,
Eina_Bool *  h_bounce,
Eina_Bool *  v_bounce 
)

Get whether the horizontal and vertical bouncing effect is enabled.

Parameters
objThe genlist object
h_bouncePointer to a bool to receive if the bounce horizontally option is set.
v_bouncePointer to a bool to receive if the bounce vertically option is set.
Deprecated:
Use elm_scroller_bounce_get() instead.
See also
elm_scroller_bounce_get()
elm_genlist_bounce_set()

References elm_interface_scrollable_bounce_allow_get().

EINA_DEPRECATED void elm_genlist_bounce_set ( Evas_Object *  obj,
Eina_Bool  h_bounce,
Eina_Bool  v_bounce 
)

Enable/disable horizontal and vertical bouncing effect.

Parameters
objThe genlist object
h_bounceAllow bounce horizontally (EINA_TRUE = on, EINA_FALSE = off). Default is EINA_FALSE.
v_bounceAllow bounce vertically (EINA_TRUE = on, EINA_FALSE = off). Default is EINA_TRUE.

This will enable or disable the scroller bouncing effect for the genlist. See elm_scroller_bounce_set() for details.

Deprecated:
Use elm_scroller_bounce_set() instead.
See also
elm_scroller_bounce_set()
elm_genlist_bounce_get()

References elm_interface_scrollable_bounce_allow_set().

void elm_genlist_clear ( Elm_Genlist *  obj)

Remove all items from a given genlist widget.

This removes (and deletes) all items in obj, leaving it empty.

See also
elm_object_item_del(), to remove just one item.

References elm_obj_genlist_clear().

Referenced by elm_store_free(), and elm_store_target_genlist_set().

Eina_Bool elm_genlist_decorate_mode_get ( const Elm_Genlist *  obj)

Get Genlist decorate mode.

Returns
The decorate mode status (EINA_TRUE = decorate mode, EINA_FALSE = normal mode

References elm_obj_genlist_decorate_mode_get().

void elm_genlist_decorate_mode_set ( Elm_Genlist *  obj,
Eina_Bool  decorated 
)

Set Genlist decorate mode.

This sets Genlist decorate mode to all items.

Parameters
[in]decoratedThe decorate mode status (EINA_TRUE = decorate mode, EINA_FALSE = normal mode

References elm_obj_genlist_decorate_mode_set().

Elm_Object_Item* elm_genlist_decorated_item_get ( const Elm_Genlist *  obj)

Get active genlist mode item.

Returns
The active item for that current mode. Or NULL if no item is activated with any mode.

This function returns the item that was activated with a mode, by the function elm_genlist_item_decorate_mode_set().

See also
elm_genlist_item_decorate_mode_set()
elm_genlist_mode_get()

References elm_obj_genlist_decorated_item_get().

Elm_Object_Item* elm_genlist_first_item_get ( const Elm_Genlist *  obj)

Get the first item in the genlist.

This returns the first item in the list.

Returns
The first item, or NULL if none

References elm_obj_genlist_first_item_get().

Eina_Bool elm_genlist_focus_on_selection_get ( const Elm_Genlist *  obj)

Get whether focus upon item's selection mode is enabled.

Returns
The tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled)

References elm_obj_genlist_focus_on_selection_get().

void elm_genlist_focus_on_selection_set ( Elm_Genlist *  obj,
Eina_Bool  enabled 
)

Set focus upon items selection mode.

When enabled, every selection of an item inside the genlist will automatically set focus to its first focusable widget from the left. This is true of course if the selection was made by clicking an unfocusable area in an item or selecting it with a key movement. Clicking on a focusable widget inside an item will couse this particular item to get focus as usual.

Parameters
[in]enabledThe tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled)

References elm_obj_genlist_focus_on_selection_set().

Eina_Bool elm_genlist_highlight_mode_get ( const Elm_Genlist *  obj)

Get whether the genlist items' should be highlighted when item selected.

Returns
EINA_TRUE means items can be highlighted. EINA_FALSE indicates they can't. If obj is NULL, EINA_FALSE is returned.
See also
elm_genlist_highlight_mode_set() for details.

References elm_obj_genlist_highlight_mode_get().

void elm_genlist_highlight_mode_set ( Elm_Genlist *  obj,
Eina_Bool  highlight 
)

Set whether the genlist items should be highlighted on item selection.

This will turn on/off the highlight effect on item selection. The selected and clicked callback functions will still be called.

Highlight is enabled by default.

See also
elm_genlist_highlight_mode_get().
Parameters
[in]highlightEINA_TRUE to enable highlighting or EINA_FALSE to disable it.

References elm_obj_genlist_highlight_mode_set().

Eina_Bool elm_genlist_homogeneous_get ( const Elm_Genlist *  obj)

Get whether the homogeneous mode is enabled.

Returns
Assume the items within the genlist are of the same height and width (EINA_TRUE = on, EINA_FALSE = off)
See also
elm_genlist_homogeneous_set()

References elm_obj_genlist_homogeneous_get().

void elm_genlist_homogeneous_set ( Elm_Genlist *  obj,
Eina_Bool  homogeneous 
)

Enable/disable homogeneous mode.

This will enable the homogeneous mode where items are of the same height and width so that genlist may do the lazy-loading at its maximum (which increases the performance for scrolling the list). In the normal mode, genlist will pre-calculate all the items' sizes even though they are not in use. So items' callbacks are called many times than expected. But homogeneous mode will skip the item size pre-calculation process so items' callbacks are called only when the item is needed.

Note
This also works well with group index.
See also
elm_genlist_mode_set()
elm_genlist_homogeneous_get()
Parameters
[in]homogeneousAssume the items within the genlist are of the same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is EINA_FALSE.

References elm_obj_genlist_homogeneous_set().

EINA_DEPRECATED Elm_List_Mode elm_genlist_horizontal_get ( const Evas_Object *  obj)

Get the horizontal stretching mode.

Parameters
objThe genlist object
Returns
The mode to use (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
See also
elm_genlist_horizontal_set()
Deprecated:
use elm_genlist_mode_get()
EINA_DEPRECATED void elm_genlist_horizontal_set ( Evas_Object *  obj,
Elm_List_Mode  mode 
)

This sets the horizontal stretching mode.

Parameters
objThe genlist object
modeThe mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).

This sets the mode used for sizing items horizontally. Valid modes are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This mode means that if items are too wide to fit, the scroller will scroll horizontally. Otherwise items are expanded to fill the width of the viewport of the scroller. If it is ELM_LIST_LIMIT, items will be expanded to the viewport width and limited to that size.

See also
elm_genlist_horizontal_get()
Deprecated:
use elm_genlist_mode_set()
void elm_genlist_item_all_contents_unset ( Elm_Genlist_Item *  obj,
Eina_List **  l 
)

Unset all contents fetched by the item class.

This instructs genlist to release references to contents in the item, meaning that they will no longer be managed by genlist and are floating "orphans" that can be re-used elsewhere if the user wants to.

Parameters
[out]lThe contents list to return

References elm_obj_genlist_item_all_contents_unset().

Elm_Object_Item* elm_genlist_item_append ( Elm_Genlist *  obj,
const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Genlist_Item_Type  type,
Evas_Smart_Cb  func,
const void *  func_data 
)

Append a new item in a given genlist widget.

Returns
A handle to the item added or NULL if not possible

This adds the given item to the end of the list or the end of the children list if the parent is given.

See also
elm_genlist_item_prepend()
elm_genlist_item_insert_before()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]typeItem type
[in]funcConvenience function called when the item is selected
[in]func_dataData passed to func above.

References elm_obj_genlist_item_append().

void elm_genlist_item_bring_in ( Elm_Genlist_Item *  obj,
Elm_Genlist_Item_Scrollto_Type  type 
)

Animatedly bring in, to the visible area of a genlist, a given item on it.

This causes genlist to jump to the given item it and show it (by animatedly scrolling), if it is not fully visible. This may use animation and take a some time to do so.

See also
elm_genlist_item_show()
Parameters
[in]typeThe position to bring in, the given item to. Elm_Genlist_Item_Scrollto_Type

References elm_obj_genlist_item_bring_in().

void elm_genlist_item_class_free ( Elm_Genlist_Item_Class itc)

Remove an item class in a given genlist widget.

Parameters
itcThe itc to be removed.

This removes item class from the genlist widget. Whenever it has no more references to it, item class is going to be freed. Otherwise it just decreases its reference count.

See also
elm_genlist_item_class_new()
elm_genlist_item_class_ref()
elm_genlist_item_class_unref()

References elm_genlist_item_class_unref().

Referenced by elm_genlist_item_class_unref().

Elm_Genlist_Item_Class* elm_genlist_item_class_new ( void  )

Create a new genlist item class in a given genlist widget.

Returns
New allocated genlist item class.

This adds genlist item class for the genlist widget. When adding an item, genlist_item_{append, prepend, insert} function needs item class of the item. Given callback parameters are used at retrieving {text, content} of added item. Set as NULL if it's not used. If there's no available memory, return can be NULL.

See also
elm_genlist_item_class_free()
elm_genlist_item_append()
void elm_genlist_item_class_ref ( Elm_Genlist_Item_Class itc)

Increments object reference count for the item class.

Parameters
itcThe given item class object to reference

This API just increases its reference count for item class management.

See also
elm_genlist_item_class_unref()
void elm_genlist_item_class_unref ( Elm_Genlist_Item_Class itc)

Decrements object reference count for the item class.

Parameters
itcThe given item class object to reference

This API just decreases its reference count for item class management. Reference count can't be less than 0.

See also
elm_genlist_item_class_ref()
elm_genlist_item_class_free()

References elm_genlist_item_class_free().

Referenced by elm_genlist_item_class_free().

Eina_Bool elm_genlist_item_cursor_engine_only_get ( const Elm_Object_Item it)

Get if the (custom) cursor for a given genlist item is being searched in its theme, also, or is only relying on the rendering engine.

Parameters
ita genlist item
Returns
EINA_TRUE, if cursors are being looked for only on those provided by the rendering engine, EINA_FALSE if they are being searched on the widget's theme, as well.
See also
elm_genlist_item_cursor_engine_only_set(), for more details

References elm_wdg_item_cursor_engine_only_get().

void elm_genlist_item_cursor_engine_only_set ( Elm_Object_Item it,
Eina_Bool  engine_only 
)

Set if the (custom) cursor for a given genlist item should be searched in its theme, also, or should only rely on the rendering engine.

Parameters
ititem with custom (custom) cursor already set on
engine_onlyUse EINA_TRUE to have cursors looked for only on those provided by the rendering engine, EINA_FALSE to have them searched on the widget's theme, as well.
Note
This call is of use only if you've set a custom cursor for genlist items, with elm_genlist_item_cursor_set().
By default, cursors will only be looked for between those provided by the rendering engine.

References elm_wdg_item_cursor_engine_only_set().

const char* elm_genlist_item_cursor_get ( const Elm_Object_Item it)

Get the type of mouse pointer/cursor decoration set to be shown, when the mouse pointer is over the given genlist widget item.

Parameters
itgenlist item with custom cursor set
Returns
the cursor type's name or NULL, if no custom cursors were set to item (and on errors)
See also
elm_object_cursor_get()
elm_genlist_item_cursor_set() for more details
elm_genlist_item_cursor_unset()

References elm_wdg_item_cursor_get().

void elm_genlist_item_cursor_set ( Elm_Object_Item it,
const char *  cursor 
)

Set the type of mouse pointer/cursor decoration to be shown, when the mouse pointer is over the given genlist widget item.

Parameters
itgenlist item to customize cursor on
cursorthe cursor type's name

This function works analogously as elm_object_cursor_set(), but here the cursor's changing area is restricted to the item's area, and not the whole widget's. Note that that item cursors have precedence over widget cursors, so that a mouse over item will always show cursor type.

If this function is called twice for an object, a previously set cursor will be unset on the second call.

See also
elm_object_cursor_set()
elm_genlist_item_cursor_get()
elm_genlist_item_cursor_unset()

References elm_wdg_item_cursor_set().

const char* elm_genlist_item_cursor_style_get ( const Elm_Object_Item it)

Get the current style set for a given genlist item's custom cursor.

Parameters
itgenlist item with custom cursor set.
Returns
style the cursor style in use. If the object does not have a cursor set, then NULL is returned.
See also
elm_genlist_item_cursor_style_set() for more details

References elm_wdg_item_cursor_style_get().

void elm_genlist_item_cursor_style_set ( Elm_Object_Item it,
const char *  style 
)

Set a different style for a given custom cursor set for a genlist item.

Parameters
itgenlist item with custom cursor set
stylethe theme style to use (e.g. "default", "transparent", etc)

This function only makes sense when one is using custom mouse cursor decorations defined in a theme file , which can have, given a cursor name/type, alternate styles on it. It works analogously as elm_object_cursor_style_set(), but here applied only to genlist item objects.

Warning
Before you set a cursor style you should have defined a custom cursor previously on the item, with elm_genlist_item_cursor_set()
See also
elm_genlist_item_cursor_engine_only_set()
elm_genlist_item_cursor_style_get()

References elm_wdg_item_cursor_style_set().

void elm_genlist_item_cursor_unset ( Elm_Object_Item it)

Unset any custom mouse pointer/cursor decoration set to be shown, when the mouse pointer is over the given genlist widget item, thus making it show the default cursor again.

Parameters
ita genlist item

Use this call to undo any custom settings on this item's cursor decoration, bringing it back to defaults (no custom style set).

See also
elm_object_cursor_unset()
elm_genlist_item_cursor_set() for more details

References elm_wdg_item_cursor_unset().

EINA_DEPRECATED void* elm_genlist_item_data_get ( const Elm_Object_Item it)

Return the data associated to a given genlist item.

Parameters
itThe genlist item.
Returns
the data associated to this item.

This returns the data value passed on the elm_genlist_item_append() and related item addition calls.

See also
elm_genlist_item_append()
elm_genlist_item_data_set()
Deprecated:
Use elm_object_item_data_get() instead
EINA_DEPRECATED void elm_genlist_item_data_set ( Elm_Object_Item it,
const void *  data 
)

Set the data associated to a given genlist item.

Parameters
itThe genlist item
dataThe new data pointer to set on it

This overrides the data value passed on the elm_genlist_item_append() and related item addition calls. This function won't call elm_genlist_item_update() automatically, so you'd issue it afterwards if you want to hove the item updated to reflect the that new data.

See also
elm_genlist_item_data_get()
Deprecated:
Use elm_object_item_data_set() instead
const char* elm_genlist_item_decorate_mode_get ( const Elm_Genlist_Item *  obj)

Get the item's decorate mode.

This function just returns the name of the item's decorate mode.

See also
elm_genlist_item_decorate_mode_set()
elm_genlist_decorated_item_get()

References elm_obj_genlist_item_decorate_mode_get().

void elm_genlist_item_decorate_mode_set ( Elm_Genlist_Item *  obj,
const char *  decorate_it_type,
Eina_Bool  decorate_it_set 
)

Activate a genlist mode on an item.

A genlist mode is a different way of selecting an item. Once a mode is activated on an item, any other selected item is immediately unselected. This feature provides an easy way of implementing a new kind of animation for selecting an item, without having to entirely rewrite the item style theme. However, the elm_genlist_selected_* API can't be used to get what item is activate for a mode.

The current item style will still be used, but applying a genlist mode to an item will select it using a different kind of animation.

The current active item for a mode can be found by elm_genlist_decorated_item_get().

The characteristics of genlist mode are:

  • Only one mode can be active at any time, and for only one item.
  • Genlist handles deactivating other items when one item is activated.
  • A mode is defined in the genlist theme (edc), and more modes can easily be added.
  • A mode style and the genlist item style are different things. They can be combined to provide a default style to the item, with some kind of animation for that item when the mode is activated.

When a mode is activated on an item, a new view for that item is created. The theme of this mode defines the animation that will be used to transit the item from the old view to the new view. This second (new) view will be active for that item while the mode is active on the item, and will be destroyed after the mode is totally deactivated from that item.

See also
elm_genlist_mode_get()
elm_genlist_decorated_item_get()
Parameters
[in]decorate_it_typeMode name
[in]decorate_it_setBoolean to define set or unset mode.

References elm_obj_genlist_item_decorate_mode_set().

EINA_DEPRECATED void elm_genlist_item_del ( Elm_Object_Item it)

Remove a genlist item from the its parent, deleting it.

Parameters
itThe item to be removed.
Returns
EINA_TRUE on success or EINA_FALSE, otherwise.
See also
elm_genlist_clear(), to remove all items in a genlist at once.
Deprecated:
Use elm_object_item_del() instead
void elm_genlist_item_demote ( Elm_Genlist_Item *  obj)

Demote an item to the end of the list.

Parameters
itThe item

References elm_obj_genlist_item_demote().

EINA_DEPRECATED Eina_Bool elm_genlist_item_disabled_get ( const Elm_Object_Item it)

Get whether a given genlist item is disabled or not.

Parameters
itThe item
Returns
EINA_TRUE, if it's disabled, EINA_FALSE otherwise (and on errors).
See also
elm_genlist_item_disabled_set() for more details
Deprecated:
Use elm_object_item_disabled_get() instead
EINA_DEPRECATED void elm_genlist_item_disabled_set ( Elm_Object_Item it,
Eina_Bool  disabled 
)

Set whether a given genlist item is disabled or not.

Parameters
itThe item
disabledUse EINA_TRUE, true disable it, EINA_FALSE to enable it back.

A disabled item cannot be selected or unselected. It will also change its appearance, to signal the user it's disabled.

See also
elm_genlist_item_disabled_get()
Deprecated:
Use elm_object_item_disabled_set() instead
Eina_Bool elm_genlist_item_expanded_get ( const Elm_Genlist_Item *  obj)

Get the expanded state of an item.

This gets the expanded state of an item.

See also
elm_genlist_item_expanded_set()

References elm_obj_genlist_item_expanded_get().

void elm_genlist_item_expanded_set ( Elm_Genlist_Item *  obj,
Eina_Bool  expanded 
)

Sets the expanded state of an item.

This function flags the item of type #ELM_GENLIST_ITEM_TREE as expanded or not.

The theme will respond to this change visually, and a signal "expanded" or "contracted" will be sent from the genlist with a pointer to the item that has been expanded/contracted.

Calling this function won't show or hide any child of this item (if it is a parent). You must manually delete and create them on the callbacks of the "expanded" or "contracted" signals.

See also
elm_genlist_item_expanded_get()
Parameters
[in]expandedThe expanded state (EINA_TRUE expanded, EINA_FALSE not expanded).

References elm_obj_genlist_item_expanded_set().

void elm_genlist_item_fields_update ( Elm_Genlist_Item *  obj,
const char *  parts,
Elm_Genlist_Item_Field_Type  itf 
)

Update the part of an item.

This updates an item's part by calling item's fetching functions again to get the contents, texts and states. Use this when the original item data has changed and the changes are desired to be reflected. Second parts argument is used for globbing to match '*', '?', and '.' It can be used at updating multi fields.

Use elm_genlist_realized_items_update() to update an item's all property.

See also
elm_genlist_item_update()
Parameters
[in]partsThe name of item's part
[in]itfThe type of item's part type

References elm_obj_genlist_item_fields_update().

EINA_DEPRECATED Elm_Genlist_Item_Type elm_genlist_item_flags_get ( const Elm_Object_Item it)

Get the Item's Flags.

Parameters
itThe genlist item
Returns
The item type.

This function returns the item's type. Normally the item's type. If it failed, return value is ELM_GENLIST_ITEM_MAX

Deprecated:
Use elm_genlist_item_type_get() instead
Eina_Bool elm_genlist_item_flip_get ( const Elm_Genlist_Item *  obj)

Get the flip state of a given genlist item.

This function returns the flip state of a given genlist item. If the parameter is invalid, it returns EINA_FALSE.

See also
elm_genlist_item_flip_set()

References elm_obj_genlist_item_flip_get().

void elm_genlist_item_flip_set ( Elm_Genlist_Item *  obj,
Eina_Bool  flip 
)

Set the flip state of a given genlist item.

(EINA_TRUE = on, EINA_FALSE = off)

This function sets the flip state of a given genlist item. Flip mode overrides current item object. It can be used for on-the-fly item replace. Flip mode can be used with/without decorate mode.

See also
elm_genlist_item_flip_get()
Parameters
[in]flipThe flip mode

References elm_obj_genlist_item_flip_set().

EINA_DEPRECATED Evas_Object* elm_genlist_item_genlist_get ( const Elm_Object_Item it)

Get the genlist object's handle which contains a given genlist item.

Parameters
itThe item to fetch the container from
Returns
The genlist (parent) object

This returns the genlist object itself that an item belongs to.

Deprecated:
Use elm_object_item_widget_get() instead
int elm_genlist_item_index_get ( const Elm_Genlist_Item *  obj)

Get the index of the item.

It is only valid once displayed.

The index start from 1.

References elm_obj_genlist_item_index_get().

Elm_Object_Item* elm_genlist_item_insert_after ( Elm_Genlist *  obj,
const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Object_Item after_it,
Elm_Genlist_Item_Type  type,
Evas_Smart_Cb  func,
const void *  func_data 
)

Insert an item after another in a genlist widget.

Returns
A handle to the item added or NULL if not possible

This inserts an item after another in the list. It will be in the same tree level or group as the item it is inserted after.

See also
elm_genlist_item_append()
elm_genlist_item_prepend()
elm_genlist_item_insert_before()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]after_itThe item to place this new one after.
[in]typeItem type
[in]funcConvenience function called when the item is selected
[in]func_dataData passed to func above.

References elm_obj_genlist_item_insert_after().

Elm_Object_Item* elm_genlist_item_insert_before ( Elm_Genlist *  obj,
const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Object_Item before_it,
Elm_Genlist_Item_Type  type,
Evas_Smart_Cb  func,
const void *  func_data 
)

Insert an item before another in a genlist widget.

Returns
A handle to the item added or NULL if not possible

This inserts an item before another in the list. It will be in the same tree level or group as the item it is inserted before.

See also
elm_genlist_item_append()
elm_genlist_item_prepend()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]before_itThe item to place this new one before.
[in]typeItem type
[in]funcConvenience function called when the item is selected
[in]func_dataData passed to func above.

References elm_obj_genlist_item_insert_before().

const Elm_Genlist_Item_Class* elm_genlist_item_item_class_get ( const Elm_Genlist_Item *  obj)

Get the Genlist Item class for the given Genlist Item.

This returns the Genlist_Item_Class for the given item. It can be used to examine the function pointers and item_style.

References elm_obj_genlist_item_class_get().

void elm_genlist_item_item_class_update ( Elm_Genlist_Item *  obj,
const Elm_Genlist_Item_Class itc 
)

Update the item class of an item.

This sets another class of the item, changing the way that it is displayed. After changing the item class, elm_genlist_item_update() is called on the item it.

Parameters
[in]itcThe item class for the item

References elm_obj_genlist_item_class_update().

Elm_Object_Item* elm_genlist_item_next_get ( const Elm_Genlist_Item *  obj)

Get the next item in a genlist widget's internal list of items, given a handle to one of those items.

This returns the item placed after the item, on the container genlist.

See also
elm_genlist_item_prev_get()

References elm_obj_genlist_item_next_get().

Elm_Object_Item* elm_genlist_item_parent_get ( const Elm_Genlist_Item *  obj)

Get the parent item of the given item.

This returns the item that was specified as parent of the item it on elm_genlist_item_append() and insertion related functions.

References elm_obj_genlist_item_parent_get().

Elm_Object_Item* elm_genlist_item_prepend ( Elm_Genlist *  obj,
const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Genlist_Item_Type  type,
Evas_Smart_Cb  func,
const void *  func_data 
)

Prepend a new item in a given genlist widget.

Returns
A handle to the item added or NULL if not possible

This adds an item to the beginning of the list or beginning of the children of the parent if given.

See also
elm_genlist_item_append()
elm_genlist_item_insert_before()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]typeItem type
[in]funcConvenience function called when the item is selected
[in]func_dataData passed to func above.

References elm_obj_genlist_item_prepend().

Elm_Object_Item* elm_genlist_item_prev_get ( const Elm_Genlist_Item *  obj)

Get the previous item in a genlist widget's internal list of items, given a handle to one of those items.

This returns the item placed before the item, on the container genlist.

See also
elm_genlist_item_next_get()

References elm_obj_genlist_item_prev_get().

void elm_genlist_item_promote ( Elm_Genlist_Item *  obj)

Promote an item to the top of the list.

Parameters
itThe item

References elm_obj_genlist_item_promote().

Elm_Object_Select_Mode elm_genlist_item_select_mode_get ( const Elm_Genlist_Item *  obj)

Get the genlist item's select mode.

Returns
The select mode (If getting mode fails, it returns ELM_OBJECT_SELECT_MODE_MAX)
See also
elm_genlist_item_select_mode_set()

References elm_obj_genlist_item_select_mode_get().

void elm_genlist_item_select_mode_set ( Elm_Genlist_Item *  obj,
Elm_Object_Select_Mode  mode 
)

Set the genlist item's select mode.

elm_genlist_select_mode_set() changes item's select mode.

  • ELM_OBJECT_SELECT_MODE_DEFAULT : The item will only call their selection func and callback when first becoming selected. Any further clicks will do nothing, unless you set always select mode.
  • ELM_OBJECT_SELECT_MODE_ALWAYS : This means that, even if selected, every click will make the selected callbacks be called.
  • ELM_OBJECT_SELECT_MODE_NONE : This will turn off the ability to select the item entirely and they will neither appear selected nor call selected callback functions.
  • ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY : This will apply no-finger-size rule with ELM_OBJECT_SELECT_MODE_NONE. No-finger-size rule makes an item can be smaller than lower limit. Clickable objects should be bigger than human touch point device (your finger) for some touch or small screen devices. So it is enabled, the item can be shrink than predefined finger-size value. And the item will be updated.
See also
elm_genlist_item_select_mode_get()
Parameters
[in]modeThe selected mode

References elm_obj_genlist_item_select_mode_set().

Eina_Bool elm_genlist_item_selected_get ( const Elm_Genlist_Item *  obj)

Get whether a given genlist item is selected or not.

Returns
EINA_TRUE, if it's selected, EINA_FALSE otherwise
See also
elm_genlist_item_selected_set() for more details

References elm_obj_genlist_item_selected_get().

void elm_genlist_item_selected_set ( Elm_Genlist_Item *  obj,
Eina_Bool  selected 
)

Set whether a given genlist item is selected or not.

Use EINA_TRUE, to make it selected, EINA_FALSE to make it unselected

This sets the selected state of an item. If multi selection is not enabled on the containing genlist and selected is EINA_TRUE, any other previously selected items will get unselected in favor of this new one.

See also
elm_genlist_item_selected_get()
Parameters
[in]selectedthe selected state (EINA_TRUE selected, EINA_FALSE not selected)

References elm_obj_genlist_item_selected_set().

void elm_genlist_item_show ( Elm_Genlist_Item *  obj,
Elm_Genlist_Item_Scrollto_Type  type 
)

Show the portion of a genlist's internal list containing a given item, immediately.

This causes genlist to jump to the given item it and show it (by jumping to that position), if it is not fully visible.

See also
elm_genlist_item_bring_in()
Parameters
[in]typeThe position to bring in, the given item to. Elm_Genlist_Item_Scrollto_Type

References elm_obj_genlist_item_show().

Elm_Object_Item* elm_genlist_item_sorted_insert ( Elm_Genlist *  obj,
const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Genlist_Item_Type  type,
Eina_Compare_Cb  comp,
Evas_Smart_Cb  func,
const void *  func_data 
)

Insert a new item into the sorted genlist object.

Returns
A handle to the item added or NULL if not possible

This inserts an item in the genlist based on user defined comparison function. The two arguments passed to the function func are genlist item handles to compare.

See also
elm_genlist_item_append()
elm_genlist_item_prepend()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]typeItem type
[in]compThe function called for the sort
[in]funcConvenience function called when item selected
[in]func_dataData passed to func above.

References elm_obj_genlist_item_sorted_insert().

void elm_genlist_item_subitems_clear ( Elm_Genlist_Item *  obj)

Remove all sub-items (children) of the given item.

Parameters
itThe item

This removes all items that are children (and their descendants) of the given item it.

See also
elm_genlist_clear()
elm_object_item_del()

References elm_obj_genlist_item_subitems_clear().

unsigned int elm_genlist_item_subitems_count ( Elm_Genlist_Item *  obj)

Get the number of subitems of a given item.

This returns the number of subitems that an item possesses.

Since
1.9

References elm_obj_genlist_item_subitems_count().

const Eina_List* elm_genlist_item_subitems_get ( const Elm_Genlist_Item *  obj)

Get the list of subitems of a given item.

This returns the list of subitems that an item possesses. It cannot be changed.

Since
1.9

References elm_obj_genlist_item_subitems_get().

void elm_genlist_item_tooltip_content_cb_set ( Elm_Object_Item it,
Elm_Tooltip_Item_Content_Cb  func,
const void *  data,
Evas_Smart_Cb  del_cb 
)

Set the content to be shown in a given genlist item's tooltips.

Parameters
itThe genlist item.
funcThe function returning the tooltip contents.
dataWhat to provide to func as callback data/context.
del_cbCalled when data is not needed anymore, either when another callback replaces func, the tooltip is unset with elm_genlist_item_tooltip_unset() or the owner item dies. This callback receives as its first parameter the given data, being event_info the item handle.

This call will setup the tooltip's contents to item (analogous to elm_object_tooltip_content_cb_set(), but being item tooltips with higher precedence than object tooltips). It can have only one tooltip at a time, so any previous tooltip content will get removed. func (with data) will be called every time Elementary needs to show the tooltip and it should 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_genlist_item_tooltip_text_set().

References elm_wdg_item_tooltip_content_cb_set().

const char* elm_genlist_item_tooltip_style_get ( const Elm_Object_Item it)

Get the style set a given genlist item's tooltip.

Parameters
itgenlist item with tooltip already set on.
Returns
style the theme style in use, which defaults to "default". If the object does not have a tooltip set, then NULL is returned.
See also
elm_genlist_item_tooltip_style_set() for more details

References elm_wdg_item_tooltip_style_get().

void elm_genlist_item_tooltip_style_set ( Elm_Object_Item it,
const char *  style 
)

Set a different style for a given genlist item's tooltip.

Parameters
itgenlist item with tooltip set
stylethe theme style to use on tooltips (e.g. "default", "transparent", etc)

Tooltips can have alternate styles to be displayed on, which are defined by the theme set on Elementary. This function works analogously as elm_object_tooltip_style_set(), but here applied only to genlist item objects. The default style for tooltips is "default".

Note
before you set a style you should define a tooltip with elm_genlist_item_tooltip_content_cb_set() or elm_genlist_item_tooltip_text_set()
See also
elm_genlist_item_tooltip_style_get()

References elm_wdg_item_tooltip_style_set().

void elm_genlist_item_tooltip_text_set ( Elm_Object_Item it,
const char *  text 
)

Set the text to be shown in a given genlist item's tooltips.

Parameters
itThe genlist item
textThe text to set in the content

This call will setup the text to be used as tooltip to that item (analogous to elm_object_tooltip_text_set(), but being item tooltips with higher precedence than object tooltips). It can 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_genlist_item_tooltip_content_cb_set().

References elm_wdg_item_tooltip_text_set().

void elm_genlist_item_tooltip_unset ( Elm_Object_Item it)

Unset a tooltip from a given genlist item.

Parameters
itgenlist item to remove a previously set tooltip from.

This call removes any tooltip set on item. The callback provided as del_cb to elm_genlist_item_tooltip_content_cb_set() will be called to notify it is not used anymore (and have resources cleaned, if need be).

See also
elm_genlist_item_tooltip_content_cb_set()

References elm_wdg_item_tooltip_unset().

Elm_Genlist_Item_Type elm_genlist_item_type_get ( const Elm_Genlist_Item *  obj)

Get the Item's Type.

Returns
The item type.

This function returns the item's type. Normally the item's type. If it failed, return value is ELM_GENLIST_ITEM_MAX

References elm_obj_genlist_item_type_get().

void elm_genlist_item_update ( Elm_Genlist_Item *  obj)

Update all the contents of an item.

This updates an item by calling all the item class functions again to get the contents, texts and states. Use this when the original item data has changed and the changes are desired to be reflected.

Use elm_genlist_realized_items_update() to update all already realized items.

Note
This also updates internal genlist item object(edje_object as of now). So when this is called between mouse down and mouse up, mouse up event will be ignored because edje_object is deleted and created again by this API. If you want to avoid this, please use elm_genlist_item_fields_update.
See also
elm_genlist_realized_items_update()

References elm_obj_genlist_item_update().

unsigned int elm_genlist_items_count ( const Elm_Genlist *  obj)

Return how many items are currently in a list.

Returns
The total number of list items in the list

This behavior is O(1) and includes items which may or may not be realized.

References elm_obj_genlist_items_count().

Elm_Object_Item* elm_genlist_last_item_get ( const Elm_Genlist *  obj)

Get the last item in the genlist.

This returns the last item in the list.

Returns
The last item, or NULL if none

References elm_obj_genlist_last_item_get().

double elm_genlist_longpress_timeout_get ( const Elm_Genlist *  obj)

Get the timeout in seconds for the longpress event.

Returns
timeout in seconds
See also
elm_genlist_longpress_timeout_get()

References elm_obj_genlist_longpress_timeout_get().

void elm_genlist_longpress_timeout_set ( Elm_Genlist *  obj,
double  timeout 
)

Set the timeout in seconds for the longpress event.

This option will change how long it takes to send an event "longpressed" after the mouse down signal is sent to the list. If this event occurs, no "clicked" event will be sent.

Warning
If you set the longpress timeout value with this API, your genlist will not be affected by the longpress value of elementary config value later.
See also
elm_genlist_longpress_timeout_set()
Parameters
[in]timeouttimeout in seconds. Default is elm config value(1.0)

References elm_obj_genlist_longpress_timeout_set().

Elm_List_Mode elm_genlist_mode_get ( const Elm_Genlist *  obj)

Get the horizontal stretching mode.

Returns
The mode to use (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
See also
elm_genlist_mode_set()

References elm_obj_genlist_mode_get().

EINA_DEPRECATED const char* elm_genlist_mode_item_style_get ( const Evas_Object *  obj)

Get the mode item style of items in the genlist.

Parameters
objThe genlist object
Returns
The mode item style string, or NULL if none is specified

This is a constant string and simply defines the name of the style that will be used for mode animations. It can be NULL if you don't plan to use Genlist mode. See elm_genlist_item_mode_set() for more info.

EINA_DEPRECATED void elm_genlist_mode_item_style_set ( Evas_Object *  obj,
const char *  style 
)

Set the mode item style of items in the genlist.

Parameters
objThe genlist object
styleThe mode item style string, or NULL if none is desired

This is a constant string and simply defines the name of the style that will be used for mode animations. It can be NULL if you don't plan to use Genlist mode. See elm_genlist_item_mode_set() for more info.

void elm_genlist_mode_set ( Elm_Genlist *  obj,
Elm_List_Mode  mode 
)

This sets the horizontal stretching mode.

This sets the mode used for sizing items horizontally. Valid modes are #ELM_LIST_LIMIT, #ELM_LIST_SCROLL, and #ELM_LIST_COMPRESS. The default is #ELM_LIST_SCROLL. This mode means that if items are too wide to fit, the scroller will scroll horizontally. Otherwise items are expanded to fill the width of the viewport of the scroller. If it is #ELM_LIST_LIMIT, items will be expanded to the viewport width and limited to that size. If it is #ELM_LIST_COMPRESS, the item width will be fixed (restricted to a minimum of) to the list width when calculating its size in order to allow the height to be calculated based on it. This allows, for instance, text block to wrap lines if the Edje part is configured with "text.min: 0 1".

Note
#ELM_LIST_COMPRESS will make list resize slower as it will have to recalculate every item height again whenever the list width changes!
Homogeneous mode is for that all items in the genlist same width/height. With #ELM_LIST_COMPRESS, it makes genlist items to fast initializing. However there's no sub-objects in genlist which can be on the flying resizable (such as TEXTBLOCK). If then, some dynamic resizable objects in genlist would not diplayed properly.
See also
elm_genlist_mode_get()
Parameters
[in]modeThe mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).

References elm_obj_genlist_mode_set().

Eina_Bool elm_genlist_multi_select_get ( const Elm_Genlist *  obj)

Get if multi-selection in genlist is enabled or disabled.

Returns
Multi-select enabled/disabled (EINA_TRUE = enabled/EINA_FALSE = disabled). Default is EINA_FALSE.
See also
elm_genlist_multi_select_set()

References elm_obj_genlist_multi_select_get().

Elm_Object_Multi_Select_Mode elm_genlist_multi_select_mode_get ( const Elm_Genlist *  obj)

Get the genlist multi select mode.

Returns
The multi select mode (If getting mode fails, it returns #ELM_OBJECT_MULTI_SELECT_MODE_MAX)
See also
elm_genlist_multi_select_set()
elm_genlist_multi_select_mode_set()
Since
1.8

References elm_obj_genlist_multi_select_mode_get().

void elm_genlist_multi_select_mode_set ( Elm_Genlist *  obj,
Elm_Object_Multi_Select_Mode  mode 
)

Set the genlist multi select mode.

  • #ELM_OBJECT_MULTI_SELECT_MODE_DEFAULT : select/unselect items whenever each item is clicked.
  • #ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL : Only one item will be selected although multi-selection is enabled, if clicked without pressing control key. This mode is only available with multi-selection.
See also
elm_genlist_multi_select_set()
elm_genlist_multi_select_mode_get()
Since
1.8
Parameters
[in]modeThe multi select mode

References elm_obj_genlist_multi_select_mode_set().

void elm_genlist_multi_select_set ( Elm_Genlist *  obj,
Eina_Bool  multi 
)

Enable or disable multi-selection in the genlist.

This enables (EINA_TRUE) or disables (EINA_FALSE) multi-selection in the list. This allows more than 1 item to be selected. To retrieve the list of selected items, use elm_genlist_selected_items_get().

See also
elm_genlist_selected_items_get()
elm_genlist_multi_select_get()
Parameters
[in]multiMulti-select enable/disable. Default is disabled.

References elm_obj_genlist_multi_select_set().

Eina_List* elm_genlist_realized_items_get ( const Elm_Genlist *  obj)

Get a list of realized items in genlist.

Returns
The list of realized items, nor NULL if none are realized.

This returns a list of the realized items in the genlist. The list contains genlist item pointers. The list must be freed by the caller when done with eina_list_free(). The item pointers in the list are only valid so long as those items are not deleted or the genlist is not deleted.

See also
elm_genlist_realized_items_update()

References elm_obj_genlist_realized_items_get().

void elm_genlist_realized_items_update ( Elm_Genlist *  obj)

Update the contents of all realized items.

This updates all realized items by calling all the item class functions again to get the contents, texts and states. Use this when the original item data has changed and the changes are desired to be reflected.

To update just one item, use elm_genlist_item_update().

See also
elm_genlist_realized_items_get()
elm_genlist_item_update()

References elm_obj_genlist_realized_items_update().

Eina_Bool elm_genlist_reorder_mode_get ( const Elm_Genlist *  obj)

Get the reorder mode.

Returns
The reorder mode (EINA_TRUE = on, EINA_FALSE = off)

References elm_obj_genlist_reorder_mode_get().

void elm_genlist_reorder_mode_set ( Elm_Genlist *  obj,
Eina_Bool  reorder_mode 
)

Set reorder mode.

After turning on the reorder mode, longpress on normal item will trigger reordering of the item. You can move the item up and down. However, reorder does not work with group item.

Parameters
[in]reorder_modeThe reorder mode (EINA_TRUE = on, EINA_FALSE = off)

References elm_obj_genlist_reorder_mode_set().

EINA_DEPRECATED void elm_genlist_scroller_policy_get ( const Evas_Object *  obj,
Elm_Scroller_Policy *  policy_h,
Elm_Scroller_Policy *  policy_v 
)

Get the scrollbar policy.

Parameters
objThe genlist object
policy_hPointer to store the horizontal scrollbar policy.
policy_vPointer to store the vertical scrollbar policy.
Deprecated:
Use elm_scroller_policy_get() instead.
See also
elm_scroller_policy_get()

References elm_interface_scrollable_policy_get().

EINA_DEPRECATED void elm_genlist_scroller_policy_set ( Evas_Object *  obj,
Elm_Scroller_Policy  policy_h,
Elm_Scroller_Policy  policy_v 
)

Set the scrollbar policy.

Parameters
objThe genlist object
policy_hHorizontal scrollbar policy.
policy_vVertical scrollbar policy.

This sets the scrollbar visibility policy for the given genlist scroller. #ELM_SCROLLER_POLICY_AUTO means the scrollbar is made visible if it is needed, and otherwise kept hidden. #ELM_SCROLLER_POLICY_ON turns it on all the time, and #ELM_SCROLLER_POLICY_OFF always keeps it off. This applies respectively for the horizontal and vertical scrollbars. Default is #ELM_SCROLLER_POLICY_AUTO

Deprecated:
Use elm_scroller_policy_set() instead.
See also
elm_scroller_policy_set()

References elm_interface_scrollable_policy_set().

Elm_Object_Item* elm_genlist_search_by_text_item_get ( Elm_Genlist *  obj,
Elm_Object_Item item_to_search_from,
const char *  part_name,
const char *  pattern,
Elm_Glob_Match_Flags  flags 
)

Get genlist item by given string.

Returns
Pointer to the genlist item which matches search_string in case of success, otherwise returns NULL.

It takes pointer to the genlist item that will be used to start search from it.

This function uses globs (like "*.jpg") for searching and takes search flags as last parameter That is a bitfield with values to be ored together or 0 for no flags.

Since
1.11
Parameters
[in]item_to_search_fromPointer to item to start search from. If NULL search will be started from the first item of the genlist.
[in]part_nameName of the TEXT part of genlist item to search string in.
[in]patternThe search pattern.
[in]flagsSearch flags

References elm_obj_genlist_search_by_text_item_get().

Elm_Object_Select_Mode elm_genlist_select_mode_get ( const Elm_Genlist *  obj)

Get the genlist select mode.

Returns
The select mode (If getting mode fails, it returns #ELM_OBJECT_SELECT_MODE_MAX)
See also
elm_genlist_select_mode_set()

References elm_obj_genlist_select_mode_get().

void elm_genlist_select_mode_set ( Elm_Genlist *  obj,
Elm_Object_Select_Mode  mode 
)

Set the genlist select mode.

elm_genlist_select_mode_set() changes item select mode in the genlist widget.

  • #ELM_OBJECT_SELECT_MODE_DEFAULT : Items will call their selection func and callback once when first becoming selected. Any further clicks will do nothing, unless you set always select mode.
  • #ELM_OBJECT_SELECT_MODE_ALWAYS : This means that, even if selected, every click will make the selected callbacks be called.
  • #ELM_OBJECT_SELECT_MODE_NONE : This will turn off the ability to select items entirely and they will neither appear selected nor call selected callback functions.
See also
elm_genlist_select_mode_get()
Parameters
[in]modeThe select mode

References elm_obj_genlist_select_mode_set().

Elm_Object_Item* elm_genlist_selected_item_get ( const Elm_Genlist *  obj)

Get the selected item in the genlist.

Returns
The selected item, or NULL if none is selected.

This gets the selected item in the list (if multi-selection is enabled, only the item that was first selected in the list is returned - which is not very useful, so see elm_genlist_selected_items_get() for when multi-selection is used).

If no item is selected, NULL is returned.

See also
elm_genlist_selected_items_get()

References elm_obj_genlist_selected_item_get().

const Eina_List* elm_genlist_selected_items_get ( const Elm_Genlist *  obj)

Get a list of selected items in the genlist.

Returns
The list of selected items, or NULL if none are selected.

It returns a list of the selected items. This list pointer is only valid so long as the selection doesn't change (no items are selected or unselected, or unselected implicitly by deletion). The list contains genlist items pointers. The order of the items in this list is the order which they were selected, i.e. the first item in this list is the first item that was selected, and so on.

Note
If not in multi-select mode, consider using function elm_genlist_selected_item_get() instead.
See also
elm_genlist_multi_select_set()
elm_genlist_selected_item_get()

References elm_obj_genlist_selected_items_get().

Eina_Bool elm_genlist_tree_effect_enabled_get ( const Elm_Genlist *  obj)

Get Genlist tree effect.

Returns
The tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled

References elm_obj_genlist_tree_effect_enabled_get().

void elm_genlist_tree_effect_enabled_set ( Elm_Genlist *  obj,
Eina_Bool  enabled 
)

Set Genlist tree effect.

Parameters
[in]enabledThe tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled

References elm_obj_genlist_tree_effect_enabled_set().

EOAPI Elm_Object_Item* elm_obj_genlist_at_xy_item_get ( Evas_Coord  x,
Evas_Coord  y,
int *  posret 
)

Get the item that is at the x, y canvas coords.

Returns
The item at the coordinates or NULL if none

This returns the item at the given coordinates (which are canvas relative, not object-relative). If an item is at that coordinate, that item handle is returned, and if posret is not NULL, the integer pointed to is set to a value of -1, 0 or 1, depending if the coordinate is on the upper portion of that item (-1), on the middle section (0) or on the lower part (1). If NULL is returned as an item (no item found there), then posret may indicate -1 or 1 based if the coordinate is above or below all items respectively in the genlist.

Parameters
[in]xThe input x coordinate
[in]yThe input y coordinate
[out]posretThe position relative to the item returned here

Referenced by elm_genlist::at_xy_item_get(), and elm_genlist_at_xy_item_get().

EOAPI int elm_obj_genlist_block_count_get ( void  )

Get the maximum number of items within an item block.

Returns
Maximum number of items within an item block
See also
elm_genlist_block_count_set()

Referenced by elm_genlist::block_count_get(), and elm_genlist_block_count_get().

EOAPI void elm_obj_genlist_block_count_set ( int  count)

Set the maximum number of items within an item block.

This will configure the block count to tune to the target with particular performance matrix.

A block of objects will be used to reduce the number of operations due to many objects in the screen. It can determine the visibility, or if the object has changed, it theme needs to be updated, etc. doing this kind of calculation to the entire block, instead of per object.

The default value for the block count is enough for most lists, so unless you know you will have a lot of objects visible in the screen at the same time, don't try to change this.

See also
elm_genlist_block_count_get()
Implementation
Parameters
[in]countMaximum number of items within an item block. Default is 32.

Referenced by elm_genlist::block_count_set(), and elm_genlist_block_count_set().

EOAPI void elm_obj_genlist_clear ( void  )

Remove all items from a given genlist widget.

This removes (and deletes) all items in obj, leaving it empty.

See also
elm_object_item_del(), to remove just one item.

Referenced by elm_genlist::clear(), and elm_genlist_clear().

EOAPI Eina_Bool elm_obj_genlist_decorate_mode_get ( void  )

Get Genlist decorate mode.

Returns
The decorate mode status (EINA_TRUE = decorate mode, EINA_FALSE = normal mode

Referenced by elm_genlist::decorate_mode_get(), and elm_genlist_decorate_mode_get().

EOAPI void elm_obj_genlist_decorate_mode_set ( Eina_Bool  decorated)

Set Genlist decorate mode.

This sets Genlist decorate mode to all items.

Parameters
[in]decoratedThe decorate mode status (EINA_TRUE = decorate mode, EINA_FALSE = normal mode

Referenced by elm_genlist::decorate_mode_set(), and elm_genlist_decorate_mode_set().

EOAPI Elm_Object_Item* elm_obj_genlist_decorated_item_get ( void  )

Get active genlist mode item.

Returns
The active item for that current mode. Or NULL if no item is activated with any mode.

This function returns the item that was activated with a mode, by the function elm_genlist_item_decorate_mode_set().

See also
elm_genlist_item_decorate_mode_set()
elm_genlist_mode_get()

Referenced by elm_genlist::decorated_item_get(), and elm_genlist_decorated_item_get().

EOAPI Elm_Object_Item* elm_obj_genlist_first_item_get ( void  )

Get the first item in the genlist.

This returns the first item in the list.

Returns
The first item, or NULL if none

Referenced by elm_genlist_first_item_get(), and elm_genlist::first_item_get().

EOAPI Eina_Bool elm_obj_genlist_focus_on_selection_get ( void  )

Get whether focus upon item's selection mode is enabled.

Returns
The tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled)

Referenced by elm_genlist_focus_on_selection_get(), and elm_genlist::focus_on_selection_get().

EOAPI void elm_obj_genlist_focus_on_selection_set ( Eina_Bool  enabled)

Set focus upon items selection mode.

When enabled, every selection of an item inside the genlist will automatically set focus to its first focusable widget from the left. This is true of course if the selection was made by clicking an unfocusable area in an item or selecting it with a key movement. Clicking on a focusable widget inside an item will couse this particular item to get focus as usual.

Parameters
[in]enabledThe tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled)

Referenced by elm_genlist_focus_on_selection_set(), and elm_genlist::focus_on_selection_set().

EOAPI Eina_Bool elm_obj_genlist_highlight_mode_get ( void  )

Get whether the genlist items' should be highlighted when item selected.

Returns
EINA_TRUE means items can be highlighted. EINA_FALSE indicates they can't. If obj is NULL, EINA_FALSE is returned.
See also
elm_genlist_highlight_mode_set() for details.

Referenced by elm_genlist_highlight_mode_get(), and elm_genlist::highlight_mode_get().

EOAPI void elm_obj_genlist_highlight_mode_set ( Eina_Bool  highlight)

Set whether the genlist items should be highlighted on item selection.

This will turn on/off the highlight effect on item selection. The selected and clicked callback functions will still be called.

Highlight is enabled by default.

See also
elm_genlist_highlight_mode_get().
Parameters
[in]highlightEINA_TRUE to enable highlighting or EINA_FALSE to disable it.

Referenced by elm_genlist_highlight_mode_set(), and elm_genlist::highlight_mode_set().

EOAPI Eina_Bool elm_obj_genlist_homogeneous_get ( void  )

Get whether the homogeneous mode is enabled.

Returns
Assume the items within the genlist are of the same height and width (EINA_TRUE = on, EINA_FALSE = off)
See also
elm_genlist_homogeneous_set()

Referenced by elm_genlist_homogeneous_get(), and elm_genlist::homogeneous_get().

EOAPI void elm_obj_genlist_homogeneous_set ( Eina_Bool  homogeneous)

Enable/disable homogeneous mode.

This will enable the homogeneous mode where items are of the same height and width so that genlist may do the lazy-loading at its maximum (which increases the performance for scrolling the list). In the normal mode, genlist will pre-calculate all the items' sizes even though they are not in use. So items' callbacks are called many times than expected. But homogeneous mode will skip the item size pre-calculation process so items' callbacks are called only when the item is needed.

Note
This also works well with group index.
See also
elm_genlist_mode_set()
elm_genlist_homogeneous_get()
Parameters
[in]homogeneousAssume the items within the genlist are of the same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is EINA_FALSE.

Referenced by elm_genlist_homogeneous_set(), and elm_genlist::homogeneous_set().

EOAPI void elm_obj_genlist_item_all_contents_unset ( Eina_List **  l)

Unset all contents fetched by the item class.

This instructs genlist to release references to contents in the item, meaning that they will no longer be managed by genlist and are floating "orphans" that can be re-used elsewhere if the user wants to.

Parameters
[out]lThe contents list to return

Referenced by elm_genlist_item_all_contents_unset().

EOAPI Elm_Object_Item* elm_obj_genlist_item_append ( const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Genlist_Item_Type  type,
Evas_Smart_Cb  func,
const void *  func_data 
)

Append a new item in a given genlist widget.

Returns
A handle to the item added or NULL if not possible

This adds the given item to the end of the list or the end of the children list if the parent is given.

See also
elm_genlist_item_prepend()
elm_genlist_item_insert_before()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]typeItem type
[in]funcConvenience function called when the item is selected
[in]func_dataData passed to func above.

Referenced by elm_genlist_item_append(), and elm_genlist::item_append().

EOAPI void elm_obj_genlist_item_bring_in ( Elm_Genlist_Item_Scrollto_Type  type)

Animatedly bring in, to the visible area of a genlist, a given item on it.

This causes genlist to jump to the given item it and show it (by animatedly scrolling), if it is not fully visible. This may use animation and take a some time to do so.

See also
elm_genlist_item_show()
Parameters
[in]typeThe position to bring in, the given item to. Elm_Genlist_Item_Scrollto_Type

Referenced by elm_genlist_item_bring_in().

EOAPI const Elm_Genlist_Item_Class* elm_obj_genlist_item_class_get ( void  )

Get the Genlist Item class for the given Genlist Item.

This returns the Genlist_Item_Class for the given item. It can be used to examine the function pointers and item_style.

Referenced by elm_genlist_item_item_class_get().

EOAPI void elm_obj_genlist_item_class_update ( const Elm_Genlist_Item_Class itc)

Update the item class of an item.

This sets another class of the item, changing the way that it is displayed. After changing the item class, elm_genlist_item_update() is called on the item it.

Parameters
[in]itcThe item class for the item

Referenced by elm_genlist_item_item_class_update().

EOAPI const char* elm_obj_genlist_item_decorate_mode_get ( void  )

Get the item's decorate mode.

This function just returns the name of the item's decorate mode.

See also
elm_genlist_item_decorate_mode_set()
elm_genlist_decorated_item_get()

Referenced by elm_genlist_item_decorate_mode_get().

EOAPI void elm_obj_genlist_item_decorate_mode_set ( const char *  decorate_it_type,
Eina_Bool  decorate_it_set 
)

Activate a genlist mode on an item.

A genlist mode is a different way of selecting an item. Once a mode is activated on an item, any other selected item is immediately unselected. This feature provides an easy way of implementing a new kind of animation for selecting an item, without having to entirely rewrite the item style theme. However, the elm_genlist_selected_* API can't be used to get what item is activate for a mode.

The current item style will still be used, but applying a genlist mode to an item will select it using a different kind of animation.

The current active item for a mode can be found by elm_genlist_decorated_item_get().

The characteristics of genlist mode are:

  • Only one mode can be active at any time, and for only one item.
  • Genlist handles deactivating other items when one item is activated.
  • A mode is defined in the genlist theme (edc), and more modes can easily be added.
  • A mode style and the genlist item style are different things. They can be combined to provide a default style to the item, with some kind of animation for that item when the mode is activated.

When a mode is activated on an item, a new view for that item is created. The theme of this mode defines the animation that will be used to transit the item from the old view to the new view. This second (new) view will be active for that item while the mode is active on the item, and will be destroyed after the mode is totally deactivated from that item.

See also
elm_genlist_mode_get()
elm_genlist_decorated_item_get()
Parameters
[in]decorate_it_typeMode name
[in]decorate_it_setBoolean to define set or unset mode.

Referenced by elm_genlist_item_decorate_mode_set().

EOAPI void elm_obj_genlist_item_demote ( void  )

Demote an item to the end of the list.

Parameters
itThe item

Referenced by elm_genlist_item_demote().

EOAPI Eina_Bool elm_obj_genlist_item_expanded_get ( void  )

Get the expanded state of an item.

This gets the expanded state of an item.

See also
elm_genlist_item_expanded_set()

Referenced by elm_genlist_item_expanded_get().

EOAPI void elm_obj_genlist_item_expanded_set ( Eina_Bool  expanded)

Sets the expanded state of an item.

This function flags the item of type #ELM_GENLIST_ITEM_TREE as expanded or not.

The theme will respond to this change visually, and a signal "expanded" or "contracted" will be sent from the genlist with a pointer to the item that has been expanded/contracted.

Calling this function won't show or hide any child of this item (if it is a parent). You must manually delete and create them on the callbacks of the "expanded" or "contracted" signals.

See also
elm_genlist_item_expanded_get()
Parameters
[in]expandedThe expanded state (EINA_TRUE expanded, EINA_FALSE not expanded).

Referenced by elm_genlist_item_expanded_set().

EOAPI void elm_obj_genlist_item_fields_update ( const char *  parts,
Elm_Genlist_Item_Field_Type  itf 
)

Update the part of an item.

This updates an item's part by calling item's fetching functions again to get the contents, texts and states. Use this when the original item data has changed and the changes are desired to be reflected. Second parts argument is used for globbing to match '*', '?', and '.' It can be used at updating multi fields.

Use elm_genlist_realized_items_update() to update an item's all property.

See also
elm_genlist_item_update()
Parameters
[in]partsThe name of item's part
[in]itfThe type of item's part type

Referenced by elm_genlist_item_fields_update().

EOAPI Eina_Bool elm_obj_genlist_item_flip_get ( void  )

Get the flip state of a given genlist item.

This function returns the flip state of a given genlist item. If the parameter is invalid, it returns EINA_FALSE.

See also
elm_genlist_item_flip_set()

Referenced by elm_genlist_item_flip_get().

EOAPI void elm_obj_genlist_item_flip_set ( Eina_Bool  flip)

Set the flip state of a given genlist item.

(EINA_TRUE = on, EINA_FALSE = off)

This function sets the flip state of a given genlist item. Flip mode overrides current item object. It can be used for on-the-fly item replace. Flip mode can be used with/without decorate mode.

See also
elm_genlist_item_flip_get()
Parameters
[in]flipThe flip mode

Referenced by elm_genlist_item_flip_set().

EOAPI int elm_obj_genlist_item_index_get ( void  )

Get the index of the item.

It is only valid once displayed.

The index start from 1.

Referenced by elm_genlist_item_index_get().

EOAPI Elm_Object_Item* elm_obj_genlist_item_insert_after ( const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Object_Item after_it,
Elm_Genlist_Item_Type  type,
Evas_Smart_Cb  func,
const void *  func_data 
)

Insert an item after another in a genlist widget.

Returns
A handle to the item added or NULL if not possible

This inserts an item after another in the list. It will be in the same tree level or group as the item it is inserted after.

See also
elm_genlist_item_append()
elm_genlist_item_prepend()
elm_genlist_item_insert_before()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]after_itThe item to place this new one after.
[in]typeItem type
[in]funcConvenience function called when the item is selected
[in]func_dataData passed to func above.

Referenced by elm_genlist_item_insert_after(), and elm_genlist::item_insert_after().

EOAPI Elm_Object_Item* elm_obj_genlist_item_insert_before ( const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Object_Item before_it,
Elm_Genlist_Item_Type  type,
Evas_Smart_Cb  func,
const void *  func_data 
)

Insert an item before another in a genlist widget.

Returns
A handle to the item added or NULL if not possible

This inserts an item before another in the list. It will be in the same tree level or group as the item it is inserted before.

See also
elm_genlist_item_append()
elm_genlist_item_prepend()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]before_itThe item to place this new one before.
[in]typeItem type
[in]funcConvenience function called when the item is selected
[in]func_dataData passed to func above.

Referenced by elm_genlist_item_insert_before(), and elm_genlist::item_insert_before().

EOAPI Elm_Object_Item* elm_obj_genlist_item_next_get ( void  )

Get the next item in a genlist widget's internal list of items, given a handle to one of those items.

This returns the item placed after the item, on the container genlist.

See also
elm_genlist_item_prev_get()

Referenced by elm_genlist_item_next_get().

EOAPI Elm_Object_Item* elm_obj_genlist_item_parent_get ( void  )

Get the parent item of the given item.

This returns the item that was specified as parent of the item it on elm_genlist_item_append() and insertion related functions.

Referenced by elm_genlist_item_parent_get().

EOAPI Elm_Object_Item* elm_obj_genlist_item_prepend ( const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Genlist_Item_Type  type,
Evas_Smart_Cb  func,
const void *  func_data 
)

Prepend a new item in a given genlist widget.

Returns
A handle to the item added or NULL if not possible

This adds an item to the beginning of the list or beginning of the children of the parent if given.

See also
elm_genlist_item_append()
elm_genlist_item_insert_before()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]typeItem type
[in]funcConvenience function called when the item is selected
[in]func_dataData passed to func above.

Referenced by elm_genlist_item_prepend(), and elm_genlist::item_prepend().

EOAPI Elm_Object_Item* elm_obj_genlist_item_prev_get ( void  )

Get the previous item in a genlist widget's internal list of items, given a handle to one of those items.

This returns the item placed before the item, on the container genlist.

See also
elm_genlist_item_next_get()

Referenced by elm_genlist_item_prev_get().

EOAPI void elm_obj_genlist_item_promote ( void  )

Promote an item to the top of the list.

Parameters
itThe item

Referenced by elm_genlist_item_promote().

EOAPI Elm_Object_Select_Mode elm_obj_genlist_item_select_mode_get ( void  )

Get the genlist item's select mode.

Returns
The select mode (If getting mode fails, it returns ELM_OBJECT_SELECT_MODE_MAX)
See also
elm_genlist_item_select_mode_set()

Referenced by elm_genlist_item_select_mode_get().

EOAPI void elm_obj_genlist_item_select_mode_set ( Elm_Object_Select_Mode  mode)

Set the genlist item's select mode.

elm_genlist_select_mode_set() changes item's select mode.

  • ELM_OBJECT_SELECT_MODE_DEFAULT : The item will only call their selection func and callback when first becoming selected. Any further clicks will do nothing, unless you set always select mode.
  • ELM_OBJECT_SELECT_MODE_ALWAYS : This means that, even if selected, every click will make the selected callbacks be called.
  • ELM_OBJECT_SELECT_MODE_NONE : This will turn off the ability to select the item entirely and they will neither appear selected nor call selected callback functions.
  • ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY : This will apply no-finger-size rule with ELM_OBJECT_SELECT_MODE_NONE. No-finger-size rule makes an item can be smaller than lower limit. Clickable objects should be bigger than human touch point device (your finger) for some touch or small screen devices. So it is enabled, the item can be shrink than predefined finger-size value. And the item will be updated.
See also
elm_genlist_item_select_mode_get()
Parameters
[in]modeThe selected mode

Referenced by elm_genlist_item_select_mode_set().

EOAPI Eina_Bool elm_obj_genlist_item_selected_get ( void  )

Get whether a given genlist item is selected or not.

Returns
EINA_TRUE, if it's selected, EINA_FALSE otherwise
See also
elm_genlist_item_selected_set() for more details

Referenced by elm_genlist_item_selected_get().

EOAPI void elm_obj_genlist_item_selected_set ( Eina_Bool  selected)

Set whether a given genlist item is selected or not.

Use EINA_TRUE, to make it selected, EINA_FALSE to make it unselected

This sets the selected state of an item. If multi selection is not enabled on the containing genlist and selected is EINA_TRUE, any other previously selected items will get unselected in favor of this new one.

See also
elm_genlist_item_selected_get()
Parameters
[in]selectedthe selected state (EINA_TRUE selected, EINA_FALSE not selected)

Referenced by elm_genlist_item_selected_set().

EOAPI void elm_obj_genlist_item_show ( Elm_Genlist_Item_Scrollto_Type  type)

Show the portion of a genlist's internal list containing a given item, immediately.

This causes genlist to jump to the given item it and show it (by jumping to that position), if it is not fully visible.

See also
elm_genlist_item_bring_in()
Parameters
[in]typeThe position to bring in, the given item to. Elm_Genlist_Item_Scrollto_Type

Referenced by elm_genlist_item_show().

EOAPI Elm_Object_Item* elm_obj_genlist_item_sorted_insert ( const Elm_Genlist_Item_Class itc,
const void *  data,
Elm_Object_Item parent,
Elm_Genlist_Item_Type  type,
Eina_Compare_Cb  comp,
Evas_Smart_Cb  func,
const void *  func_data 
)

Insert a new item into the sorted genlist object.

Returns
A handle to the item added or NULL if not possible

This inserts an item in the genlist based on user defined comparison function. The two arguments passed to the function func are genlist item handles to compare.

See also
elm_genlist_item_append()
elm_genlist_item_prepend()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
[in]itcThe item class for the item
[in]dataThe item data
[in]parentThe parent item, or NULL if none
[in]typeItem type
[in]compThe function called for the sort
[in]funcConvenience function called when item selected
[in]func_dataData passed to func above.

Referenced by elm_genlist_item_sorted_insert(), and elm_genlist::item_sorted_insert().

EOAPI void elm_obj_genlist_item_subitems_clear ( void  )

Remove all sub-items (children) of the given item.

Parameters
itThe item

This removes all items that are children (and their descendants) of the given item it.

See also
elm_genlist_clear()
elm_object_item_del()

Referenced by elm_genlist_item_subitems_clear().

EOAPI unsigned int elm_obj_genlist_item_subitems_count ( void  )

Get the number of subitems of a given item.

This returns the number of subitems that an item possesses.

Since
1.9

Referenced by elm_genlist_item_subitems_count().

EOAPI const Eina_List* elm_obj_genlist_item_subitems_get ( void  )

Get the list of subitems of a given item.

This returns the list of subitems that an item possesses. It cannot be changed.

Since
1.9

Referenced by elm_genlist_item_subitems_get().

EOAPI Elm_Genlist_Item_Type elm_obj_genlist_item_type_get ( void  )

Get the Item's Type.

Returns
The item type.

This function returns the item's type. Normally the item's type. If it failed, return value is ELM_GENLIST_ITEM_MAX

Referenced by elm_genlist_item_type_get().

EOAPI void elm_obj_genlist_item_update ( void  )

Update all the contents of an item.

This updates an item by calling all the item class functions again to get the contents, texts and states. Use this when the original item data has changed and the changes are desired to be reflected.

Use elm_genlist_realized_items_update() to update all already realized items.

Note
This also updates internal genlist item object(edje_object as of now). So when this is called between mouse down and mouse up, mouse up event will be ignored because edje_object is deleted and created again by this API. If you want to avoid this, please use elm_genlist_item_fields_update.
See also
elm_genlist_realized_items_update()

Referenced by elm_genlist_item_update().

EOAPI unsigned int elm_obj_genlist_items_count ( void  )

Return how many items are currently in a list.

Returns
The total number of list items in the list

This behavior is O(1) and includes items which may or may not be realized.

Referenced by elm_genlist_items_count(), and elm_genlist::items_count().

EOAPI Elm_Object_Item* elm_obj_genlist_last_item_get ( void  )

Get the last item in the genlist.

This returns the last item in the list.

Returns
The last item, or NULL if none

Referenced by elm_genlist_last_item_get(), and elm_genlist::last_item_get().

EOAPI double elm_obj_genlist_longpress_timeout_get ( void  )

Get the timeout in seconds for the longpress event.

Returns
timeout in seconds
See also
elm_genlist_longpress_timeout_get()

Referenced by elm_genlist_longpress_timeout_get(), and elm_genlist::longpress_timeout_get().

EOAPI void elm_obj_genlist_longpress_timeout_set ( double  timeout)

Set the timeout in seconds for the longpress event.

This option will change how long it takes to send an event "longpressed" after the mouse down signal is sent to the list. If this event occurs, no "clicked" event will be sent.

Warning
If you set the longpress timeout value with this API, your genlist will not be affected by the longpress value of elementary config value later.
See also
elm_genlist_longpress_timeout_set()
Parameters
[in]timeouttimeout in seconds. Default is elm config value(1.0)

Referenced by elm_genlist_longpress_timeout_set(), and elm_genlist::longpress_timeout_set().

EOAPI Elm_List_Mode elm_obj_genlist_mode_get ( void  )

Get the horizontal stretching mode.

Returns
The mode to use (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
See also
elm_genlist_mode_set()

Referenced by elm_genlist_mode_get(), and elm_genlist::mode_get().

EOAPI void elm_obj_genlist_mode_set ( Elm_List_Mode  mode)

This sets the horizontal stretching mode.

This sets the mode used for sizing items horizontally. Valid modes are #ELM_LIST_LIMIT, #ELM_LIST_SCROLL, and #ELM_LIST_COMPRESS. The default is #ELM_LIST_SCROLL. This mode means that if items are too wide to fit, the scroller will scroll horizontally. Otherwise items are expanded to fill the width of the viewport of the scroller. If it is #ELM_LIST_LIMIT, items will be expanded to the viewport width and limited to that size. If it is #ELM_LIST_COMPRESS, the item width will be fixed (restricted to a minimum of) to the list width when calculating its size in order to allow the height to be calculated based on it. This allows, for instance, text block to wrap lines if the Edje part is configured with "text.min: 0 1".

Note
#ELM_LIST_COMPRESS will make list resize slower as it will have to recalculate every item height again whenever the list width changes!
Homogeneous mode is for that all items in the genlist same width/height. With #ELM_LIST_COMPRESS, it makes genlist items to fast initializing. However there's no sub-objects in genlist which can be on the flying resizable (such as TEXTBLOCK). If then, some dynamic resizable objects in genlist would not diplayed properly.
See also
elm_genlist_mode_get()
Parameters
[in]modeThe mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).

Referenced by elm_genlist_mode_set(), and elm_genlist::mode_set().

EOAPI Eina_Bool elm_obj_genlist_multi_select_get ( void  )

Get if multi-selection in genlist is enabled or disabled.

Returns
Multi-select enabled/disabled (EINA_TRUE = enabled/EINA_FALSE = disabled). Default is EINA_FALSE.
See also
elm_genlist_multi_select_set()

Referenced by elm_genlist_multi_select_get(), and elm_genlist::multi_select_get().

EOAPI Elm_Object_Multi_Select_Mode elm_obj_genlist_multi_select_mode_get ( void  )

Get the genlist multi select mode.

Returns
The multi select mode (If getting mode fails, it returns #ELM_OBJECT_MULTI_SELECT_MODE_MAX)
See also
elm_genlist_multi_select_set()
elm_genlist_multi_select_mode_set()
Since
1.8

Referenced by elm_genlist_multi_select_mode_get(), and elm_genlist::multi_select_mode_get().

EOAPI void elm_obj_genlist_multi_select_mode_set ( Elm_Object_Multi_Select_Mode  mode)

Set the genlist multi select mode.

  • #ELM_OBJECT_MULTI_SELECT_MODE_DEFAULT : select/unselect items whenever each item is clicked.
  • #ELM_OBJECT_MULTI_SELECT_MODE_WITH_CONTROL : Only one item will be selected although multi-selection is enabled, if clicked without pressing control key. This mode is only available with multi-selection.
See also
elm_genlist_multi_select_set()
elm_genlist_multi_select_mode_get()
Since
1.8
Parameters
[in]modeThe multi select mode

Referenced by elm_genlist_multi_select_mode_set(), and elm_genlist::multi_select_mode_set().

EOAPI void elm_obj_genlist_multi_select_set ( Eina_Bool  multi)

Enable or disable multi-selection in the genlist.

This enables (EINA_TRUE) or disables (EINA_FALSE) multi-selection in the list. This allows more than 1 item to be selected. To retrieve the list of selected items, use elm_genlist_selected_items_get().

See also
elm_genlist_selected_items_get()
elm_genlist_multi_select_get()
Parameters
[in]multiMulti-select enable/disable. Default is disabled.

Referenced by elm_genlist_multi_select_set(), and elm_genlist::multi_select_set().

EOAPI Eina_List* elm_obj_genlist_realized_items_get ( void  )

Get a list of realized items in genlist.

Returns
The list of realized items, nor NULL if none are realized.

This returns a list of the realized items in the genlist. The list contains genlist item pointers. The list must be freed by the caller when done with eina_list_free(). The item pointers in the list are only valid so long as those items are not deleted or the genlist is not deleted.

See also
elm_genlist_realized_items_update()

Referenced by elm_genlist_realized_items_get(), and elm_genlist::realized_items_get().

EOAPI void elm_obj_genlist_realized_items_update ( void  )

Update the contents of all realized items.

This updates all realized items by calling all the item class functions again to get the contents, texts and states. Use this when the original item data has changed and the changes are desired to be reflected.

To update just one item, use elm_genlist_item_update().

See also
elm_genlist_realized_items_get()
elm_genlist_item_update()

Referenced by elm_genlist_realized_items_update(), and elm_genlist::realized_items_update().

EOAPI Eina_Bool elm_obj_genlist_reorder_mode_get ( void  )

Get the reorder mode.

Returns
The reorder mode (EINA_TRUE = on, EINA_FALSE = off)

Referenced by elm_genlist_reorder_mode_get(), and elm_genlist::reorder_mode_get().

EOAPI void elm_obj_genlist_reorder_mode_set ( Eina_Bool  reorder_mode)

Set reorder mode.

After turning on the reorder mode, longpress on normal item will trigger reordering of the item. You can move the item up and down. However, reorder does not work with group item.

Parameters
[in]reorder_modeThe reorder mode (EINA_TRUE = on, EINA_FALSE = off)

Referenced by elm_genlist_reorder_mode_set(), and elm_genlist::reorder_mode_set().

EOAPI Elm_Object_Item* elm_obj_genlist_search_by_text_item_get ( Elm_Object_Item item_to_search_from,
const char *  part_name,
const char *  pattern,
Elm_Glob_Match_Flags  flags 
)

Get genlist item by given string.

Returns
Pointer to the genlist item which matches search_string in case of success, otherwise returns NULL.

It takes pointer to the genlist item that will be used to start search from it.

This function uses globs (like "*.jpg") for searching and takes search flags as last parameter That is a bitfield with values to be ored together or 0 for no flags.

Since
1.11
Parameters
[in]item_to_search_fromPointer to item to start search from. If NULL search will be started from the first item of the genlist.
[in]part_nameName of the TEXT part of genlist item to search string in.
[in]patternThe search pattern.
[in]flagsSearch flags

Referenced by elm_genlist_search_by_text_item_get(), and elm_genlist::search_by_text_item_get().

EOAPI Elm_Object_Select_Mode elm_obj_genlist_select_mode_get ( void  )

Get the genlist select mode.

Returns
The select mode (If getting mode fails, it returns #ELM_OBJECT_SELECT_MODE_MAX)
See also
elm_genlist_select_mode_set()

Referenced by elm_genlist_select_mode_get(), and elm_genlist::select_mode_get().

EOAPI void elm_obj_genlist_select_mode_set ( Elm_Object_Select_Mode  mode)

Set the genlist select mode.

elm_genlist_select_mode_set() changes item select mode in the genlist widget.

  • #ELM_OBJECT_SELECT_MODE_DEFAULT : Items will call their selection func and callback once when first becoming selected. Any further clicks will do nothing, unless you set always select mode.
  • #ELM_OBJECT_SELECT_MODE_ALWAYS : This means that, even if selected, every click will make the selected callbacks be called.
  • #ELM_OBJECT_SELECT_MODE_NONE : This will turn off the ability to select items entirely and they will neither appear selected nor call selected callback functions.
See also
elm_genlist_select_mode_get()
Parameters
[in]modeThe select mode

Referenced by elm_genlist_select_mode_set(), and elm_genlist::select_mode_set().

EOAPI Elm_Object_Item* elm_obj_genlist_selected_item_get ( void  )

Get the selected item in the genlist.

Returns
The selected item, or NULL if none is selected.

This gets the selected item in the list (if multi-selection is enabled, only the item that was first selected in the list is returned - which is not very useful, so see elm_genlist_selected_items_get() for when multi-selection is used).

If no item is selected, NULL is returned.

See also
elm_genlist_selected_items_get()

Referenced by elm_genlist_selected_item_get(), and elm_genlist::selected_item_get().

EOAPI const Eina_List* elm_obj_genlist_selected_items_get ( void  )

Get a list of selected items in the genlist.

Returns
The list of selected items, or NULL if none are selected.

It returns a list of the selected items. This list pointer is only valid so long as the selection doesn't change (no items are selected or unselected, or unselected implicitly by deletion). The list contains genlist items pointers. The order of the items in this list is the order which they were selected, i.e. the first item in this list is the first item that was selected, and so on.

Note
If not in multi-select mode, consider using function elm_genlist_selected_item_get() instead.
See also
elm_genlist_multi_select_set()
elm_genlist_selected_item_get()

Referenced by elm_genlist_selected_items_get(), and elm_genlist::selected_items_get().

EOAPI Eina_Bool elm_obj_genlist_tree_effect_enabled_get ( void  )

Get Genlist tree effect.

Returns
The tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled

Referenced by elm_genlist_tree_effect_enabled_get(), and elm_genlist::tree_effect_enabled_get().

EOAPI void elm_obj_genlist_tree_effect_enabled_set ( Eina_Bool  enabled)

Set Genlist tree effect.

Parameters
[in]enabledThe tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled

Referenced by elm_genlist_tree_effect_enabled_set(), and elm_genlist::tree_effect_enabled_set().

Elm_Object_Item* elm_genlist::first_item_get ( ) const
inline

Get the first item in the genlist.

This returns the first item in the list.

Returns
The first item, or NULL if none

References elm_obj_genlist_first_item_get().

bool elm_genlist::focus_on_selection_get ( ) const
inline

Get whether focus upon item's selection mode is enabled.

Returns
The tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled)
Parameters
enabledThe tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled)

References elm_obj_genlist_focus_on_selection_get().

void elm_genlist::focus_on_selection_set ( bool  enabled_) const
inline

Get whether focus upon item's selection mode is enabled.

Returns
The tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled)
Parameters
enabledThe tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled)

References elm_obj_genlist_focus_on_selection_set().

bool elm_genlist::highlight_mode_get ( ) const
inline

Get whether the genlist items' should be highlighted when item selected.

Returns
EINA_TRUE means items can be highlighted. EINA_FALSE indicates they can't. If obj is NULL, EINA_FALSE is returned.
See also
elm_genlist_highlight_mode_set() for details.
Parameters
highlightEINA_TRUE to enable highlighting or EINA_FALSE to disable it.

References elm_obj_genlist_highlight_mode_get().

void elm_genlist::highlight_mode_set ( bool  highlight_) const
inline

Get whether the genlist items' should be highlighted when item selected.

Returns
EINA_TRUE means items can be highlighted. EINA_FALSE indicates they can't. If obj is NULL, EINA_FALSE is returned.
See also
elm_genlist_highlight_mode_set() for details.
Parameters
highlightEINA_TRUE to enable highlighting or EINA_FALSE to disable it.

References elm_obj_genlist_highlight_mode_set().

bool elm_genlist::homogeneous_get ( ) const
inline

Get whether the homogeneous mode is enabled.

Returns
Assume the items within the genlist are of the same height and width (EINA_TRUE = on, EINA_FALSE = off)
See also
elm_genlist_homogeneous_set()
Parameters
homogeneousAssume the items within the genlist are of the same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is EINA_FALSE.

References elm_obj_genlist_homogeneous_get().

void elm_genlist::homogeneous_set ( bool  homogeneous_) const
inline

Get whether the homogeneous mode is enabled.

Returns
Assume the items within the genlist are of the same height and width (EINA_TRUE = on, EINA_FALSE = off)
See also
elm_genlist_homogeneous_set()
Parameters
homogeneousAssume the items within the genlist are of the same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is EINA_FALSE.

References elm_obj_genlist_homogeneous_set().

Elm_Object_Item* elm_genlist::item_append ( const Elm_Genlist_Item_Class itc_,
const void *  data_,
Elm_Object_Item parent_,
Elm_Genlist_Item_Type  type_,
Evas_Smart_Cb  func_,
const void *  func_data_ 
) const
inline

Append a new item in a given genlist widget.

Returns
A handle to the item added or NULL if not possible

This adds the given item to the end of the list or the end of the children list if the parent is given.

See also
elm_genlist_item_prepend()
elm_genlist_item_insert_before()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
itcThe item class for the item
dataThe item data
parentThe parent item, or NULL if none
typeItem type
funcConvenience function called when the item is selected
func_dataData passed to func above.

References elm_obj_genlist_item_append().

Elm_Object_Item* elm_genlist::item_insert_after ( const Elm_Genlist_Item_Class itc_,
const void *  data_,
Elm_Object_Item parent_,
Elm_Object_Item after_it_,
Elm_Genlist_Item_Type  type_,
Evas_Smart_Cb  func_,
const void *  func_data_ 
) const
inline

Insert an item after another in a genlist widget.

Returns
A handle to the item added or NULL if not possible

This inserts an item after another in the list. It will be in the same tree level or group as the item it is inserted after.

See also
elm_genlist_item_append()
elm_genlist_item_prepend()
elm_genlist_item_insert_before()
elm_object_item_del()
Parameters
itcThe item class for the item
dataThe item data
parentThe parent item, or NULL if none
after_itThe item to place this new one after.
typeItem type
funcConvenience function called when the item is selected
func_dataData passed to func above.

References elm_obj_genlist_item_insert_after().

Elm_Object_Item* elm_genlist::item_insert_before ( const Elm_Genlist_Item_Class itc_,
const void *  data_,
Elm_Object_Item parent_,
Elm_Object_Item before_it_,
Elm_Genlist_Item_Type  type_,
Evas_Smart_Cb  func_,
const void *  func_data_ 
) const
inline

Insert an item before another in a genlist widget.

Returns
A handle to the item added or NULL if not possible

This inserts an item before another in the list. It will be in the same tree level or group as the item it is inserted before.

See also
elm_genlist_item_append()
elm_genlist_item_prepend()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
itcThe item class for the item
dataThe item data
parentThe parent item, or NULL if none
before_itThe item to place this new one before.
typeItem type
funcConvenience function called when the item is selected
func_dataData passed to func above.

References elm_obj_genlist_item_insert_before().

Elm_Object_Item* elm_genlist::item_prepend ( const Elm_Genlist_Item_Class itc_,
const void *  data_,
Elm_Object_Item parent_,
Elm_Genlist_Item_Type  type_,
Evas_Smart_Cb  func_,
const void *  func_data_ 
) const
inline

Prepend a new item in a given genlist widget.

Returns
A handle to the item added or NULL if not possible

This adds an item to the beginning of the list or beginning of the children of the parent if given.

See also
elm_genlist_item_append()
elm_genlist_item_insert_before()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
itcThe item class for the item
dataThe item data
parentThe parent item, or NULL if none
typeItem type
funcConvenience function called when the item is selected
func_dataData passed to func above.

References elm_obj_genlist_item_prepend().

Elm_Object_Item* elm_genlist::item_sorted_insert ( const Elm_Genlist_Item_Class itc_,
const void *  data_,
Elm_Object_Item parent_,
Elm_Genlist_Item_Type  type_,
Eina_Compare_Cb  comp_,
Evas_Smart_Cb  func_,
const void *  func_data_ 
) const
inline

Insert a new item into the sorted genlist object.

Returns
A handle to the item added or NULL if not possible

This inserts an item in the genlist based on user defined comparison function. The two arguments passed to the function func are genlist item handles to compare.

See also
elm_genlist_item_append()
elm_genlist_item_prepend()
elm_genlist_item_insert_after()
elm_object_item_del()
Parameters
itcThe item class for the item
dataThe item data
parentThe parent item, or NULL if none
typeItem type
compThe function called for the sort
funcConvenience function called when item selected
func_dataData passed to func above.

References elm_obj_genlist_item_sorted_insert().

unsigned int elm_genlist::items_count ( ) const
inline

Return how many items are currently in a list.

Returns
The total number of list items in the list

This behavior is O(1) and includes items which may or may not be realized.

References elm_obj_genlist_items_count().

Elm_Object_Item* elm_genlist::last_item_get ( ) const
inline

Get the last item in the genlist.

This returns the last item in the list.

Returns
The last item, or NULL if none

References elm_obj_genlist_last_item_get().

double elm_genlist::longpress_timeout_get ( ) const
inline

Get the timeout in seconds for the longpress event.

Returns
timeout in seconds
See also
elm_genlist_longpress_timeout_get()
Parameters
timeouttimeout in seconds. Default is elm config value(1.0)

References elm_obj_genlist_longpress_timeout_get().

void elm_genlist::longpress_timeout_set ( double  timeout_) const
inline

Get the timeout in seconds for the longpress event.

Returns
timeout in seconds
See also
elm_genlist_longpress_timeout_get()
Parameters
timeouttimeout in seconds. Default is elm config value(1.0)

References elm_obj_genlist_longpress_timeout_set().

Elm_List_Mode elm_genlist::mode_get ( ) const
inline

Get the horizontal stretching mode.

Returns
The mode to use (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
See also
elm_genlist_mode_set()
Parameters
modeThe mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).

References elm_obj_genlist_mode_get().

void elm_genlist::mode_set ( Elm_List_Mode  mode_) const
inline

Get the horizontal stretching mode.

Returns
The mode to use (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
See also
elm_genlist_mode_set()
Parameters
modeThe mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).

References elm_obj_genlist_mode_set().

bool elm_genlist::multi_select_get ( ) const
inline

Get if multi-selection in genlist is enabled or disabled.

Returns
Multi-select enabled/disabled (EINA_TRUE = enabled/EINA_FALSE = disabled). Default is EINA_FALSE.
See also
elm_genlist_multi_select_set()
Parameters
multiMulti-select enable/disable. Default is disabled.

References elm_obj_genlist_multi_select_get().

Elm_Object_Multi_Select_Mode elm_genlist::multi_select_mode_get ( ) const
inline

Get the genlist multi select mode.

Returns
The multi select mode (If getting mode is failed, it returns ELM_OBJECT_MULTI_SELECT_MODE_MAX)
See also
elm_genlist_multi_select_set()
elm_genlist_multi_select_mode_set()
Since
1.8
Parameters
modeThe multi select mode

References elm_obj_genlist_multi_select_mode_get().

void elm_genlist::multi_select_mode_set ( Elm_Object_Multi_Select_Mode  mode_) const
inline

Get the genlist multi select mode.

Returns
The multi select mode (If getting mode is failed, it returns ELM_OBJECT_MULTI_SELECT_MODE_MAX)
See also
elm_genlist_multi_select_set()
elm_genlist_multi_select_mode_set()
Since
1.8
Parameters
modeThe multi select mode

References elm_obj_genlist_multi_select_mode_set().

void elm_genlist::multi_select_set ( bool  multi_) const
inline

Get if multi-selection in genlist is enabled or disabled.

Returns
Multi-select enabled/disabled (EINA_TRUE = enabled/EINA_FALSE = disabled). Default is EINA_FALSE.
See also
elm_genlist_multi_select_set()
Parameters
multiMulti-select enable/disable. Default is disabled.

References elm_obj_genlist_multi_select_set().

Eina_List* elm_genlist::realized_items_get ( ) const
inline

Get a list of realized items in genlist.

Returns
The list of realized items, nor NULL if none are realized.

This returns a list of the realized items in the genlist. The list contains genlist item pointers. The list must be freed by the caller when done with eina_list_free(). The item pointers in the list are only valid so long as those items are not deleted or the genlist is not deleted.

See also
elm_genlist_realized_items_update()

References elm_obj_genlist_realized_items_get().

void elm_genlist::realized_items_update ( ) const
inline

Update the contents of all realized items.

This updates all realized items by calling all the item class functions again to get the contents, texts and states. Use this when the original item data has changed and the changes are desired to be reflected.

To update just one item, use elm_genlist_item_update().

See also
elm_genlist_realized_items_get()
elm_genlist_item_update()

References elm_obj_genlist_realized_items_update().

bool elm_genlist::reorder_mode_get ( ) const
inline

Get the reorder mode.

Returns
The reorder mode (EINA_TRUE = on, EINA_FALSE = off)
Parameters
reorder_modeThe reorder mode (EINA_TRUE = on, EINA_FALSE = off)

References elm_obj_genlist_reorder_mode_get().

void elm_genlist::reorder_mode_set ( bool  reorder_mode_) const
inline

Get the reorder mode.

Returns
The reorder mode (EINA_TRUE = on, EINA_FALSE = off)
Parameters
reorder_modeThe reorder mode (EINA_TRUE = on, EINA_FALSE = off)

References elm_obj_genlist_reorder_mode_set().

Elm_Object_Item* elm_genlist::search_by_text_item_get ( Elm_Object_Item item_to_search_from_,
std::string  part_name_,
std::string  pattern_,
Elm_Glob_Match_Flags  flags_ 
) const
inline

Get genlist item by given string.

Returns
Pointer to the genlist item which matches search_string in case of success, otherwise returns NULL.

It takes pointer to the genlist item that will be used to start search from it.

This function uses globs (like "*.jpg") for searching and takes search flags as last parameter That is a bitfield with values to be ored together or 0 for no flags.

Since
1.11
Parameters
item_to_search_fromPointer to item to start search from. If NULL search will be started from the first item of the genlist.
part_nameName of the TEXT part of genlist item to search string in.
patternThe search pattern.
flagsSearch flags

References elm_obj_genlist_search_by_text_item_get().

Elm_Object_Select_Mode elm_genlist::select_mode_get ( ) const
inline

Get the genlist select mode.

Returns
The select mode (If getting mode is failed, it returns ELM_OBJECT_SELECT_MODE_MAX)
See also
elm_genlist_select_mode_set()
Parameters
modeThe select mode

References elm_obj_genlist_select_mode_get().

void elm_genlist::select_mode_set ( Elm_Object_Select_Mode  mode_) const
inline

Get the genlist select mode.

Returns
The select mode (If getting mode is failed, it returns ELM_OBJECT_SELECT_MODE_MAX)
See also
elm_genlist_select_mode_set()
Parameters
modeThe select mode

References elm_obj_genlist_select_mode_set().

Elm_Object_Item* elm_genlist::selected_item_get ( ) const
inline

Get the selected item in the genlist.

Returns
The selected item, or NULL if none is selected.

This gets the selected item in the list (if multi-selection is enabled, only the item that was first selected in the list is returned - which is not very useful, so see elm_genlist_selected_items_get() for when multi-selection is used).

If no item is selected, NULL is returned.

See also
elm_genlist_selected_items_get()

References elm_obj_genlist_selected_item_get().

const Eina_List* elm_genlist::selected_items_get ( ) const
inline

Get a list of selected items in the genlist.

Returns
The list of selected items, or NULL if none are selected.

It returns a list of the selected items. This list pointer is only valid so long as the selection doesn't change (no items are selected or unselected, or unselected implicitly by deletion). The list contains genlist items pointers. The order of the items in this list is the order which they were selected, i.e. the first item in this list is the first item that was selected, and so on.

Note
If not in multi-select mode, consider using function elm_genlist_selected_item_get() instead.
See also
elm_genlist_multi_select_set()
elm_genlist_selected_item_get()

References elm_obj_genlist_selected_items_get().

bool elm_genlist::tree_effect_enabled_get ( ) const
inline

Get Genlist tree effect.

Returns
The tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled
Parameters
enabledThe tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled

References elm_obj_genlist_tree_effect_enabled_get().

void elm_genlist::tree_effect_enabled_set ( bool  enabled_) const
inline

Get Genlist tree effect.

Returns
The tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled
Parameters
enabledThe tree effect status (EINA_TRUE = enabled, EINA_FALSE = disabled

References elm_obj_genlist_tree_effect_enabled_set().