cmd(SIG_CHANGED, "changed", "") \
cmd(SIG_ATSPI_SCREEN_READER_CHANGED, "atspi,screen,reader,changed", "") \
cmd(SIG_FILTER_DONE, "filter,done", "")
+//Tizen Only(20170113)
+ cmd(SIG_LANG_CHANGED, "language,changed", "") \
+//
ELM_PRIV_GENLIST_SIGNALS(ELM_PRIV_STATIC_VARIABLE_DECLARE);
if (h) *h = psd->wsd->minh;
}
+//Tizen Only(20170113)
+EOLIAN static void
+_elm_genlist_pan_elm_pan_pos_adjust(Eo *obj EINA_UNUSED, Elm_Genlist_Pan_Data *psd EINA_UNUSED, Evas_Coord *x EINA_UNUSED, Evas_Coord *y EINA_UNUSED)
+{
+ return;
+}
+//
+
EOLIAN static void
_elm_genlist_pan_evas_object_smart_del(Eo *obj, Elm_Genlist_Pan_Data *psd)
{
eo_do(obj, elm_interface_scrollable_content_region_show(x, y, w, h));
}
+//Tizen Only(20170113)
+EOLIAN static Eina_Bool
+_elm_genlist_elm_widget_translate(Eo *obj, Elm_Genlist_Data *sd)
+{
+ Item_Block *itb;
+
+ // Before calling text_get, inform user first.
+ evas_object_smart_callback_call(obj, SIG_LANG_CHANGED, NULL);
+
+ // FIXME: We should change item's height if lang is changed??
+ EINA_INLIST_FOREACH(sd->blocks, itb)
+ {
+ Eina_List *l;
+ Elm_Gen_Item *it;
+ EINA_LIST_FOREACH(itb->items, l, it)
+ {
+ if (it->realized)
+ {
+ elm_genlist_item_fields_update(EO_OBJ(it),
+ NULL,
+ ELM_GENLIST_ITEM_FIELD_TEXT);
+ }
+ }
+ }
+
+ return EINA_TRUE;
+}
+//
+
static void
_item_highlight(Elm_Gen_Item *it)
{
return ret;
}
//
+
+//Tizen Only(20170113) : Below Legacy APIs are Mobile Only Feature
+EAPI void
+elm_genlist_realization_mode_set(Evas_Object *obj, Eina_Bool mode)
+{
+ // Mobile Only Feature;
+ return;
+}
+
+EAPI Eina_Bool
+elm_genlist_realization_mode_get(Evas_Object *obj)
+{
+ // Mobile Only Feature;
+ return EINA_FALSE;
+}
+
+EAPI void
+elm_genlist_item_reorder_start(Elm_Object_Item *item)
+{
+ // Mobile Only Feature;
+ return;
+}
+
+EAPI void
+elm_genlist_item_reorder_stop(Elm_Object_Item *item);
+{
+ // Mobile Only Feature;
+ return;
+}
+//
+
#include "elm_genlist.eo.c"
#include "elm_genlist_item.eo.c"
Elm.Widget.focused_item.get;
Elm.Widget.item_loop_enabled.set;
Elm.Widget.item_loop_enabled.get;
+ Elm.Widget.translate;
Elm.Layout.sub_object_add_enable;
Elm.Layout.sizing_eval;
Elm_Interface_Scrollable.bounce_allow;
EAPI Elm_Object_Item *
elm_genlist_nth_item_get(const Evas_Object *obj, unsigned int nth);
+
+/**
+ * @internal
+ * @remarks Mobile only feature
+ *
+ * @brief Sets the genlist realization mode.
+ *
+ * @remarks By default, genlist disables the realization mode and genlists realize and
+ * unrealize some items when needed. If the realization mode is on,
+ * all items are realized when genlist is created and no items are unrealized.
+ * If this mode is on and the content size is changed, the item size
+ * changes accordingly. By default, genlist does not change item sizes
+ * eventhough they can be changed for performance reasons.
+ * This consumes more memory and decrease performance. So if the application
+ * appends many items, do not use the realization mode.
+ *
+ * @param obj The genlist object
+ * @param mode The realization mode
+ * (@c EINA_TRUE = on, @c EINA_FALSE = off)
+ */
+EAPI void
+elm_genlist_realization_mode_set(Evas_Object *obj, Eina_Bool mode);
+
+/**
+ * @internal
+ * @remarks Mobile only feature
+ *
+ * @brief Gets the genlist realization mode.
+ *
+ * @param obj The genlist object
+ * @return The realization mode
+ * (@c EINA_TRUE = on, @c EINA_FALSE = off)
+ */
+EAPI Eina_Bool
+elm_genlist_realization_mode_get(Evas_Object *obj);
+
+/**
+ * @internal
+ * @remarks Mobile only feature
+ *
+ * @brief Starts reordering for a specific item. it moves by move event.
+ *
+ * @param item The genlist item object
+ */
+EAPI void
+elm_genlist_item_reorder_start(Elm_Object_Item *item);
+
+/**
+ * @internal
+ * @remarks Mobile only feature
+ *
+ * @brief Stop reordering and relocate the item at touch released position.
+ * @param item The genlist item object
+ */
+EAPI void
+elm_genlist_item_reorder_stop(Elm_Object_Item *item);
+/**
+ * @}
+ */
+
#include "elm_genlist_item.eo.legacy.h"
#include "elm_genlist.eo.legacy.h"
Elm_Pan.pos;
Elm_Pan.pos_min.get;
Elm_Pan.pos_max.get;
+ Elm_Pan.pos_adjust;
}
events {
language,changed;
access,changed;
+ focused;
+ unfocused;
item,focused;
item,unfocused;
}
return EINA_TRUE;
}
+EOLIAN static void
+_elm_genlist_elm_widget_item_loop_enabled_set(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Eina_Bool enable)
+{
+ // Need to be implemented
+ //sd->item_loop_enable = !!enable;
+}
+
+EOLIAN static Eina_Bool
+_elm_genlist_elm_widget_item_loop_enabled_get(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd)
+{
+ // Need to be implemented
+ //return sd->item_loop_enable;
+ return EINA_FALSE;
+}
+
static void
_item_block_position_update(Eina_Inlist *list,
int idx)
}
//
+EOLIAN const Elm_Atspi_Action *
+_elm_genlist_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNUSED, Elm_Genlist_Data *pd EINA_UNUSED)
+{
+/* Need to be implemented
+ static Elm_Atspi_Action atspi_actions[] = {
+ { "move,prior", "move", "prior", _key_action_move},
+ { "move,next", "move", "next", _key_action_move},
+ { "move,left", "move", "left", _key_action_move},
+ { "move,right", "move", "right", _key_action_move},
+ { "move,up", "move", "up", _key_action_move},
+ { "move,up,multi", "move", "up_multi", _key_action_move},
+ { "move,down", "move", "down", _key_action_move},
+ { "move,down,multi", "move", "down_multi", _key_action_move},
+ { "move,first", "move", "first", _key_action_move},
+ { "move,last", "move", "last", _key_action_move},
+ { "select", "select", NULL, _key_action_select},
+ { "select,multi", "select", "multi", _key_action_select},
+ { "escape", "escape", NULL, _key_action_escape},
+ { NULL, NULL, NULL, NULL }
+ };
+ return &atspi_actions[0];
+*/
+}
+
EAPI Evas_Object *
elm_genlist_add(Evas_Object *parent)
{
return sd->multi;
}
+EOLIAN static void
+_elm_genlist_multi_select_mode_set(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Elm_Object_Multi_Select_Mode mode)
+{
+/* Need to be implemented
+ if (mode >= ELM_OBJECT_MULTI_SELECT_MODE_MAX)
+ return;
+
+ if (sd->multi_select_mode != mode)
+ sd->multi_select_mode = mode;
+*/
+ return;
+}
+
+EOLIAN static Elm_Object_Multi_Select_Mode
+_elm_genlist_multi_select_mode_get(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd)
+{
+ // Need to be implemented
+ //return sd->multi_select_mode;
+ return ELM_OBJECT_MULTI_SELECT_MODE_DEFAULT;
+}
+
EOLIAN static Elm_Object_Item*
_elm_genlist_selected_item_get(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd)
{
return list;
}
+EOLIAN static Elm_Object_Item *
+_elm_genlist_search_by_text_item_get(Eo *obj EINA_UNUSED,
+ Elm_Genlist_Data *sd,
+ Elm_Object_Item *item_to_search_from,
+ const char *part_name,
+ const char *pattern,
+ Elm_Glob_Match_Flags flags)
+{
+ Elm_Gen_Item *it = NULL;
+ char *str = NULL;
+ Eina_Inlist *start = NULL;
+ int fnflags = 0;
+
+ if (!pattern) return NULL;
+ if (!sd->items) return NULL;
+
+ if (flags & ELM_GLOB_MATCH_NO_ESCAPE) fnflags |= FNM_NOESCAPE;
+ if (flags & ELM_GLOB_MATCH_PATH) fnflags |= FNM_PATHNAME;
+ if (flags & ELM_GLOB_MATCH_PERIOD) fnflags |= FNM_PERIOD;
+#ifdef FNM_CASEFOLD
+ if (flags & ELM_GLOB_MATCH_NOCASE) fnflags |= FNM_CASEFOLD;
+#endif
+
+ start = (item_to_search_from) ?
+ EINA_INLIST_GET((Elm_Gen_Item *)eo_data_scope_get(item_to_search_from, ELM_GENLIST_ITEM_CLASS)) :
+ sd->items;
+ EINA_INLIST_FOREACH(start, it)
+ {
+ if (!it->itc->func.text_get) continue;
+ str = it->itc->func.text_get((void *)WIDGET_ITEM_DATA_GET(EO_OBJ(it)), WIDGET(it), part_name);
+ if (!str) continue;
+ if (!fnmatch(pattern, str, fnflags))
+ {
+ free(str);
+ return EO_OBJ(it);
+ }
+ free(str);
+ }
+ return NULL;
+}
+
EOLIAN static Elm_Object_Item*
_elm_genlist_at_xy_item_get(const Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Evas_Coord x, Evas_Coord y, int *posret)
{
return EO_OBJ(it->parent);
}
+EOLIAN static unsigned int
+_elm_genlist_item_subitems_count(Eo *eo_item EINA_UNUSED, Elm_Gen_Item *item)
+{
+ ELM_GENLIST_ITEM_CHECK_OR_RETURN(item, 0);
+
+ return eina_list_count(item->item->items);
+}
+
EOLIAN static const Eina_List *
_elm_genlist_item_subitems_get(Eo *eo_item EINA_UNUSED, Elm_Gen_Item *item)
{
return EINA_FALSE;
}
+EOLIAN static void
+_elm_genlist_focus_on_selection_set(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd, Eina_Bool enabled)
+{
+ // Need to Implemented
+ //sd->focus_on_selection_enabled = !!enabled;
+}
+
+EOLIAN static Eina_Bool
+_elm_genlist_focus_on_selection_get(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd)
+{
+ // Need to Implemented
+ //return sd->focus_on_selection_enabled;
+ return EINA_FALSE;
+}
+
EAPI Elm_Object_Item *
elm_genlist_nth_item_get(const Evas_Object *obj, unsigned int nth)
{
+++ /dev/null
-import elm_general;
-
-class Elm.Genlist (Elm.Layout, Elm_Interface_Scrollable, Evas.Clickable_Interface,
- Elm_Interface_Atspi_Widget_Action, Elm_Interface_Atspi_Selection,
- Evas.Selectable_Interface)
-{
- eo_prefix: elm_obj_genlist;
- methods {
- @property homogeneous {
- set {
- [[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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- get {
- [[Get whether the homogeneous mode is enabled.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- values {
- homogeneous: bool; [[Assume the items within the genlist are of
- the same height and width. Default is $false.]]
- }
- }
- @property select_mode {
- set {
- [[Set the genlist select mode.
-
- #ELM_OBJECT_SELECT_MODE_DEFAULT means that 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 means that
- even if selected, every click will make the selected callbacks
- be called. #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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- get {
- [[Get the genlist select mode.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- values {
- mode: Elm.Object.Select_Mode(Elm.Object.Select_Mode.max); [[The select mode.]]
- }
- }
- @property longpress_timeout {
- set {
- [[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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- get {
- [[Get the timeout in seconds for the longpress event.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- values {
- timeout: double; [[Timeout in seconds. Default is elm config value (1.0).]]
- }
- }
- @property multi_select {
- set {
- [[Enable or disable multi-selection in the genlist.
-
- This enables ($true) or disables ($false) multi-selection in
- the list. This allows more than 1 item to be selected. To
- retrieve the list of selected items, use @.selected_items.get.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- get {
- [[Get if multi-selection in genlist is enabled or disabled.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- values {
- multi: bool; [[Multi-select enable/disable. Default is disabled.]]
- }
- }
- @property reorder_mode {
- set {
- [[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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- get {
- [[Get the reorder mode.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- values {
- reorder_mode: bool; [[The reorder mode.]]
- }
- }
- @property decorate_mode {
- set @internal {
- [[Set Genlist decorate mode.
-
- This sets Genlist decorate mode to all items.
- ]]
- }
- get @internal {
- [[Get Genlist decorate mode.]]
- }
- values {
- decorated: bool; [[The decorate mode status.]]
- }
- }
- @property block_count {
- set {
- [[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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- get {
- [[Get the maximum number of items within an item block.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- values {
- count: int; [[Maximum number of items within an item block. Default is 32.]]
- }
- }
- @property tree_effect_enabled {
- [[Control genlist tree effect.]]
- set @internal {
- }
- get @internal {
- }
- values {
- enabled: bool; [[The tree effect status.]]
- }
- }
- @property highlight_mode {
- set {
- [[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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- get {
- [[Get whether the genlist items' should be highlighted when
- item selected.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- values {
- highlight: bool; [[$true to enable highlighting or $false to
- disable it.]]
- }
- }
- @property mode {
- set {
- [[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!
-
- Note: 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 esizable objects in
- genlist would not diplayed properly.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- get {
- [[Get the horizontal stretching mode.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- values {
- mode: Elm_List_Mode(4); [[The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).]]
- }
- }
- @property decorated_item {
- get @internal {
- [[Get active genlist mode item.
-
- This function returns the item that was activated with a mode,
- by the function @.decorate_mode.set.
- ]]
- return: Elm.Widget_Item *; [[The active item for that current mode.
- Or $null if no item is activated with any mode.]]
- }
- }
- @property selected_item {
- get {
- [[Get the selected item in the genlist.
-
- 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
- @.selected_items.get for when multi-selection is used).
-
- If no item is selected, $null is returned.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: Elm.Widget_Item *; [[The selected item, or $null if none is selected.]]
- }
- }
- @property first_item {
- get {
- [[Get the first item in the genlist.
-
- This returns the first item in the list.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: Elm.Widget_Item *; [[The first item or $null.]]
- }
- }
- @property realized_items {
- get {
- [[Get a list of realized items in genlist.
-
- 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 \@ref 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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: free(own(list<Elm_Gen_Item *> *), eina_list_free) @warn_unused;
- }
- }
- @property selected_items {
- get {
- [[Get a list of selected items in the genlist.
-
- 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 implicitl
- 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
- @.selected_item.get instead.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: const(list<Elm.Widget_Item *>)*;
- }
- }
- @property last_item {
- get {
- [[Get the last item in the genlist
-
- This returns the last item in the list.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: Elm.Widget_Item *;
- }
- }
- item_insert_before {
- [[Insert an item before another in a genlist widget
-
- 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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: Elm.Widget_Item *;
- params {
- @in itc: const(Elm_Genlist_Item_Class)*; [[The item class for the item.]]
- @in data: const(void)*; [[The item data.]]
- @in parent: Elm.Widget_Item * @nullable; [[The parent item, or $null if none.]]
- @in before_it: Elm.Widget_Item *; [[The item to place this new one before.]]
- @in type: Elm_Genlist_Item_Type; [[Item type.]]
- @in func: Evas_Smart_Cb @optional; [[Convenience function called when the item is selected.]]
- @in func_data: const(void)* @optional; [[Data passed to $func above.]]
- }
- }
- realized_items_update {
- [[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 \@ref elm_genlist_item_update.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- item_insert_after {
- [[Insert an item after another in a genlist widget
-
- 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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: Elm.Widget_Item *;
- params {
- @in itc: const(Elm_Genlist_Item_Class)*; [[The item class for the item.]]
- @in data: const(void)*; [[The item data.]]
- @in parent: Elm.Widget_Item * @nullable; [[The parent item, or $null if none.]]
- @in after_it: Elm.Widget_Item *; [[The item to place this new one after.]]
- @in type: Elm_Genlist_Item_Type; [[Item type.]]
- @in func: Evas_Smart_Cb @optional; [[Convenience function called when the item is selected.]]
- @in func_data: const(void)* @optional; [[Data passed to $func above.]]
- }
- }
- at_xy_item_get @const {
- [[Get the item that is at the x, y canvas coords.
-
- 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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: Elm.Widget_Item *;
- params {
- @in x: Evas.Coord; [[The input x coordinate.]]
- @in y: Evas.Coord; [[The input y coordinate.]]
- @out posret: int; [[The position relative to the item returned here.]]
- }
- }
- @property filter {
- set @internal {
- [[Set filter mode with key.
-
- This initiates the filter mode of genlist with user/application
- provided key. If key is NULL, the filter mode is turned off.
-
- The filter data passed has to be managed by application itself and
- should not be deleted before genlist is deleted(or while filtering
- is not done.
- ]]
- }
- values {
- key: void *; [[Filter key]]
- }
- }
- filter_iterator_new @internal {
- [[Returns an iterator over the list of filtered items.
-
- Return NULL if filter is not set. Application must take care
- of the case while calling the API. Must be freed after use.
- ]]
- return: free(own(iterator<Elm_Gen_Item *> *), eina_iterator_free); [[Iterator on genlist]]
- }
- items_count @const {
- [[Return how many items are currently in a list.
-
- This behavior is O(1) and includes items which may or may not
- be realized.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: uint;
- }
- item_prepend {
- [[Prepend a new item in a given genlist widget.
-
- This adds an item to the beginning of the list or beginning of
- the children of the parent if given.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: Elm.Widget_Item *;
- params {
- @in itc: const(Elm_Genlist_Item_Class)*; [[The item class for the item.]]
- @in data: const(void)*; [[The item data.]]
- @in parent: Elm.Widget_Item * @nullable; [[The parent item, or $null if none.]]
- @in type: Elm_Genlist_Item_Type; [[Item type.]]
- @in func: Evas_Smart_Cb @optional; [[Convenience function called when the item is selected.]]
- @in func_data: const(void)* @optional; [[Data passed to $func above.]]
- }
- }
- clear {
- [[Remove all items from a given genlist widget.
-
- This removes (and deletes) all items in $obj, leaving it empty.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- }
- item_append {
- [[Append a new item in a given genlist widget.
-
- This adds the given item to the end of the list or the end of
- the children list if the $parent is given.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: Elm.Widget_Item *;
- params {
- @in itc: const(Elm_Genlist_Item_Class)*; [[The item class for the item.]]
- @in data: const(void)*; [[The item data.]]
- @in parent: Elm.Widget_Item * @nullable; [[The parent item, or $null if none.]]
- @in type: Elm_Genlist_Item_Type; [[Item type.]]
- @in func: Evas_Smart_Cb @optional; [[Convenience function called when the item is selected.]]
- @in func_data: const(void)* @optional; [[Data passed to $func above.]]
- }
- }
- item_sorted_insert {
- [[Insert a new item into the sorted genlist object
-
- 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.
-
- \@if MOBILE \@since_tizen 2.3
- \@elseif WEARABLE \@since_tizen 2.3.1
- \@endif
- ]]
- return: Elm.Widget_Item *;
- params {
- @in itc: const(Elm_Genlist_Item_Class)*; [[The item class for the item.]]
- @in data: const(void)*; [[The item data.]]
- @in parent: Elm.Widget_Item * @nullable; [[The parent item, or $null if none.]]
- @in type: Elm_Genlist_Item_Type; [[Item type.]]
- @in comp: Eina_Compare_Cb; [[The function called for the sort.]]
- @in func: Evas_Smart_Cb @optional; [[Convenience function called when the item is selected.]]
- @in func_data: const(void)* @optional; [[Data passed to $func above.]]
- }
- }
- }
- implements {
- class.constructor;
- Eo.Base.constructor;
- Evas.Object_Smart.member_add;
- Evas.Object_Smart.move;
- Evas.Object_Smart.add;
- Evas.Object_Smart.del;
- Evas.Object_Smart.resize;
- Elm.Widget.theme_apply;
- Elm.Widget.focus_next_manager_is;
- Elm.Widget.sub_object_add;
- Elm.Widget.access;
- Elm.Widget.focus_highlight_geometry_get;
- Elm.Widget.focus_next;
- Elm.Widget.on_focus;
- Elm.Widget.focus_direction_manager_is;
- Elm.Widget.sub_object_del;
- Elm.Widget.event;
- Elm.Widget.focused_item.get;
- Elm.Widget.translate;
- Elm.Layout.sub_object_add_enable;
- Elm.Layout.sizing_eval;
- Elm_Interface_Scrollable.bounce_allow;
- Elm_Interface_Scrollable.policy;
- Elm_Interface_Atspi_Accessible.children.get;
- Elm_Interface_Atspi_Accessible.state_set.get;
- Elm_Interface_Atspi_Selection.selected_children_count.get;
- Elm_Interface_Atspi_Selection.selected_child.get;
- Elm_Interface_Atspi_Selection.selected_child_deselect;
- Elm_Interface_Atspi_Selection.child_select;
- Elm_Interface_Atspi_Selection.child_deselect;
- Elm_Interface_Atspi_Selection.is_child_selected;
- Elm_Interface_Atspi_Selection.all_children_select;
- Elm_Interface_Atspi_Selection.clear;
-// TIZEN only (20150914) : Accessibility: updated highlight change during genlist and list scroll
- Elm_Interface_Scrollable.content_pos_set;
-// TIZEN only (20150914)
- //TIZEN_ONLY(20160822): When atspi mode is dynamically switched on/off,
- //register/unregister access objects accordingly.
- Elm.Widget.atspi;
- //
- }
- events {
- language,changed;
- access,changed;
- item,focused;
- item,unfocused;
- vbar,drag;
- vbar,press;
- vbar,unpress;
- hbar,drag;
- hbar,press;
- hbar,unpress;
- edge,top;
- edge,bottom;
- edge,left;
- edge,right;
- moved;
- moved,before;
- moved,after;
- swipe;
- multi,pinch,in;
- multi,pinch,out;
- multi,swipe,down;
- multi,swipe,up;
- multi,swipe,right;
- multi,swipe,left;
- released;
- activated;
- highlighted;
- unhighlighted;
- realized;
- unrealized;
- contract,request;
- expand,request;
- contracted;
- expanded;
- index,update;
- tree,effect,finished;
- filter,done;
- }
-
-}
+++ /dev/null
-/**
- * @defgroup Genlist Genlist (Generic list)
- * @ingroup elm_widget_group
- *
- * @image html genlist_inheritance_tree.png
- * @image latex genlist_inheritance_tree.eps
- *
- * @image html img/genlist.png
- * @image latex img/genlist.eps
- *
- * 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 @ref 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 @ref Layout one, so that all the
- * functions acting on it also work for genlist objects.
- *
- * This widget implements the @b @ref elm-scrollable-interface
- * interface, so that all (non-deprecated) functions for the base @ref
- * Scroller widget also work for genlists.
- *
- * Some calls on the genlist's API are marked as @b 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).
- *
- * @section Genlist_Item_Class 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:
- * - @c item_style - This is a constant string and simply defines the name
- * of the item style. It @b must be specified and the default should be @c
- * "default".
- * - @c decorate_item_style - This is a constant string and simply defines the name
- * of the decorate mode item style. It is used to specify decorate mode item style. It can be
- * used when you call elm_genlist_item_decorate_mode_set().
- * - @c decorate_all_item_style - This is a constant string and simply defines the name
- * of the decorate all item style. It is used to specify decorate all item style. It can be
- * used to set selection, checking and deletion mode. This is used when you
- * call elm_genlist_decorate_mode_set().
- * - @c func - A struct with pointers to functions that will be called when
- * an item is going to be actually created. All of them receive a @c data
- * parameter that will point to the same data passed to
- * elm_genlist_item_append() and related item creation functions, and an @c
- * obj parameter that points to the genlist object itself.
- *
- * The function pointers inside @c func are @c text_get, @c content_get, @c
- * state_get and @c del. The 3 first functions also receive a @c part
- * parameter described below. A brief description of these functions follows:
- *
- * - @c text_get - The @c part parameter is the name string of one of the
- * existing text parts in the Edje group implementing the item's theme.
- * This function @b must return a strdup'()ed string, as the caller will
- * free() it when done. See #Elm_Genlist_Item_Text_Get_Cb.
- * - @c content_get - The @c part parameter is the name string of one of the
- * existing (content) swallow parts in the Edje group implementing the item's
- * theme. It must return @c NULL, when no content is desired, or a valid
- * object handle, otherwise. The object will be deleted by the genlist on
- * its deletion or when the item is "unrealized".
- * See #Elm_Genlist_Item_Content_Get_Cb.
- * - @c func.state_get - The @c part parameter is the name string of one of
- * the state parts in the Edje group implementing the item's theme. Return
- * @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists will
- * emit a signal to its theming Edje object with @c "elm,state,xxx,active"
- * and @c "elm" as "emission" and "source" arguments, respectively, when
- * the state is true (the default is false), where @c xxx is the name of
- * the (state) part. See #Elm_Genlist_Item_State_Get_Cb.
- * - @c func.del - This is intended for use when genlist items are deleted,
- * so any data attached to the item (e.g. its data parameter on creation)
- * can be deleted. See #Elm_Genlist_Item_Del_Cb.
- *
- * available item styles:
- * - default
- * - default_style - The text part is a textblock
- * - double_label
- * - icon_top_text_bottom
- * - group_index
- * - one_icon - Only 1 icon (left) (since 1.7)
- * - end_icon - Only 1 icon (at end/right) (since 1.7)
- * - no_icon - No icon (at end/right) (since 1.7)
- * - full - Only 1 icon, elm.swallow.content, which consumes whole area of
- * genlist item (since 1.7)
- *
- * 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.
- *
- * @section Genlist_Items 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 <b>boolean states</b>, 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 @c "labels", @c "contents" and @c
- * "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 @b one text
- * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
- * "elm.swallow.end") and @b 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 @ref Theme "themes" for more
- * details).
- *
- * @section Genlist_Manipulation Editing and Navigating
- *
- * Items can be added by several calls. All of them return a @ref
- * 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, @c 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).
- *
- * @section Genlist_Multi_Selection 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)).
- *
- * @section Genlist_Usage_Hints 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 homogenous
- * 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.
- *
- * @section Genlist_Implementation 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.
- *
- * @section Genlist_Smart_Events Genlist smart events
- *
- * This widget emits the following signals, besides the ones sent from
- * @ref Layout:
- * - @c "activated" - The user has double-clicked or pressed
- * (enter|return|spacebar) on an item. The @p event_info parameter is the
- * item that was activated.
- * - @c "pressed" - The user pressed an item. The @p event_info
- * parameter is the item that was pressed.
- * - @c "released" - The user released an item. The @p event_info
- * parameter is the item that was released.
- * - @c "clicked,double" - The user has double-clicked an item. The @c
- * event_info parameter is the item that was double-clicked.
- * - @c "clicked,right" - The user has right-clicked an item. The @c
- * event_info parameter is the item that was right-clicked. (since 1.13)
- * - @c "selected" - This is called when a user has made an item selected.
- * The event_info parameter is the genlist item that was selected.
- * - @c "unselected" - This is called when a user has made an item
- * unselected. The event_info parameter is the genlist item that was
- * unselected.
- * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
- * called and the item is now meant to be expanded. The event_info
- * parameter is the genlist item that was indicated to expand. It is the
- * job of this callback to then fill in the child items.
- * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
- * called and the item is now meant to be contracted. The event_info
- * parameter is the genlist item that was indicated to contract. It is the
- * job of this callback to then delete the child items.
- * - @c "expand,request" - This is called when a user has indicated they want
- * to expand a tree branch item. The callback should decide if the item can
- * expand (has any children) and then call elm_genlist_item_expanded_set()
- * appropriately to set the state. The event_info parameter is the genlist
- * item that was indicated to expand.
- * - @c "contract,request" - This is called when a user has indicated they
- * want to contract a tree branch item. The callback should decide if the
- * item can contract (has any children) and then call
- * elm_genlist_item_expanded_set() appropriately to set the state. The
- * event_info parameter is the genlist item that was indicated to contract.
- * - @c "realized" - This is called when the item in the list is created as a
- * real evas object. event_info parameter is the genlist item that was
- * created.
- * - @c "unrealized" - This is called just before an item is unrealized.
- * After this call content objects provided will be deleted and the item
- * object itself delete or be put into a floating cache.
- * - @c "drag,start,up" - This is called when the item in the list has been
- * dragged (not scrolled) up.
- * - @c "drag,start,down" - This is called when the item in the list has been
- * dragged (not scrolled) down.
- * - @c "drag,start,left" - This is called when the item in the list has been
- * dragged (not scrolled) left.
- * - @c "drag,start,right" - This is called when the item in the list has
- * been dragged (not scrolled) right.
- * - @c "drag,stop" - This is called when the item in the list has stopped
- * being dragged.
- * - @c "drag" - This is called when the item in the list is being dragged.
- * - @c "longpressed" - This is called when the item is pressed for a certain
- * amount of time. By default it's 1 second. The event_info parameter is the
- * longpressed genlist item.
- * - @c "scroll" - the content has been scrolled (moved) (since 1.13)
- * - @c "scroll,anim,start" - This is called when scrolling animation has
- * started.
- * - @c "scroll,anim,stop" - This is called when scrolling animation has
- * stopped.
- * - @c "scroll,drag,start" - This is called when dragging the content has
- * started.
- * - @c "scroll,drag,stop" - This is called when dragging the content has
- * stopped.
- * - @c "edge,top" - This is called when the genlist is scrolled until
- * the top edge.
- * - @c "edge,bottom" - This is called when the genlist is scrolled
- * until the bottom edge.
- * - @c "edge,left" - This is called when the genlist is scrolled
- * until the left edge.
- * - @c "edge,right" - This is called when the genlist is scrolled
- * until the right edge.
- * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
- * swiped left.
- * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
- * swiped right.
- * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
- * swiped up.
- * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
- * swiped down.
- * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
- * pinched out.
- * - @c "multi,pinch,in" - This is called when the genlist is multi-touch
- * pinched in.
- * - @c "swipe" - This is called when the genlist is swiped.
- * - @c "moved" - This is called when a genlist item is moved by a user
- * interaction in a reorder mode. The @p event_info parameter is the item that
- * was moved.
- * - @c "moved,after" - This is called when a genlist item is moved after
- * another item in reorder mode. The event_info parameter is the reordered
- * item. To get the relative previous item, use elm_genlist_item_prev_get().
- * This signal is called along with "moved" signal.
- * - @c "moved,before" - This is called when a genlist item is moved before
- * another item in reorder mode. The event_info parameter is the reordered
- * item. To get the relative previous item, use elm_genlist_item_next_get().
- * This signal is called along with "moved" signal.
- * - @c "index,update" - This is called when a genlist item index is changed.
- * Note that this callback is called while each item is being realized.
- * - @c "language,changed" - This is called when the program's language is
- * changed. Call the elm_genlist_realized_items_update() if items text should
- * be translated.
- * - @c "tree,effect,finished" - This is called when a genlist tree effect is finished.
- * - @c "highlighted" - an item in the list is highlighted. This is called when
- * the user presses an item or keyboard selection is done so the item is
- * physically highlighted. The @p event_info parameter is the item that was
- * highlighted.
- * - @c "unhighlighted" - an item in the list is unhighlighted. This is called
- * when the user releases an item or keyboard selection is moved so the item
- * is physically unhighlighted. The @p event_info parameter is the item that
- * was unhighlighted.
- * - @c "focused" - When the genlist has received focus. (since 1.8)
- * - @c "unfocused" - When the genlist has lost focus. (since 1.8)
- * - @c "item,focused" - When the genlist item has recieved focus. (since 1.10)
- * - @c "item,unfocused" - When the genlist item has lost focus. (since 1.10)
- *
- *
- * Supported elm_object_item common APIs
- * @li @ref elm_object_item_part_content_get
- * @li @ref elm_object_item_part_text_get
- * @li @ref elm_object_item_disabled_set
- * @li @ref elm_object_item_disabled_get
- * @li @ref elm_object_item_signal_emit
- *
- * 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.
- * @li @ref elm_object_item_part_content_set
- * @li @ref elm_object_item_part_content_unset
- * @li @ref elm_object_item_part_text_set
- *
- */
-
-/**
- * @addtogroup Genlist
- * @{
- */
-
-#include <elm_genlist_common.h>
-#ifdef EFL_EO_API_SUPPORT
-#include <elm_genlist_eo.h>
-#endif
-#ifndef EFL_NOLEGACY_API_SUPPORT
-#include <elm_genlist_legacy.h>
-#endif
-
-/**
- * @}
- */
+++ /dev/null
-#define ELM_GENLIST_ITEM_CLASS_VERSION ELM_GEN_ITEM_CLASS_VERSION
-#define ELM_GENLIST_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_HEADER
-
-/**
- * @see Elm_Gen_Item_Class
- */
-typedef Elm_Gen_Item_Class Elm_Genlist_Item_Class;
-
-/**
- * @see Elm_Gen_Item_Text_Get_Cb
- */
-typedef Elm_Gen_Item_Text_Get_Cb Elm_Genlist_Item_Text_Get_Cb;
-
-/**
- * @see Elm_Gen_Item_Content_Get_Cb
- */
-typedef Elm_Gen_Item_Content_Get_Cb Elm_Genlist_Item_Content_Get_Cb;
-
-/**
- * @see Elm_Gen_Item_State_Get_Cb
- */
-typedef Elm_Gen_Item_State_Get_Cb Elm_Genlist_Item_State_Get_Cb;
-
-/**
- * @see Elm_Gen_Item_Del_Cb
- */
-typedef Elm_Gen_Item_Del_Cb Elm_Genlist_Item_Del_Cb;
-
-/**
- * @see Elm_Gen_Item_Reusable_Content_Get_Cb
- */
-typedef Elm_Gen_Item_Reusable_Content_Get_Cb Elm_Genlist_Reusable_Content_Get_Cb;
-
-
-/**
- * @brief Create a new genlist item class in a given genlist widget.
- *
- * @details 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.
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
- *
- * @return New allocated genlist item class.
- *
- * @see elm_genlist_item_class_free()
- * @see elm_genlist_item_append()
- *
- * @ingroup Genlist
- */
-EAPI Elm_Genlist_Item_Class *elm_genlist_item_class_new(void);
-
-/**
- * @brief Remove an item class in a given genlist widget.
- *
- * @details 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.
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
- *
- * @see elm_genlist_item_class_new()
- * @see elm_genlist_item_class_ref()
- * @see elm_genlist_item_class_unref()
- *
- * @param itc The itc to be removed.
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_class_free(Elm_Genlist_Item_Class *itc);
-
-/**
- * @brief Increments object reference count for the item class.
- *
- * @details This API just increases its reference count for item class management.
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
- *
- * @param itc The given item class object to reference
- *
- * @see elm_genlist_item_class_unref()
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_class_ref(Elm_Genlist_Item_Class *itc);
-
-/**
- * @brief Decrements object reference count for the item class.
- *
- * @details This API just decreases its reference count for item class management.
- * Reference count can't be less than 0.
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
- *
- * @param itc The given item class object to reference
- *
- * @see elm_genlist_item_class_ref()
- * @see elm_genlist_item_class_free()
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_class_unref(Elm_Genlist_Item_Class *itc);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Set the text to be shown in a given genlist item's tooltips.
- *
- * @details 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.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @remarks In order to set a content or something else as a tooltip, look at
- * elm_genlist_item_tooltip_content_cb_set().
- *
- * @param it The genlist item
- * @param text The text to set in the content
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_tooltip_text_set(Elm_Object_Item *it, const char *text);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Set the content to be shown in a given genlist item's tooltips
- *
- * @details This call will setup the tooltip's contents to @p 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. @p func (with @p 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.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @remarks In order to set just a text as a tooltip, look at
- * elm_genlist_item_tooltip_text_set().
- *
- * @param it The genlist item.
- * @param func The function returning the tooltip contents.
- * @param data What to provide to @a func as callback data/context.
- * @param del_cb Called when data is not needed anymore, either when
- * another callback replaces @p func, the tooltip is unset with
- * elm_genlist_item_tooltip_unset() or the owner @p item
- * dies. This callback receives as its first parameter the
- * given @p data, being @p event_info the item handle.
- *
- * @ingroup Genlist
- */
-EAPI 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);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Unset a tooltip from a given genlist item
- *
- * @brief This call removes any tooltip set on @p item. The callback
- * provided as @c 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).
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @see elm_genlist_item_tooltip_content_cb_set()
- *
- * @param it genlist item to remove a previously set tooltip from.
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_tooltip_unset(Elm_Object_Item *it);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Set a different @b style for a given genlist item's tooltip.
- *
- * @details Tooltips can have <b>alternate styles</b> 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 @c "default".
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @remarks 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()
- *
- * @param it genlist item with tooltip set
- * @param style the <b>theme style</b> to use on tooltips (e.g. @c
- * "default", @c "transparent", etc)
- *
- * @see elm_genlist_item_tooltip_style_get()
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_tooltip_style_set(Elm_Object_Item *it, const char *style);
-
-/**
- * @MOBILE_ONLY
- *
- * @details Get the style set a given genlist item's tooltip.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @param it genlist item with tooltip already set on.
- * @return style the theme style in use, which defaults to
- * "default". If the object does not have a tooltip set,
- * then @c NULL is returned.
- *
- * @see elm_genlist_item_tooltip_style_set() for more details
- *
- * @ingroup Genlist
- */
-EAPI const char *elm_genlist_item_tooltip_style_get(const Elm_Object_Item *it);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Disable size restrictions on an object's tooltip
- *
- * @details This function allows a tooltip to expand beyond its parent window's canvas.
- * It will instead be limited only by the size of the display.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @brief Disable size restrictions on an object's tooltip
- * @param it The tooltip's anchor object
- * @param disable If @c EINA_TRUE, size restrictions are disabled
- * @return @c EINA_FALSE on failure, @c EINA_TRUE on success
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool elm_genlist_item_tooltip_window_mode_set(Elm_Object_Item *it, Eina_Bool disable);
-
-/**
- * @MOBILE_ONLY
- * @brief Get size restriction state of an object's tooltip
- *
- * @details This function returns whether a tooltip is allowed to expand beyond
- * its parent window's canvas.
- * It will instead be limited only by the size of the display.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @param it The tooltip's anchor object
- * @return If @c EINA_TRUE, size restrictions are disabled
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool elm_genlist_item_tooltip_window_mode_get(const Elm_Object_Item *it);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Set the type of mouse pointer/cursor decoration to be shown,
- * when the mouse pointer is over the given genlist widget item
- *
- * @details 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 @p
- * item will always show cursor @p type.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @remarks If this function is called twice for an object, a previously set
- * cursor will be unset on the second call.
- *
- * @param it genlist item to customize cursor on
- * @param cursor the cursor type's name
- *
- * @see elm_object_cursor_set()
- * @see elm_genlist_item_cursor_get()
- * @see elm_genlist_item_cursor_unset()
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_cursor_set(Elm_Object_Item *it, const char *cursor);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Get the type of mouse pointer/cursor decoration set to be shown,
- * when the mouse pointer is over the given genlist widget item
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @param it genlist item with custom cursor set
- * @return the cursor type's name or @c NULL, if no custom cursors
- * were set to @p item (and on errors)
- *
- * @see elm_object_cursor_get()
- * @see elm_genlist_item_cursor_set() for more details
- * @see elm_genlist_item_cursor_unset()
- *
- * @ingroup Genlist
- */
-EAPI const char *elm_genlist_item_cursor_get(const Elm_Object_Item *it);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Unset any custom mouse pointer/cursor decoration set in genlist.
- *
- * @details 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 @b default cursor again.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @param it a genlist item
- *
- * @remarks Use this call to undo any custom settings on this item's cursor
- * decoration, bringing it back to defaults (no custom style set).
- *
- * @see elm_object_cursor_unset()
- * @see elm_genlist_item_cursor_set() for more details
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_cursor_unset(Elm_Object_Item *it);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Set a different @b style for a given custom cursor set for a
- * genlist item.
- *
- * @details This function only makes sense when one is using custom mouse
- * cursor decorations <b>defined in a theme file</b> , which can
- * have, given a cursor name/type, <b>alternate styles</b> on
- * it. It works analogously as elm_object_cursor_style_set(), but
- * here applied only to genlist item objects.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @param it genlist item with custom cursor set
- * @param style the <b>theme style</b> to use (e.g. @c "default",
- * @c "transparent", etc)
- *
- * @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 elm_genlist_item_cursor_engine_only_set()
- * @see elm_genlist_item_cursor_style_get()
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_cursor_style_set(Elm_Object_Item *it, const char *style);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Get the current @b style set for a given genlist item's custom cursor
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @param it genlist item with custom cursor set.
- * @return style the cursor style in use. If the object does not
- * have a cursor set, then @c NULL is returned.
- *
- * @see elm_genlist_item_cursor_style_set() for more details
- *
- * @ingroup Genlist
- */
-EAPI const char *elm_genlist_item_cursor_style_get(const Elm_Object_Item *it);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Set if the cursor for a given genlist item is relying on the rendering engine only.
- *
- * @details 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.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @remarks This call is of use only if you've set a custom cursor
- * for genlist items, with elm_genlist_item_cursor_set().
- *
- * @remarks By default, cursors will only be looked for between those
- * provided by the rendering engine.
- *
- * @param it item with custom (custom) cursor already set on
- * @param engine_only Use @c EINA_TRUE to have cursors looked for
- * only on those provided by the rendering engine, @c EINA_FALSE to
- * have them searched on the widget's theme, as well.
- *
- * @ingroup Genlist
- */
-EAPI void elm_genlist_item_cursor_engine_only_set(Elm_Object_Item *it, Eina_Bool engine_only);
-
-/**
- * @MOBILE_ONLY
- *
- * @brief Get if the cursor for a given genlist item is relying on the rendering engine only.
- *
- * @details 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.
- *
- * @if MOBILE @since_tizen 2.3
- * @endif
- *
- * @param it a genlist item
- * @return @c EINA_TRUE, if cursors are being looked for only on
- * those provided by the rendering engine, @c EINA_FALSE if they
- * are being searched on the widget's theme, as well.
- *
- * @see elm_genlist_item_cursor_engine_only_set(), for more details
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *it);
-
+++ /dev/null
-/**
- * @ingroup Genlist
- *
- * @{
- */
-
-#include "elm_genlist_item.eo.h"
-#include "elm_genlist_pan.eo.h"
-#include "elm_genlist.eo.h"
-
-/**
- * @}
- */
-
+++ /dev/null
-import elm_general;
-
-enum Elm.Genlist.Item.Type
-{
- [[Defines if the item is of any special type (has subitems or it's the
- index of a group), or is just a simple item.
- ]]
- legacy: elm_genlist_item;
- none = 0, [[Simple item.]]
- tree = (1 << 0), [[This may be expanded and have child items.]]
- group = (1 << 1), [[An index item of a group of items. this item can have child items.]]
- max = (1 << 2)
-}
-
-enum Elm.Genlist.Item.Field_Type
-{
- [[Defines the type of the item part
- Used while updating item's parts
- It can be used at updating multi fields.
- ]]
- legacy: elm_genlist_item_field;
- all = 0,
- text = (1 << 0),
- content = (1 << 1),
- state = (1 << 2)
-}
-
-enum Elm.Genlist.Item.Scrollto_Type
-{
- [[Defines where to position the item in the genlist.]]
- legacy: elm_genlist_item_scrollto;
- none = 0, [[No scrollto.]]
- in = (1 << 0), [[To the nearest viewport.]]
- top = (1 << 1), [[To the top of viewport.]]
- middle = (1 << 2), [[To the middle of viewport.]]
- bottom = (1 << 3) [[To the bottom of viewport.]]
-}
-
-class Elm.Genlist_Item(Elm.Widget_Item)
-{
- eo_prefix: elm_obj_genlist_item;
- data: Elm_Gen_Item;
- methods {
- @property prev {
- get {
- [[
- $brief Get the $b previous item in a genlist widget's internal list of items,
- given a handle to one of those items.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark This returns the item placed before the $p item, on the container
- genlist.
-
- $see elm_genlist_item_next_get()
-
- $ingroup Genlist
- ]]
- }
- values {
- item: Elm.Widget_Item *; [[The item before $item, or $null if there's none (and on errors).]]
- }
- }
- @property next {
- get {
- [[
- $brief Get the $b next item in a genlist widget's internal list of items,
- given a handle to one of those items.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark This returns the item placed after the $p item, on the container
- genlist.
-
- $see elm_genlist_item_prev_get()
-
- $ingroup Genlist
- ]]
- }
- values {
- item: Elm.Widget_Item *; [[The item after $item, or $null if there's none (and on errors).]]
- }
- }
- @property parent {
- get {
- [[
- $brief Get the parent item of the given item
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark This returns the item that was specified as parent of the item $p it on
- elm_genlist_item_append() and insertion related functions.
-
- $ingroup Genlist
- ]]
- }
- values {
- item: Elm.Widget_Item *; [[The parent of the item or $null if it has no parent.]]
- }
- }
- @property subitems {
- get {
- [[et 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
- ]]
- }
- values {
- subitems: const (list<Elm.Widget_Item *>) *; [[The list of subitems, $null on error.]]
- }
- }
- @property selected {
- get {
- [[
- $brief Get whether a given genlist item is selected or not
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- *return $c EINA_TRUE, if it's selected, $c EINA_FALSE otherwise
-
- $see elm_genlist_item_selected_set() for more details
-
- $ingroup Genlist
- ]]
- }
- set {
- [[
- $brief Set whether a given genlist item is selected or not
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark Use $c EINA_TRUE, to make it selected, $c EINA_FALSE to make it unselected
-
- $remark This sets the selected state of an item. If multi selection is
- not enabled on the containing genlist and $p selected is $c
- EINA_TRUE, any other previously selected items will get
- unselected in favor of this new one.
-
- $see elm_genlist_item_selected_get()
-
- $ingroup Genlist
- ]]
- }
- values {
- selected: bool; [[The selected state ($true selected, $false not selected).]]
- }
- }
- @property expanded {
- get {
- [[
- $brief Get the expanded state of an item
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark This gets the expanded state of an item.
-
- $see elm_genlist_item_expanded_set()
-
- $ingroup Genlist
- ]]
- }
- set {
- [[
- $brief Sets the expanded state of an item.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark This function flags the item of type #ELM_GENLIST_ITEM_TREE as
- expanded or not.
-
- $remark 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.
-
- $remark 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 elm_genlist_item_expanded_get()
-
- $ingroup Genlist
- ]]
- }
- values {
- expanded: bool; [[The expanded state ($true expanded, $false not expanded).]]
- }
- }
- @property expanded_depth {
- get {
- [[
- $brief Get the depth of expanded item
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $ingroup Genlist
- ]]
- }
- values {
- depth: int; [[The depth of expanded item.]]
- }
- }
- @property item_class {
- get {
- [[
- $brief Get the Genlist Item class for the given Genlist Item.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark This returns the Genlist_Item_Class for the given item. It can be used to
- examine the function pointers and item_style.
-
- $ingroup Genlist
- ]]
- }
- values {
- itc: const (Elm_Genlist_Item_Class) *; [[ Genlist Item class for the given item ]]
- }
- }
- @property index {
- get {
- [[
- $brief Get the index of the item. It is only valid once displayed.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $ingroup Genlist
- ]]
- }
- values {
- index: int(-1); [[ *return the position inside the list of item. ]]
- }
- }
- @property decorate_mode {
- get {
- [[
- $internal
-
- $brief Get the item's decorate mode.
-
- $remark This function just returns the name of the item's decorate mode.
-
- $see elm_genlist_item_decorate_mode_set()
- $see elm_genlist_decorated_item_get()
-
- $ingroup Genlist
- ]]
- }
- values {
- decorate_it_type: const(char)*; [[ name of the item's decorate mode. ]]
- }
- }
- @property flip {
- get {
- [[
- $internal
-
- $brief Get the flip state of a given genlist item.
-
- $remark This function returns the flip state of a given genlist item.
- If the parameter is invalid, it returns $c EINA_FALSE.
-
- $see elm_genlist_item_flip_set()
-
- $ingroup Genlist
- ]]
- }
- set {
- [[
- $internal
-
- $brief Set the flip state of a given genlist item.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark ($c EINA_TRUE = on, $c EINA_FALSE = off)
-
- $remark 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 elm_genlist_item_flip_get()
-
- $ingroup Genlist
- ]]
- }
- values {
- flip: bool; [[The flip mode.]]
- }
- }
- @property select_mode {
- get {
- [[
- $brief Get the genlist item's select mode.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- *return The select mode
- (If getting mode fails, it returns ELM_OBJECT_SELECT_MODE_MAX)
-
- $see elm_genlist_item_select_mode_set()
-
- $ingroup Genlist
- ]]
- }
- set {
- [[
- $brief Set the genlist item's select mode.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark 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 elm_genlist_item_select_mode_get()
-
- $ingroup Genlist
- ]]
- }
- values {
- mode: Elm.Object.Select_Mode(Elm.Object.Select_Mode.max); [[The selected mode.]]
- }
- }
- @property type {
- get {
- [[
- $brief Get the Item's Type
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- *return The item type.
-
- $remark This function returns the item's type. Normally the item's type.
- If it failed, return value is ELM_GENLIST_ITEM_MAX
-
- $ingroup Genlist
- ]]
- }
- values {
- type: Elm.Genlist.Item.Type(Elm.Genlist.Item.Type.max); [[Item type.]]
- }
- }
- /* init { FIXME
- params {
- Evas_Smart_Cb func;
- const(void)* data;
- }
- }*/
- subitems_clear{
- [[
- $brief Remove all sub-items (children) of the given item
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $param it The item
-
- $remark This removes all items that are children (and their descendants) of the
- given item $p it.
-
- $see elm_genlist_clear()
- $see elm_object_item_del()
-
- $ingroup Genlist
- ]]
- }
- promote {
- [[
- $brief Promote an item to the top of the list
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $param it The item
-
- $ingroup Genlist
- ]]
- }
- demote {
- [[
- $brief Demote an item to the end of the list
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $param it The item
-
- $ingroup Genlist
- ]]
- }
- show {
- [[
- $brief Show the portion of a genlist's internal list containing a given
- item, immediately.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark This causes genlist to jump to the given item $p it and show it (by
- jumping to that position), if it is not fully visible.
-
- $see elm_genlist_item_bring_in()
-
- $ingroup Genlist
- ]]
- params {
- @in type: Elm.Genlist.Item.Scrollto_Type; [[The position to bring in, the given item to.
- \@ref Elm_Genlist_Item_Scrollto_Type.]]
- }
- }
- bring_in {
- [[
- $brief Animatedly bring in, to the visible area of a genlist, a given
- item on it.
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark This causes genlist to jump to the given item $p 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 elm_genlist_item_show()
-
- $ingroup Genlist
- ]]
- params {
- @in type: Elm.Genlist.Item.Scrollto_Type; [[The position to bring in, the given item to.
- \@ref Elm_Genlist_Item_Scrollto_Type.]]
- }
- }
- all_contents_unset{
- [[
- $brief Unset all contents fetched by the item class
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark 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.
-
- $ingroup Genlist
- ]]
- params {
- @out l: own(list<own(Evas.Object *)> *); [[The contents list to return.]]
- }
- }
- update {
- [[
- $brief Update all the contents of an item
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark 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.
-
- $remark Use elm_genlist_realized_items_update() to update all already realized
- items.
-
- $remark 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 $ref elm_genlist_item_fields_update.
-
- $see elm_genlist_realized_items_update()
-
- $ingroup Genlist
- ]]
- }
- fields_update {
- [[
- $brief Update the part of an item
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark 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.
-
- $remark Use elm_genlist_realized_items_update() to update an item's all
- property.
-
- $see elm_genlist_item_update()
-
- $ingroup Genlist
- ]]
- params {
- @in parts: const (char) *; [[The name of item's part.]]
- @in itf: Elm.Genlist.Item.Field_Type; [[The type of item's part type.]]
- }
- }
- item_class_update {
- [[
- $brief Update the item class of an item
-
- $if MOBILE $since_tizen 2.3
- $elseif WEARABLE $since_tizen 2.3.1
- $endif
-
- $remark 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 $p it.
-
- $ingroup Genlist
- ]]
- params {
- @in itc: const (Elm_Genlist_Item_Class) *; [[The item class for the item.]]
- }
- }
- decorate_mode_set {
- [[
- $internal
-
- $brief Activate a genlist mode on an item
-
- $remark 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.
-
- $remark 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.
-
- $remark The current active item for a mode can be found by
- elm_genlist_decorated_item_get().
-
- $remark 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.
-
- $remark 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 elm_genlist_mode_get()
- $see elm_genlist_decorated_item_get()
-
- $ingroup Genlist
- ]]
- params {
- @in decorate_it_type: const(char)*; [[Mode name.]]
- @in decorate_it_set: bool; [[Boolean to define set or unset mode.]]
- }
- }
- }
- implements {
- Eo.Base.constructor;
- Elm.Widget_Item.del_pre;
- Elm.Widget_Item.disable;
- Elm.Widget_Item.signal_emit;
- Elm.Widget_Item.focus.set;
- Elm.Widget_Item.focus.get;
- Elm.Widget_Item.part_text.get;
- Elm.Widget_Item.part_content.get;
- Elm.Widget_Item.tooltip_text_set;
- Elm.Widget_Item.tooltip_style.set;
- Elm.Widget_Item.tooltip_style.get;
- Elm.Widget_Item.tooltip_window_mode.set;
- Elm.Widget_Item.tooltip_window_mode.get;
- Elm.Widget_Item.tooltip_content_cb_set;
- Elm.Widget_Item.tooltip_unset;
- Elm.Widget_Item.cursor.set;
- Elm.Widget_Item.cursor_unset;
- Elm_Interface_Atspi_Accessible.name.get;
- Elm_Interface_Atspi_Accessible.state_set.get;
- Elm_Interface_Atspi_Accessible.children.get;
- //TIZEN_ONLY(20160329): genlist: enhance accessibility scroll & highlight (30d9a6012e629cd9ea60eae8d576f3ebb94ada86)
- Elm_Interface_Atspi_Component.highlight_grab;
- Elm_Interface_Atspi_Component.highlight_clear;
- //
- }
-}
-
+++ /dev/null
-/**
- * @defgroup Genlist Genlist
- * @ingroup elm_widget_group
- *
- * @image html genlist_inheritance_tree.png
- * @image latex genlist_inheritance_tree.eps
- *
- * @image html img/genlist.png
- * @image latex img/genlist.eps
- *
- * @brief This widget aims to have a 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 based on complexity when it comes to usage. If all you want
- * is a simple list with icons and a single text, use the normal @ref List
- * object.
- *
- * Genlist has a fairly large API, mostly because it's relatively complex,
- * trying to be expansive, powerful, and efficient. First we begin with
- * an overview on the theory behind genlist.
- *
- * This widget inherits from the @ref 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 @ref
- * Scroller widget also work for genlists.
- *
- * Some calls on the genlist's API are marked as @b deprecated, as
- * they just wrap the scrollable widgets counterpart functions. Use
- * the ones mentioned for each case of deprecation here.
- * Eventually the deprecated ones are discarded (next
- * major release).
- *
- * @section Genlist_Item_Class 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 items of different types with different classes, states, and styles).
- * Genlist calls the functions in this struct (methods) when an item is
- * "realized" (i.e., created dynamically, while the user is scrolling the
- * list). All objects are simply deleted when they are no longer needed by
- * evas_object_del(). The #Elm_Genlist_Item_Class structure contains the
- * following members:
- * - @c item_style - This is a constant string and simply defines the name
- * of the item style. It @b must be specified and the default should be @c
- * "default".
- * @internal
- * - @c decorate_item_style - This is a constant string and simply defines the name
- * of the decorate mode item style. It is used to specify the decorate mode item style. It can be
- * used when elm_genlist_item_decorate_mode_set() is called.
- * - @c decorate_all_item_style - This is a constant string and simply defines the name
- * of the decorate all item style. It is used to specify the decorate all item style. It can be
- * used to set the selection, checking, and deletion mode. This is used when
- * elm_genlist_decorate_mode_set() is called.
- * @endinternal
- * - @c func - This is a struct with pointers to functions that are called when
- * an item is going to actually be created. All of them receive a @c data
- * parameter that points to the same data that is passed to
- * elm_genlist_item_append() and other related item creation functions, and an @c
- * obj parameter that points to the genlist object itself.
- *
- * The function pointers inside @c func are @c text_get, @c content_get, @c
- * state_get, and @c del. The first three functions also receive a @c part
- * parameter described below. A brief description of these functions is as follows:
- *
- * - @c text_get - The @c part parameter is the name string of one of the
- * existing text parts in the Edje group implementing the item's theme.
- * This function @b must return a strdup'()ed string, as the caller is going to
- * free() it when done. See #Elm_Genlist_Item_Text_Get_Cb.
- * - @c content_get - The @c part parameter is the name string of one of the
- * existing (content) swallow parts in the Edje group implementing the item's
- * theme. It must return @c NULL, when no content is desired, or a valid
- * object handle, otherwise. The object is deleted by the genlist on
- * its deletion or when the item is "unrealized".
- * See #Elm_Genlist_Item_Content_Get_Cb.
- * - @c func.state_get - The @c part parameter is the name string of one of
- * the state parts in the Edje group implementing the item's theme. It must return
- * @c EINA_FALSE for false/off or @c EINA_TRUE for true/on. Genlists
- * emit a signal to its theming Edje object with @c "elm,state,xxx,active"
- * and @c "elm" as "emission" and "source" arguments, respectively, when
- * the state is @c true (the default is false), where @c xxx is the name of
- * the (state) part. See #Elm_Genlist_Item_State_Get_Cb.
- * - @c func.del - This is intended for use when genlist items are deleted,
- * so any data attached to the item (e.g. its data parameter on creation)
- * can be deleted. See #Elm_Genlist_Item_Del_Cb.
- *
- * The available item styles are as follows:
- * - default
- * - default_style - The text part is a textblock
- * - double_label
- * - icon_top_text_bottom
- * - group_index
- * - one_icon - Only 1 icon (left) @since 1.7
- * - end_icon - Only 1 icon (at end/right) @since 1.7
- * - no_icon - No icon (at end/right) @since 1.7
- *
- * @section Genlist_Items Structure of items
- *
- * An item in a genlist can have @c 0 or more texts (they can be regular
- * text or textblock Evas objects - that's up to the style to determine), @c 0
- * or more blocks of content (which are simply objects swallowed into the genlist item's
- * theming Edje object) and @c 0 or more <b>boolean states</b>, which have the
- * behavior left to the user to define. The Edje part names for each of
- * these properties are looked up, in the theme file for the genlist,
- * under the Edje (string) data items named @c "labels", @c "contents", and @c
- * "states", respectively. For each of these properties, if more than one
- * part is provided, they must have names listed and separated by spaces in the
- * data fields. For the default genlist item theme, we have @b one text
- * part (@c "elm.text"), @b two content parts (@c "elm.swalllow.icon" and @c
- * "elm.swallow.end") and @b no state parts.
- *
- * A genlist item may be having one of the several styles. Elementary provides one
- * by default - "default", but this can be extended by system or application
- * custom themes/overlays/extensions (see @ref Theme "themes" for more
- * details).
- *
- * @section Genlist_Manipulation Editing and Navigating
- *
- * Items can be added by several calls. All of them return a @ref
- * Elm_Object_Item handle that is an internal member inside the genlist.
- * They all take a data parameter that is meant to be used as a handle for
- * the application's 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 this value is @c 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 a group index item that
- * is displayed at the top until the next group comes. The @a func parameter is
- * a convenience callback that is called when the item is selected and the
- * @a data parameter is the @a func_data parameter, @a obj is the genlist
- * object, and @a event_info is the genlist item.
- *
- * elm_genlist_item_append() adds an item to the end of the list, or if
- * there is a parent, it adds the item to the end of all the child items of the parent.
- * elm_genlist_item_prepend() is the same but adds an item 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 an item after
- * the indicated item.
- *
- * The application can clear the list with elm_genlist_clear() which deletes
- * all the items in the list. elm_object_item_del() deletes a specific
- * item. elm_genlist_item_subitems_clear() clears 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 returns the item pointer. 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 through the entire item list/tree. Note that as a tree
- * the items are flattened in the list, so elm_genlist_item_parent_get()
- * lets you know which item is the parent (and thus helps you skip them if
- * needed).
- *
- * @section Genlist_Multi_Selection Multi-selection
- *
- * If the application wants to allow multiple items 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()
- * returns the selected item, if any, or @c NULL if none is selected. If the
- * list is multi-select then elm_genlist_selected_items_get() returns a
- * list (that is only valid as long as no items are modified (added, deleted,
- * selected, or unselected)).
- *
- * @section Genlist_Usage_Hints Usage hints
- *
- * There are also convenience functions. elm_object_item_widget_get()
- * returns the genlist object the item belongs to. elm_genlist_item_show()
- * makes the scroller scroll to show that specific item so that it is 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 content changes),
- * then use elm_genlist_item_update() to have genlist update the item with
- * the new state. Genlist re-realizes the item and thus calls 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 disable an item (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 scrolls horizontally. Otherwise items are expanded to
- * fill the width of the viewport of the scroller. If it is
- * ELM_LIST_LIMIT, items are expanded to the viewport width
- * if the viewport width is larger than the item, but the genlist widget width is
- * limited to the largest item. Do not use the ELM_LIST_LIMIT mode with the homogenous
- * mode turned on. ELM_LIST_COMPRESS can be combined with a different style
- * that uses the edjes' ellipsis feature (cutting text off like this: "tex...").
- *
- * Items call their selection func and callback only once when selected for the
- * first time. Any further clicks 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 make the selected callbacks
- * to be called. elm_genlist_select_mode_set() as ELM_OBJECT_SELECT_MODE_NONE
- * turns off the ability to select items entirely and they neither
- * appear selected nor call selected callback functions.
- *
- * Remember that you can create new styles and add your own theme augmentation
- * for each application with elm_theme_extension_add(). If you absolutely must
- * have a specific style that overrides any theme that the user or system sets up,
- * you can use elm_theme_overlay_add() to add such a file.
- *
- * @section Genlist_Implementation 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 they affect. Further, every time it renders display updates,
- * in order to just calculate what to re-draw, it needs to walk through a large
- * number of 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 that it can determine the visibility of a whole block at
- * once as opposed to having to walk through the whole list. This 2-level list allows
- * for very large numbers of items to be in the list (tests have used upto
- * 2,000,000 items). Also genlist employs a queue for adding items. As items
- * maybe of different sizes, every added item needs to be calculated as per its
- * size and thus this presents a lot of overhead on populating the list, this
- * genlist employs a queue. Every added item is queued and spooled off over
- * time, though it appears some time later. So if your list has many members,
- * you may find that it takes a while for them to appear and this process
- * consumes a lot of CPU time 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.
- *
- * @section Genlist_Smart_Events Genlist smart events
- *
- * This widget emits the following signals, besides the ones sent from
- * @ref Layout :
- * - @c "activated" - The user has double-clicked or pressed
- * (enter|return|spacebar) on an item. The @a event_info parameter is the
- * item that is activated.
- * - @c "pressed" - The user pressed an item. The @a event_info
- * parameter is the item that is pressed.
- * - @c "released" - The user released an item. The @a event_info
- * parameter is the item that is released.
- * - @c "clicked,double" - The user has double-clicked an item. The @a
- * event_info parameter is the item that is double-clicked.
- * - @c "selected" - This is called when a user has selected an item.
- * The @a event_info parameter is the genlist item that is selected.
- * - @c "unselected" - This is called when a user has unselected an item.
- * The @a event_info parameter is the genlist item that is
- * unselected.
- * - @c "expanded" - This is called when elm_genlist_item_expanded_set() is
- * called and the item is now meant to be expanded. The @a event_info
- * parameter is the genlist item that is indicated to expand. It is the
- * job of this callback to then fill in the child items.
- * - @c "contracted" - This is called when elm_genlist_item_expanded_set() is
- * called and the item is now meant to contract. The @a event_info
- * parameter is the genlist item that is indicated to contract. It is the
- * job of this callback to then delete the child items.
- * - @c "expand,request" - This is called when a user has indicated that they want
- * to expand a tree branch item. The callback should decide if the item can
- * expand (has any children) and then call elm_genlist_item_expanded_set()
- * appropriately to set the state. The @a event_info parameter is the genlist
- * item that is indicated to expand.
- * - @c "contract,request" - This is called when a user has indicated that they
- * want to contract a tree branch item. The callback should decide if the
- * item can contract (has any children) and then call
- * elm_genlist_item_expanded_set() appropriately to set the state. The
- * event_info parameter is the genlist item that is indicated to contract.
- * - @c "realized" - This is called when the item in the list is created as a
- * real evas object. @a event_info parameter is the genlist item that is
- * created.
- * - @c "unrealized" - This is called just before an item is unrealized.
- * After this call, the provided content objects are deleted and the item
- * object itself is deleted or is put into a floating cache.
- * - @c "drag,start,up" - This is called when the item in the list has been
- * dragged (not scrolled) up.
- * - @c "drag,start,down" - This is called when the item in the list has been
- * dragged (not scrolled) down.
- * - @c "drag,start,left" - This is called when the item in the list has been
- * dragged (not scrolled) left.
- * - @c "drag,start,right" - This is called when the item in the list has
- * been dragged (not scrolled) right.
- * - @c "drag,stop" - This is called when the item in the list is stopped
- * being dragged.
- * - @c "drag" - This is called when the item in the list is being dragged.
- * - @c "longpressed" - This is called when the item is pressed for a certain
- * amount of time. By default it's @c 1 second. The @a event_info parameter is the
- * longpressed genlist item.
- * - @c "scroll,anim,start" - This is called when scrolling animation has
- * started.
- * - @c "scroll,anim,stop" - This is called when scrolling animation has
- * stopped.
- * - @c "scroll,drag,start" - This is called when dragging the content has
- * started.
- * - @c "scroll,drag,stop" - This is called when dragging the content has
- * stopped.
- * - @c "edge,top" - This is called when the genlist is scrolled until
- * the top edge.
- * - @c "edge,bottom" - This is called when the genlist is scrolled
- * until the bottom edge.
- * - @c "edge,left" - This is called when the genlist is scrolled
- * until the left edge.
- * - @c "edge,right" - This is called when the genlist is scrolled
- * until the right edge.
- * - @c "multi,swipe,left" - This is called when the genlist is multi-touch
- * swiped left.
- * - @c "multi,swipe,right" - This is called when the genlist is multi-touch
- * swiped right.
- * - @c "multi,swipe,up" - This is called when the genlist is multi-touch
- * swiped up.
- * - @c "multi,swipe,down" - This is called when the genlist is multi-touch
- * swiped down.
- * - @c "multi,pinch,out" - This is called when the genlist is multi-touch
- * pinched out.
- * - @c "multi,pinch,in" - This is called when the genlist is multi-touch
- * pinched in.
- * - @c "swipe" - This is called when the genlist is swiped.
- * - @c "moved" - This is called when a genlist item is moved in the reorder mode.
- * - @c "moved,after" - This is called when a genlist item is moved after
- * another item in the reorder mode. The @a event_info parameter is the reordered
- * item. To get the relative previous item, use elm_genlist_item_prev_get().
- * This signal is called along with the "moved" signal.
- * - @c "moved,before" - This is called when a genlist item is moved before
- * another item in the reorder mode. The @a event_info parameter is the reordered
- * item. To get the relative previous item, use elm_genlist_item_next_get().
- * This signal is called along with the "moved" signal.
- * - @c "language,changed" - This is called when the program's language is
- * changed. Call elm_genlist_realized_items_update() if the item's text should
- * be translated.
- * - @c "tree,effect,finished" - This is called when the genlist tree effect is finished.
- * - @c "highlighted" - This is called when an item in the list is pressed and highlighted.
- * The @a event_info parameter is the item that is highlighted.
- * - @c "unhighlighted" - This is called when an item in the list is unpressed and unhighlighted.
- * The @a event_info parameter is the item that is unhighlighted.
- *
- *
- * Supported common elm_object_item APIs.
- * @li @ref elm_object_item_part_content_get()
- * @li @ref elm_object_item_part_text_get()
- * @li @ref elm_object_item_disabled_set()
- * @li @ref elm_object_item_disabled_get()
- * @li @ref elm_object_item_signal_emit()
- *
- * Unsupported common elm_object_item APIs as per the genlist concept.
- * Genlist fills content/text according to the appropriate callback functions.
- * Use elm_genlist_item_update() or elm_genlist_item_fields_update()
- * instead.
- * @li @ref elm_object_item_part_content_set()
- * @li @ref elm_object_item_part_content_unset()
- * @li @ref elm_object_item_part_text_set()
- *
- * @{
- */
-
-/**
- * @brief Enumeration that defines whether the item is of a special type (has subitems or it's the
- * index of a group), or it is just a simple item.
- */
-/**
- * @brief Enumeration that defines the type of the item field.
- * @remarks It is used while updating the item field.
- * @remarks It can be used for updating multi fields.
- */
-
-/**
- * @brief Adds a new genlist widget to the given parent Elementary
- * (container) object.
- *
- * @details This function inserts a new genlist widget on the canvas.
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
- *
- * @param[in] parent The parent object
- * @return A new genlist widget handle, otherwise @c NULL in case of an error
- *
- * @see elm_genlist_item_append()
- * @see elm_object_item_del()
- * @see elm_genlist_clear()
- */
-EAPI Evas_Object *elm_genlist_add(Evas_Object *parent);
-
-/**
- * @internal
- *
- * @brief Enables or disables horizontal and vertical bouncing effect.
- *
- * @details This enables or disables the scroller bouncing effect for the
- * genlist. See elm_scroller_bounce_set() for details.
- *
- * @param obj The genlist object
- * @param h_bounce The boolean value that allows horizontal bouncing (@c EINA_TRUE = on, @c
- * EINA_FALSE = off) \n
- * Default is @c EINA_FALSE.
- * @param v_bounce The boolean value that allows vertical bouncing (@c EINA_TRUE = on, @c
- * EINA_FALSE = off) \n
- * Default is @c EINA_TRUE.
- *
- * @deprecated Use elm_scroller_bounce_set() instead.
- *
- * @see elm_scroller_bounce_set()
- * @see elm_genlist_bounce_get()
- */
-EINA_DEPRECATED EAPI void elm_genlist_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
-
-/**
- * @internal
- *
- * @brief Gets whether the horizontal and vertical bouncing effect is enabled.
- *
- * @param obj The genlist object
- * @param h_bounce The pointer to a bool that indicates if horizontal bouncing is set
- * @param v_bounce The pointer to a bool that indicates if vertical bouncing is set
- *
- * @deprecated Use elm_scroller_bounce_get() instead.
- *
- * @see elm_scroller_bounce_get()
- * @see elm_genlist_bounce_set()
- */
-EINA_DEPRECATED EAPI void elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
-
-/**
- * @since 1.8
- *
- * @if MOBILE @since_tizen 2.3
- * @elseif WEARABLE @since_tizen 2.3.1
- * @endif
- *
- * @param[in] obj The genlist object
- * @param[in] nth The number of the item to grab (@c 0 being the first)
- *
- * @return The item stored in @a obj at position @a nth, otherwise @c NULL if there is
- * no item with that index (and on errors)
- */
-EAPI Elm_Object_Item *
-elm_genlist_nth_item_get(const Evas_Object *obj, unsigned int nth);
-
-/**
- * @internal
- * @remarks Tizen only feature
- *
- * @brief Sets the genlist realization mode.
- *
- * @remarks By default, genlist disables the realization mode and genlists realize and
- * unrealize some items when needed. If the realization mode is on,
- * all items are realized when genlist is created and no items are unrealized.
- * If this mode is on and the content size is changed, the item size
- * changes accordingly. By default, genlist does not change item sizes
- * eventhough they can be changed for performance reasons.
- * This consumes more memory and decrease performance. So if the application
- * appends many items, do not use the realization mode.
- *
- * @param obj The genlist object
- * @param mode The realization mode
- * (@c EINA_TRUE = on, @c EINA_FALSE = off)
- */
-EAPI void
-elm_genlist_realization_mode_set(Evas_Object *obj, Eina_Bool mode);
-
-/**
- * @internal
- * @remarks Tizen only feature
- *
- * @brief Gets the genlist realization mode.
- *
- * @param obj The genlist object
- * @return The realization mode
- * (@c EINA_TRUE = on, @c EINA_FALSE = off)
- */
-EAPI Eina_Bool
-elm_genlist_realization_mode_get(Evas_Object *obj);
-
-/**
- * @internal
- * @remarks Tizen only feature
- *
- * @brief Starts reordering for a specific item. it moves by move event.
- *
- * @param item The genlist item object
- */
-EAPI void
-elm_genlist_item_reorder_start(Elm_Object_Item *item);
-
-/**
- * @internal
- * @remarks Tizen only feature
- *
- * @brief Stop reordering and relocate the item at touch released position.
- * @param item The genlist item object
- */
-EAPI void
-elm_genlist_item_reorder_stop(Elm_Object_Item *item);
-/**
- * @}
- */
-
-#include "elm_genlist_item.eo.legacy.h"
-#include "elm_genlist.eo.legacy.h"
+++ /dev/null
-class Elm.Genlist_Pan (Elm_Pan)
-{
- eo_prefix: elm_obj_genlist_pan;
- implements {
- class.constructor;
- Eo.Base.destructor;
- Evas.Object_Smart.calculate;
- Evas.Object_Smart.move;
- Evas.Object_Smart.del;
- Evas.Object_Smart.resize;
- Elm_Pan.content_size.get;
- Elm_Pan.pos;
- Elm_Pan.pos_min.get;
- Elm_Pan.pos_max.get;
- Elm_Pan.pos_adjust;
- }
- events {
- language,changed;
- access,changed;
- focused;
- unfocused;
- item,focused;
- item,unfocused;
- }
-
-}