[genlist, gen, gen_common] merge upstream except for elm_genlist.c
[framework/uifw/elementary.git] / src / lib / elm_genlist.h
index 997d569..31000d7 100644 (file)
  * - @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".
-<<<<<<< HEAD
- *
-=======
  * - @c mode_item_style - This is a constant string and simply defines the name
  *   of the mode item style. It is used to specify mode item style. It can be
  *   used to set sweep mode.
  * - @c edit_item_style - This is a constant string and simply defines the name
  *   of the edit item style. It is used to specify edit item style. It can be
  *   used to set selection, checking and deletion mode.
->>>>>>> remotes/origin/upstream
  * - @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
  * - @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
-<<<<<<< HEAD
- *   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
-=======
  *   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
->>>>>>> remotes/origin/upstream
  *   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)
  * 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
-<<<<<<< HEAD
- * 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_SUBITEMS and #ELM_GENLIST_ITEM_GROUP. If
- * #ELM_GENLIST_ITEM_SUBITEMS is set then this item is displayed as an item
-=======
  * 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
->>>>>>> remotes/origin/upstream
  * 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
  * let you know which item is the parent (and thus know how to skip them if
  * wanted).
  *
-<<<<<<< HEAD
- * @section Genlist_Muti_Selection Multi-selection
-=======
  * @section Genlist_Multi_Selection Multi-selection
->>>>>>> remotes/origin/upstream
  *
  * If the application wants multiple items to be able to be selected,
  * elm_genlist_multi_select_set() can enable this. If the list is
  *
  * @section Genlist_Usage_Hints Usage hints
  *
-<<<<<<< HEAD
- * There are also convenience functions. elm_genlist_item_genlist_get() will
-=======
  * There are also convenience functions. elm_object_item_widget_get() will
->>>>>>> remotes/origin/upstream
  * 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
  * elm_object_item_disabled_get() to get the disabled state.
  *
  * In general to indicate how the genlist should expand items horizontally to
-<<<<<<< HEAD
- * fill the list area, use elm_genlist_horizontal_set(). Valid modes are
-=======
  * fill the list area, use elm_genlist_mode_set(). Valid modes are
->>>>>>> remotes/origin/upstream
  * ELM_LIST_LIMIT and ELM_LIST_SCROLL. The default is ELM_LIST_SCROLL. This
  * mode means that if items are too wide to fit, the scroller will scroll
  * horizontally. Otherwise items are expanded to fill the width of the
  *
  * Items will only call their selection func and callback when first becoming
  * selected. Any further clicks will do nothing, unless you enable always
-<<<<<<< HEAD
- * select with elm_genlist_always_select_mode_set(). This means even if
- * selected, every click will make the selected callbacks be called.
- * elm_genlist_no_select_mode_set() will turn off the ability to select
- * items entirely and they will neither appear selected nor call selected
- * callback functions.
-=======
  * 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.
->>>>>>> remotes/origin/upstream
  *
  * Remember that you can create new styles and add your own theme augmentation
  * per application with elm_theme_extension_add(). If you absolutely must
  *   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
-<<<<<<< HEAD
- *   created. The object may be deleted at any time, so it is up to the
- *   caller to not use the object pointer from elm_genlist_item_object_get()
- *   in a way where it may point to freed objects.
-=======
  *   created.
->>>>>>> remotes/origin/upstream
  * - @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.
  *   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
-<<<<<<< HEAD
- *   amount of time. By default it's 1 second.
-=======
  *   amount of time. By default it's 1 second. The event_info parameter is the
  *   longpressed genlist item.
->>>>>>> remotes/origin/upstream
  * - @c "scroll,anim,start" - This is called when scrolling animation has
  *   started.
  * - @c "scroll,anim,stop" - This is called when scrolling animation has
  * - @c "moved" - This is called when a genlist item is moved.
  * - @c "language,changed" - This is called when the program's language is
  *   changed.
-<<<<<<< HEAD
-=======
  * - @c "tree,effect,finished" - This is called when a genlist tree effect is finished.
->>>>>>> remotes/origin/upstream
  *
  * Supported elm_object common APIs
  * @li elm_object_signal_emit()
  * @{
  */
 
-<<<<<<< HEAD
-=======
 #define ELM_GENLIST_ITEM_CLASS_VERSION ELM_GEN_ITEM_CLASS_VERSION
 #define ELM_GENLIST_ITEM_CLASS_HEADER ELM_GEN_ITEM_CLASS_HEADER
 
->>>>>>> remotes/origin/upstream
 /**
  * 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.
  *
  * @ingroup Genlist
  */
-<<<<<<< HEAD
-typedef enum _Elm_Genlist_Item_Flags
-{
-   ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
-   ELM_GENLIST_ITEM_SUBITEMS = (1 << 0), /**< may expand and have child items */
-   ELM_GENLIST_ITEM_GROUP = (1 << 1), /**< index of a group of items */
-
-   ELM_GENLIST_ITEM_MAX = (1 << 2)
-} Elm_Genlist_Item_Flags;
-
-   typedef enum _Elm_Genlist_Item_Field_Flags
-     {
-        ELM_GENLIST_ITEM_FIELD_ALL = 0,
-        ELM_GENLIST_ITEM_FIELD_TEXT = (1 << 0),
-        ELM_GENLIST_ITEM_FIELD_CONTENT = (1 << 1),
-        ELM_GENLIST_ITEM_FIELD_STATE = (1 << 2)
-     } Elm_Genlist_Item_Field_Flags;
-   typedef struct _Elm_Genlist_Item_Class Elm_Genlist_Item_Class;  /**< Genlist item class definition structs */
-   typedef struct _Elm_Genlist_Item       Elm_Genlist_Item; /**< Item of Elm_Genlist. Sub-type of Elm_Widget_Item */
-   typedef struct _Elm_Genlist_Item_Class_Func Elm_Genlist_Item_Class_Func;
-   typedef char        *(*GenlistItemTextGetFunc) (void *data, Evas_Object *obj, const char *part);
-   typedef Evas_Object *(*GenlistItemContentGetFunc)  (void *data, Evas_Object *obj, const char *part);
-   typedef Eina_Bool    (*GenlistItemStateGetFunc) (void *data, Evas_Object *obj, const char *part);
-   typedef void         (*GenlistItemDelFunc)      (void *data, Evas_Object *obj);
-   typedef void         (*GenlistItemMovedFunc)    ( Evas_Object *genlist, Elm_Object_Item *item, Elm_Object_Item *rel_item, Eina_Bool move_after);
-
-   /**
-    * @struct _Elm_Genlist_Item_Class
-    *
-    * Genlist item class definition structs.
-    *
-    * This struct contains the style and fetching functions that will define the
-    * contents of each item.
-    *
-    * @see @ref Genlist_Item_Class
-    */
-   struct _Elm_Genlist_Item_Class
-     {
-       const char                *item_style;
-       struct {
-          GenlistItemTextGetFunc  text_get;
-          GenlistItemContentGetFunc   content_get;
-          GenlistItemStateGetFunc  state_get;
-          GenlistItemDelFunc       del;
-          GenlistItemMovedFunc     moved;
-        } func;
-        const char *edit_item_style;
-        const char                *mode_item_style;
-     };
-#define Elm_Genlist_Item_Class_Func Elm_Gen_Item_Class_Func
-=======
 typedef enum
 {
    ELM_GENLIST_ITEM_NONE = 0, /**< simple item */
@@ -530,7 +424,6 @@ typedef Elm_Gen_Item_State_Get_Cb Elm_Genlist_Item_State_Get_Cb;
  */
 typedef Elm_Gen_Item_Del_Cb Elm_Genlist_Item_Del_Cb;
 
->>>>>>> remotes/origin/upstream
 /**
  * Add a new genlist widget to the given parent Elementary
  * (container) object
@@ -598,18 +491,11 @@ EAPI Eina_Bool                     elm_genlist_multi_select_get(const Evas_Objec
  * @param mode The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).
  *
  * This sets the mode used for sizing items horizontally. Valid modes
-<<<<<<< HEAD
- * are #ELM_LIST_LIMIT and #ELM_LIST_SCROLL. The default is
-=======
  * are #ELM_LIST_LIMIT, #ELM_LIST_SCROLL, and #ELM_LIST_COMPRESS. The default is
->>>>>>> remotes/origin/upstream
  * 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
-<<<<<<< HEAD
- * limited to that size.
-=======
  * 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,
@@ -621,7 +507,6 @@ EAPI Eina_Bool                     elm_genlist_multi_select_get(const Evas_Objec
  * @note When ELM_LIST_COMPRESS mode is enabled, it also enables
  *       compress mode (see elm_genlist_compress_mode_set()) and
  *       disables homogeneous (see elm_genlist_homogeneous_set()).
->>>>>>> remotes/origin/upstream
  *
  * @see elm_genlist_mode_get()
  *
@@ -636,149 +521,13 @@ EAPI void                          elm_genlist_mode_set(Evas_Object *obj, Elm_Li
  * @return The mode to use
  * (#ELM_LIST_LIMIT, #ELM_LIST_SCROLL)
  *
-<<<<<<< HEAD
- * @see elm_genlist_horizontal_set()
-=======
  * @see elm_genlist_mode_set()
->>>>>>> remotes/origin/upstream
  *
  * @ingroup Genlist
  */
 EAPI Elm_List_Mode                 elm_genlist_mode_get(const Evas_Object *obj);
 
 /**
-<<<<<<< HEAD
- * Set the always select mode.
- *
- * @param obj The genlist object
- * @param always_select The always select mode (@c EINA_TRUE = on, @c
- * EINA_FALSE = off). Default is @c EINA_FALSE.
- *
- * Items will only call their selection func and callback when first
- * becoming selected. Any further clicks will do nothing, unless you
- * enable always select with elm_genlist_always_select_mode_set().
- * This means that, even if selected, every click will make the selected
- * callbacks be called.
- *
- * @see elm_genlist_always_select_mode_get()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_always_select_mode_set(Evas_Object *obj, Eina_Bool always_select);
-
-/**
- * Get the always select mode.
- *
- * @param obj The genlist object
- * @return The always select mode
- * (@c EINA_TRUE = on, @c EINA_FALSE = off)
- *
- * @see elm_genlist_always_select_mode_set()
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool                     elm_genlist_always_select_mode_get(const Evas_Object *obj);
-
-/**
- * Enable/disable the no select mode.
- *
- * @param obj The genlist object
- * @param no_select The no select mode
- * (EINA_TRUE = on, EINA_FALSE = off)
- *
- * This will turn off the ability to select items entirely and they
- * will neither appear selected nor call selected callback functions.
- *
- * @see elm_genlist_no_select_mode_get()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_no_select_mode_set(Evas_Object *obj, Eina_Bool no_select);
-
-/**
- * Gets whether the no select mode is enabled.
- *
- * @param obj The genlist object
- * @return The no select mode
- * (@c EINA_TRUE = on, @c EINA_FALSE = off)
- *
- * @see elm_genlist_no_select_mode_set()
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool                     elm_genlist_no_select_mode_get(const Evas_Object *obj);
-
-/**
- * Enable/disable compress mode.
- *
- * @param obj The genlist object
- * @param compress The compress mode
- * (@c EINA_TRUE = on, @c EINA_FALSE = off). Default is @c EINA_FALSE.
- *
- * This will enable the compress mode where items are "compressed"
- * horizontally to fit the genlist scrollable viewport width. This is
- * special for genlist.  Do not rely on
- * elm_genlist_horizontal_set() being set to @c ELM_LIST_COMPRESS to
- * work as genlist needs to handle it specially.
- *
- * @see elm_genlist_compress_mode_get()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_compress_mode_set(Evas_Object *obj, Eina_Bool compress);
-
-/**
- * Get whether the compress mode is enabled.
- *
- * @param obj The genlist object
- * @return The compress mode
- * (@c EINA_TRUE = on, @c EINA_FALSE = off)
- *
- * @see elm_genlist_compress_mode_set()
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool                     elm_genlist_compress_mode_get(const Evas_Object *obj);
-
-/**
- * Enable/disable height-for-width mode.
- *
- * @param obj The genlist object
- * @param setting The height-for-width mode (@c EINA_TRUE = on,
- * @c EINA_FALSE = off). Default is @c EINA_FALSE.
- *
- * With height-for-width mode 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 This mode will make list resize slower as it will have to
- *       recalculate every item height again whenever the list width
- *       changes!
- *
- * @note When height-for-width mode is enabled, it also enables
- *       compress mode (see elm_genlist_compress_mode_set()) and
- *       disables homogeneous (see elm_genlist_homogeneous_set()).
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_height_for_width_mode_set(Evas_Object *obj, Eina_Bool height_for_width);
-
-/**
- * Get whether the height-for-width mode is enabled.
- *
- * @param obj The genlist object
- * @return The height-for-width mode (@c EINA_TRUE = on, @c EINA_FALSE =
- * off)
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool                     elm_genlist_height_for_width_mode_get(const Evas_Object *obj);
-
-/**
-=======
->>>>>>> remotes/origin/upstream
  * Enable/disable horizontal and vertical bouncing effect.
  *
  * @param obj The genlist object
@@ -813,118 +562,13 @@ EAPI void                          elm_genlist_bounce_set(Evas_Object *obj, Eina
 EAPI void                          elm_genlist_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
 
 /**
-<<<<<<< HEAD
- * Enable/disable homogeneous mode.
- *
- * @param obj The genlist object
- * @param homogeneous Assume the items within the genlist are of the
- * same height and width (EINA_TRUE = on, EINA_FALSE = off). Default is @c
- * EINA_FALSE.
- *
- * 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). This
- * implies 'compressed' mode.
- *
- * @see elm_genlist_compress_mode_set()
- * @see elm_genlist_homogeneous_get()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_homogeneous_set(Evas_Object *obj, Eina_Bool homogeneous);
-
-/**
- * Get whether the homogeneous mode is enabled.
- *
- * @param obj The genlist object
- * @return Assume the items within the genlist are of the same height
- * and width (EINA_TRUE = on, EINA_FALSE = off)
- *
- * @see elm_genlist_homogeneous_set()
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool                     elm_genlist_homogeneous_get(const Evas_Object *obj);
-
-/**
- * Set the maximum number of items within an item block
- *
- * @param obj The genlist object
- * @param n   Maximum number of items within an item block. Default is 32.
- *
- * This will configure the block count to tune to the target with
- * particular performance matrix.
- *
- * A block of objects will be used to reduce the number of operations due to
- * many objects in the screen. It can determine the visibility, or if the
- * object has changed, it theme needs to be updated, etc. doing this kind of
- * calculation to the entire block, instead of per object.
- *
- * The default value for the block count is enough for most lists, so unless
- * you know you will have a lot of objects visible in the screen at the same
- * time, don't try to change this.
- *
- * @see elm_genlist_block_count_get()
- * @see @ref Genlist_Implementation
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_block_count_set(Evas_Object *obj, int n);
-
-/**
- * Get the maximum number of items within an item block
- *
- * @param obj The genlist object
- * @return Maximum number of items within an item block
- *
- * @see elm_genlist_block_count_set()
- *
- * @ingroup Genlist
- */
-EAPI int                           elm_genlist_block_count_get(const Evas_Object *obj);
-
-/**
- * Set the timeout in seconds for the longpress event.
- *
- * @param obj The genlist object
- * @param timeout timeout in seconds. Default is 1.
- *
- * 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.
- *
- * @see elm_genlist_longpress_timeout_set()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_longpress_timeout_set(Evas_Object *obj, double timeout);
-
-/**
- * Get the timeout in seconds for the longpress event.
- *
- * @param obj The genlist object
- * @return timeout in seconds
- *
- * @see elm_genlist_longpress_timeout_get()
- *
- * @ingroup Genlist
- */
-EAPI double                        elm_genlist_longpress_timeout_get(const Evas_Object *obj);
-
-/**
-=======
->>>>>>> remotes/origin/upstream
  * Append a new item in a given genlist widget.
  *
  * @param obj The genlist object
  * @param itc The item class for the item
  * @param data The item data
  * @param parent The parent item, or NULL if none
-<<<<<<< HEAD
- * @param flags Item flags
-=======
  * @param type Item type
->>>>>>> remotes/origin/upstream
  * @param func Convenience function called when the item is selected
  * @param func_data Data passed to @p func above.
  * @return A handle to the item added or @c NULL if not possible
@@ -939,11 +583,7 @@ EAPI double                        elm_genlist_longpress_timeout_get(const Evas_
  *
  * @ingroup Genlist
  */
-<<<<<<< HEAD
-EAPI Elm_Object_Item             *elm_genlist_item_append(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data);
-=======
 EAPI Elm_Object_Item             *elm_genlist_item_append(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data);
->>>>>>> remotes/origin/upstream
 
 /**
  * Prepend a new item in a given genlist widget.
@@ -952,11 +592,7 @@ EAPI Elm_Object_Item             *elm_genlist_item_append(Evas_Object *obj, cons
  * @param itc The item class for the item
  * @param data The item data
  * @param parent The parent item, or NULL if none
-<<<<<<< HEAD
- * @param flags Item flags
-=======
  * @param type Item type
->>>>>>> remotes/origin/upstream
  * @param func Convenience function called when the item is selected
  * @param func_data Data passed to @p func above.
  * @return A handle to the item added or NULL if not possible
@@ -971,11 +607,7 @@ EAPI Elm_Object_Item             *elm_genlist_item_append(Evas_Object *obj, cons
  *
  * @ingroup Genlist
  */
-<<<<<<< HEAD
-EAPI Elm_Object_Item             *elm_genlist_item_prepend(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data);
-=======
 EAPI Elm_Object_Item             *elm_genlist_item_prepend(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data);
->>>>>>> remotes/origin/upstream
 
 /**
  * Insert an item before another in a genlist widget
@@ -983,14 +615,9 @@ EAPI Elm_Object_Item             *elm_genlist_item_prepend(Evas_Object *obj, con
  * @param obj The genlist object
  * @param itc The item class for the item
  * @param data The item data
-<<<<<<< HEAD
- * @param before The item to place this new one before.
- * @param flags Item flags
-=======
  * @param parent The parent item, or NULL if none
  * @param before The item to place this new one before.
  * @param type Item type
->>>>>>> remotes/origin/upstream
  * @param func Convenience function called when the item is selected
  * @param func_data Data passed to @p func above.
  * @return A handle to the item added or @c NULL if not possible
@@ -1005,11 +632,7 @@ EAPI Elm_Object_Item             *elm_genlist_item_prepend(Evas_Object *obj, con
  *
  * @ingroup Genlist
  */
-<<<<<<< HEAD
-EAPI Elm_Object_Item             *elm_genlist_item_insert_before(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *before, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data);
-=======
 EAPI Elm_Object_Item             *elm_genlist_item_insert_before(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *before, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data);
->>>>>>> remotes/origin/upstream
 
 /**
  * Insert an item after another in a genlist widget
@@ -1017,14 +640,9 @@ EAPI Elm_Object_Item             *elm_genlist_item_insert_before(Evas_Object *ob
  * @param obj The genlist object
  * @param itc The item class for the item
  * @param data The item data
-<<<<<<< HEAD
- * @param after The item to place this new one after.
- * @param flags Item flags
-=======
  * @param parent The parent item, or NULL if none
  * @param after The item to place this new one after.
  * @param type Item type
->>>>>>> remotes/origin/upstream
  * @param func Convenience function called when the item is selected
  * @param func_data Data passed to @p func above.
  * @return A handle to the item added or @c NULL if not possible
@@ -1039,11 +657,7 @@ EAPI Elm_Object_Item             *elm_genlist_item_insert_before(Evas_Object *ob
  *
  * @ingroup Genlist
  */
-<<<<<<< HEAD
-EAPI Elm_Object_Item             *elm_genlist_item_insert_after(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *after, Elm_Genlist_Item_Flags flags, Evas_Smart_Cb func, const void *func_data);
-=======
 EAPI Elm_Object_Item             *elm_genlist_item_insert_after(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Object_Item *after, Elm_Genlist_Item_Type type, Evas_Smart_Cb func, const void *func_data);
->>>>>>> remotes/origin/upstream
 
 /**
  * Insert a new item into the sorted genlist object
@@ -1052,630 +666,229 @@ EAPI Elm_Object_Item             *elm_genlist_item_insert_after(Evas_Object *obj
  * @param itc The item class for the item
  * @param data The item data
  * @param parent The parent item, or NULL if none
-<<<<<<< HEAD
- * @param flags Item flags
-=======
  * @param type Item type
->>>>>>> remotes/origin/upstream
  * @param comp The function called for the sort
  * @param func Convenience function called when item selected
- * @param func_data Data passed to @p func above.
- * @return A handle to the item added or NULL if not possible
- *
-<<<<<<< HEAD
- * @ingroup Genlist
- */
-// XXX: deprecate elm_genlist_item_sorted_insert() and rename
-// elm_genlist_item_direct_sorted_insert() 
-EAPI Elm_Object_Item             *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
-EAPI Elm_Object_Item             *elm_genlist_item_direct_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Flags flags, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
-=======
- * This inserts an item in the genlist based on user defined comparison
- * function. The two arguments passed to the function @p func are genlist item
- * handles to compare.
- *
- * @see elm_genlist_item_append()
- * @see elm_genlist_item_prepend()
- * @see elm_genlist_item_insert_after()
- * @see elm_object_item_del()
-
- * @ingroup Genlist
- */
-EAPI Elm_Object_Item             *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
->>>>>>> remotes/origin/upstream
-
-/* operations to retrieve existing items */
-/**
- * Get the selected item in the genlist.
- *
- * @param obj The genlist object
- * @return The selected item, or NULL if none is selected.
- *
- * This gets the selected item in the list (if multi-selection is enabled, only
- * the item that was first selected in the list is returned - which is not very
- * useful, so see elm_genlist_selected_items_get() for when multi-selection is
- * used).
- *
- * If no item is selected, NULL is returned.
- *
- * @see elm_genlist_selected_items_get()
- *
- * @ingroup Genlist
- */
-EAPI Elm_Object_Item             *elm_genlist_selected_item_get(const Evas_Object *obj);
-
-/**
- * Get a list of selected items in the genlist.
- *
- * @param obj The genlist object
- * @return The list of selected items, or NULL if none are selected.
- *
- * It returns a list of the selected items. This list pointer is only valid so
- * long as the selection doesn't change (no items are selected or unselected, or
- * unselected implicitly by deletion). The list contains genlist items
- * pointers. The order of the items in this list is the order which they were
- * selected, i.e. the first item in this list is the first item that was
- * selected, and so on.
- *
- * @note If not in multi-select mode, consider using function
- * elm_genlist_selected_item_get() instead.
- *
- * @see elm_genlist_multi_select_set()
- * @see elm_genlist_selected_item_get()
- *
- * @ingroup Genlist
- */
-EAPI const Eina_List              *elm_genlist_selected_items_get(const Evas_Object *obj);
-
-/**
-<<<<<<< HEAD
- * Get the mode item style of items in the genlist
- * @param obj The genlist object
- * @return The mode item style string, or NULL if none is specified
- *
- * This is a constant string and simply defines the name of the
- * style that will be used for mode animations. It can be
- * @c NULL if you don't plan to use Genlist mode. See
- * elm_genlist_item_mode_set() for more info.
- *
- * @ingroup Genlist
- */
-EAPI const char                   *elm_genlist_mode_item_style_get(const Evas_Object *obj);
-
-/**
- * Set the mode item style of items in the genlist
- * @param obj The genlist object
- * @param style The mode item style string, or NULL if none is desired
- *
- * This is a constant string and simply defines the name of the
- * style that will be used for mode animations. It can be
- * @c NULL if you don't plan to use Genlist mode. See
- * elm_genlist_item_mode_set() for more info.
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_mode_item_style_set(Evas_Object *obj, const char *style);
-
-/**
-=======
->>>>>>> remotes/origin/upstream
- * Get a list of realized items in genlist
- *
- * @param obj The genlist object
- * @return The list of realized items, nor NULL if none are realized.
- *
- * This returns a list of the realized items in the genlist. The list
- * contains genlist item pointers. The list must be freed by the
- * caller when done with eina_list_free(). The item pointers in the
- * list are only valid so long as those items are not deleted or the
- * genlist is not deleted.
- *
- * @see elm_genlist_realized_items_update()
- *
- * @ingroup Genlist
- */
-EAPI Eina_List                    *elm_genlist_realized_items_get(const Evas_Object *obj);
-
-/**
-<<<<<<< HEAD
- * Get the item that is at the x, y canvas coords.
- *
- * @param obj The genlist object.
- * @param x The input x coordinate
- * @param y The input y coordinate
- * @param posret The position relative to the item returned here
- * @return The item at the coordinates or NULL if none
- *
- * This returns the item at the given coordinates (which are canvas
- * relative, not object-relative). If an item is at that coordinate,
- * that item handle is returned, and if @p 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.
- *
- * @ingroup Genlist
- */
-EAPI Elm_Object_Item             *elm_genlist_at_xy_item_get(const Evas_Object *obj, Evas_Coord x, Evas_Coord y, int *posret);
-
-/**
-=======
->>>>>>> remotes/origin/upstream
- * Get the first item in the genlist
- *
- * This returns the first item in the list.
- *
- * @param obj The genlist object
- * @return The first item, or NULL if none
- *
- * @ingroup Genlist
- */
-EAPI Elm_Object_Item             *elm_genlist_first_item_get(const Evas_Object *obj);
-
-/**
- * Get the last item in the genlist
- *
- * This returns the last item in the list.
- *
- * @return The last item, or NULL if none
- *
- * @ingroup Genlist
- */
-EAPI Elm_Object_Item             *elm_genlist_last_item_get(const Evas_Object *obj);
-
-/**
- * Set the scrollbar policy
- *
- * @param obj The genlist object
- * @param policy_h Horizontal scrollbar policy.
- * @param policy_v Vertical scrollbar policy.
- *
- * This sets the scrollbar visibility policy for the given genlist
- * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
- * made visible if it is needed, and otherwise kept hidden.
- * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
- * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
- * respectively for the horizontal and vertical scrollbars. Default is
- * #ELM_SMART_SCROLLER_POLICY_AUTO
- *
- * @see elm_genlist_scroller_policy_get()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
-
-/**
- * Get the scrollbar policy
- *
- * @param obj The genlist object
- * @param policy_h Pointer to store the horizontal scrollbar policy.
- * @param policy_v Pointer to store the vertical scrollbar policy.
- *
- * @see elm_genlist_scroller_policy_set()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
-
-/**
- * Get the @b next item in a genlist widget's internal list of items,
- * given a handle to one of those items.
- *
- * @param it The genlist item to fetch next from
- * @return The item after @p item, or @c NULL if there's none (and
- * on errors)
- *
- * This returns the item placed after the @p item, on the container
- * genlist.
- *
- * @see elm_genlist_item_prev_get()
- *
- * @ingroup Genlist
- */
-EAPI Elm_Object_Item             *elm_genlist_item_next_get(const Elm_Object_Item *it);
-
-/**
- * Get the @b previous item in a genlist widget's internal list of items,
- * given a handle to one of those items.
- *
- * @param it The genlist item to fetch previous from
- * @return The item before @p item, or @c NULL if there's none (and
- * on errors)
- *
- * This returns the item placed before the @p item, on the container
- * genlist.
- *
- * @see elm_genlist_item_next_get()
- *
- * @ingroup Genlist
- */
-EAPI Elm_Object_Item             *elm_genlist_item_prev_get(const Elm_Object_Item *it);
-
-/**
-<<<<<<< HEAD
- * Get the parent item of the given item
- *
- * @param it The item
- * @return The parent of the item or @c NULL if it has no parent.
- *
- * 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
- */
-EAPI Elm_Object_Item             *elm_genlist_item_parent_get(const Elm_Object_Item *it);
-
-/**
- * Remove all sub-items (children) of the given item
- *
- * @param it The item
- *
- * 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
- */
-EAPI void                          elm_genlist_item_subitems_clear(Elm_Object_Item *it);
-
-/**
- * Set whether a given genlist item is selected or not
- *
- * @param it The item
- * @param selected Use @c EINA_TRUE, to make it selected, @c
- * EINA_FALSE to make it unselected
-=======
- * Set whether a given genlist item is selected or not
- *
- * @param it The item
- * @param selected Use @c EINA_TRUE, to make it selected, @c
- * EINA_FALSE to make it unselected
->>>>>>> remotes/origin/upstream
- *
- * 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
- */
-EAPI void                          elm_genlist_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
-
-/**
- * Get whether a given genlist item is selected or not
- *
- * @param it The item
- * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
- *
- * @see elm_genlist_item_selected_set() for more details
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool                     elm_genlist_item_selected_get(const Elm_Object_Item *it);
-
-/**
-<<<<<<< HEAD
- * Sets the expanded state of an item.
- *
- * @param it The item
- * @param expanded The expanded state (@c EINA_TRUE expanded, @c EINA_FALSE not expanded).
- *
- * This function flags the item of type #ELM_GENLIST_ITEM_SUBITEMS as
- * expanded or not.
- *
- * The theme will respond to this change visually, and a signal "expanded" or
- * "contracted" will be sent from the genlist with a pointer to the item that
- * has been expanded/contracted.
- *
- * Calling this function won't show or hide any child of this item (if it is
- * a parent). You must manually delete and create them on the callbacks of
- * the "expanded" or "contracted" signals.
- *
- * @see elm_genlist_item_expanded_get()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_item_expanded_set(Elm_Object_Item *it, Eina_Bool expanded);
-
-/**
- * Get the expanded state of an item
- *
- * @param it The item
- * @return The expanded state
- *
- * This gets the expanded state of an item.
- *
- * @see elm_genlist_item_expanded_set()
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool                     elm_genlist_item_expanded_get(const Elm_Object_Item *it);
-
-/**
- * Get the depth of expanded item
- *
- * @param it The genlist item object
- * @return The depth of expanded item
- *
- * @ingroup Genlist
- */
-EAPI int                           elm_genlist_item_expanded_depth_get(const Elm_Object_Item *it);
-
-
-/**
- * Sets the display only state of an item.
- *
- * @param it The item
- * @param display_only @c EINA_TRUE if the item is display only, @c
- * EINA_FALSE otherwise.
- *
- * A display only item cannot be selected or unselected. It is for
- * display only and not selecting or otherwise clicking, dragging
- * etc. by the user, thus finger size rules will not be applied to
- * this item.
- *
- * It's good to set group index items to display only state.
- *
- * @see elm_genlist_item_display_only_get()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_item_display_only_set(Elm_Object_Item *it, Eina_Bool display_only);
-
-/**
- * Get the display only state of an item
- *
- * @param it The item
- * @return @c EINA_TRUE if the item is display only, @c
- * EINA_FALSE otherwise.
- *
- * @see elm_genlist_item_display_only_set()
- *
- * @ingroup Genlist
- */
-EAPI Eina_Bool                     elm_genlist_item_display_only_get(const Elm_Object_Item *it);
-
-/**
-=======
->>>>>>> remotes/origin/upstream
- * Show the portion of a genlist's internal list containing a given
- * item, immediately.
- *
- * @param it The item to display
-<<<<<<< HEAD
- *
- * This causes genlist to jump to the given item @p it and show it (by
- * immediately scrolling to that position), if it is not fully visible.
- *
- * @see elm_genlist_item_bring_in()
- * @see elm_genlist_item_top_show()
- * @see elm_genlist_item_middle_show()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_item_show(Elm_Object_Item *it);
-=======
- * @param type The position to bring in, the given item to.
- *             @ref Elm_Genlist_Item_Scrollto_Type
- *
- * 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.
+ * @param func_data Data passed to @p func above.
+ * @return A handle to the item added or NULL if not possible
  *
- * @see elm_genlist_item_bring_in()
+ * This inserts an item in the genlist based on user defined comparison
+ * function. The two arguments passed to the function @p func are genlist item
+ * handles to compare.
  *
+ * @see elm_genlist_item_append()
+ * @see elm_genlist_item_prepend()
+ * @see elm_genlist_item_insert_after()
+ * @see elm_object_item_del()
+
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_show(Elm_Object_Item *it, Elm_Genlist_Item_Scrollto_Type type);
->>>>>>> remotes/origin/upstream
+EAPI Elm_Object_Item             *elm_genlist_item_sorted_insert(Evas_Object *obj, const Elm_Genlist_Item_Class *itc, const void *data, Elm_Object_Item *parent, Elm_Genlist_Item_Type type, Eina_Compare_Cb comp, Evas_Smart_Cb func, const void *func_data);
 
+/* operations to retrieve existing items */
 /**
- * Animatedly bring in, to the visible are of a genlist, a given
- * item on it.
+ * Get the selected item in the genlist.
  *
- * @param it The item to display
-<<<<<<< HEAD
+ * @param obj The genlist object
+ * @return The selected item, or NULL if none is selected.
  *
- * 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
- * to do so and take a period of time
+ * This gets the selected item in the list (if multi-selection is enabled, only
+ * the item that was first selected in the list is returned - which is not very
+ * useful, so see elm_genlist_selected_items_get() for when multi-selection is
+ * used).
  *
- * @see elm_genlist_item_show()
- * @see elm_genlist_item_top_bring_in()
- * @see elm_genlist_item_middle_bring_in()
+ * If no item is selected, NULL is returned.
+ *
+ * @see elm_genlist_selected_items_get()
  *
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_bring_in(Elm_Object_Item *it);
+EAPI Elm_Object_Item             *elm_genlist_selected_item_get(const Evas_Object *obj);
 
 /**
- * Show the portion of a genlist's internal list containing a given
- * item, immediately.
+ * Get a list of selected items in the genlist.
  *
- * @param it The item to display
+ * @param obj The genlist object
+ * @return The list of selected items, or NULL if none are selected.
  *
- * This causes genlist to jump to the given item @p it and show it (by
- * immediately scrolling to that position), if it is not fully visible.
+ * It returns a list of the selected items. This list pointer is only valid so
+ * long as the selection doesn't change (no items are selected or unselected, or
+ * unselected implicitly by deletion). The list contains genlist items
+ * pointers. The order of the items in this list is the order which they were
+ * selected, i.e. the first item in this list is the first item that was
+ * selected, and so on.
  *
- * The item will be positioned at the top of the genlist viewport.
+ * @note If not in multi-select mode, consider using function
+ * elm_genlist_selected_item_get() instead.
  *
- * @see elm_genlist_item_show()
- * @see elm_genlist_item_top_bring_in()
+ * @see elm_genlist_multi_select_set()
+ * @see elm_genlist_selected_item_get()
  *
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_top_show(Elm_Object_Item *it);
+EAPI const Eina_List              *elm_genlist_selected_items_get(const Evas_Object *obj);
 
 /**
- * Animatedly bring in, to the visible are of a genlist, a given
- * item on it.
- *
- * @param it The item
+ * Get a list of realized items in genlist
  *
- * 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
- * to do so and take a period of time
+ * @param obj The genlist object
+ * @return The list of realized items, nor NULL if none are realized.
  *
- * The item will be positioned at the top of the genlist viewport.
+ * This returns a list of the realized items in the genlist. The list
+ * contains genlist item pointers. The list must be freed by the
+ * caller when done with eina_list_free(). The item pointers in the
+ * list are only valid so long as those items are not deleted or the
+ * genlist is not deleted.
  *
- * @see elm_genlist_item_bring_in()
- * @see elm_genlist_item_top_show()
+ * @see elm_genlist_realized_items_update()
  *
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_top_bring_in(Elm_Object_Item *it);
+EAPI Eina_List                    *elm_genlist_realized_items_get(const Evas_Object *obj);
 
 /**
- * Show the portion of a genlist's internal list containing a given
- * item, immediately.
+ * Get the first item in the genlist
  *
- * @param it The item to display
+ * This returns the first item in the list.
  *
- * This causes genlist to jump to the given item @p it and show it (by
- * immediately scrolling to that position), if it is not fully visible.
+ * @param obj The genlist object
+ * @return The first item, or NULL if none
  *
- * The item will be positioned at the middle of the genlist viewport.
+ * @ingroup Genlist
+ */
+EAPI Elm_Object_Item             *elm_genlist_first_item_get(const Evas_Object *obj);
+
+/**
+ * Get the last item in the genlist
  *
- * @see elm_genlist_item_show()
- * @see elm_genlist_item_middle_bring_in()
+ * This returns the last item in the list.
+ *
+ * @return The last item, or NULL if none
  *
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_middle_show(Elm_Object_Item *it);
+EAPI Elm_Object_Item             *elm_genlist_last_item_get(const Evas_Object *obj);
 
 /**
- * Animatedly bring in, to the visible are of a genlist, a given
- * item on it.
- *
- * @param it The item
+ * Set the scrollbar policy
  *
- * 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
- * to do so and take a period of time
+ * @param obj The genlist object
+ * @param policy_h Horizontal scrollbar policy.
+ * @param policy_v Vertical scrollbar policy.
  *
- * The item will be positioned at the middle of the genlist viewport.
+ * This sets the scrollbar visibility policy for the given genlist
+ * scroller. #ELM_SMART_SCROLLER_POLICY_AUTO means the scrollbar is
+ * made visible if it is needed, and otherwise kept hidden.
+ * #ELM_SMART_SCROLLER_POLICY_ON turns it on all the time, and
+ * #ELM_SMART_SCROLLER_POLICY_OFF always keeps it off. This applies
+ * respectively for the horizontal and vertical scrollbars. Default is
+ * #ELM_SMART_SCROLLER_POLICY_AUTO
  *
- * @see elm_genlist_item_bring_in()
- * @see elm_genlist_item_middle_show()
+ * @see elm_genlist_scroller_policy_get()
  *
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_middle_bring_in(Elm_Object_Item *it);
+EAPI void                          elm_genlist_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
 
 /**
- * Tells genlist to "orphan" contents fetched by the item class
+ * Get the scrollbar policy
  *
- * @param it The item
+ * @param obj The genlist object
+ * @param policy_h Pointer to store the horizontal scrollbar policy.
+ * @param policy_v Pointer to store the vertical scrollbar policy.
  *
- * 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.
+ * @see elm_genlist_scroller_policy_set()
  *
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_contents_orphan(Elm_Object_Item *it);
+EAPI void                          elm_genlist_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
 
 /**
- * Get the real Evas object created to implement the view of a
- * given genlist item
+ * Get the @b next item in a genlist widget's internal list of items,
+ * given a handle to one of those items.
  *
- * @param it The genlist item.
- * @return the Evas object implementing this item's view.
+ * @param it The genlist item to fetch next from
+ * @return The item after @p item, or @c NULL if there's none (and
+ * on errors)
  *
- * This returns the actual Evas object used to implement the
- * specified genlist item's view. This may be @c NULL, as it may
- * not have been created or may have been deleted, at any time, by
- * the genlist. <b>Do not modify this object</b> (move, resize,
- * show, hide, etc.), as the genlist is controlling it. This
- * function is for querying, emitting custom signals or hooking
- * lower level callbacks for events on that object. Do not delete
- * this object under any circumstances.
+ * This returns the item placed after the @p item, on the container
+ * genlist.
  *
- * @see elm_object_item_data_get()
+ * @see elm_genlist_item_prev_get()
  *
  * @ingroup Genlist
  */
-EAPI const Evas_Object            *elm_genlist_item_object_get(const Elm_Object_Item *it);
+EAPI Elm_Object_Item             *elm_genlist_item_next_get(const Elm_Object_Item *it);
 
 /**
- * Update the contents of an item
- *
- * @param it The item
+ * Get the @b previous item in a genlist widget's internal list of items,
+ * given a handle to one of those items.
  *
- * 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.
+ * @param it The genlist item to fetch previous from
+ * @return The item before @p item, or @c NULL if there's none (and
+ * on errors)
  *
- * Use elm_genlist_realized_items_update() to update all already realized
- * items.
+ * This returns the item placed before the @p item, on the container
+ * genlist.
  *
- * @see elm_genlist_realized_items_update()
+ * @see elm_genlist_item_next_get()
  *
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_update(Elm_Object_Item *it);
+EAPI Elm_Object_Item             *elm_genlist_item_prev_get(const Elm_Object_Item *it);
 
 /**
- * Promote an item to the top of the list
+ * Set whether a given genlist item is selected or not
  *
  * @param it The item
+ * @param selected Use @c EINA_TRUE, to make it selected, @c
+ * EINA_FALSE to make it unselected
+ *
+ * This sets the selected state of an item. If multi selection is
+ * not enabled on the containing genlist and @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
  */
-EAPI void                          elm_genlist_item_promote(Elm_Object_Item *it);
+EAPI void                          elm_genlist_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
 
 /**
- * Demote an item to the end of the list
+ * Get whether a given genlist item is selected or not
  *
  * @param it The item
+ * @return @c EINA_TRUE, if it's selected, @c EINA_FALSE otherwise
+ *
+ * @see elm_genlist_item_selected_set() for more details
  *
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_demote(Elm_Object_Item *it);
+EAPI Eina_Bool                     elm_genlist_item_selected_get(const Elm_Object_Item *it);
 
 /**
- * Update the part of an item
- *
- * @param it The item
- * @param parts The name of item's part
- * @param itf The flags of item's part type
+ * Show the portion of a genlist's internal list containing a given
+ * item, immediately.
  *
- * 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.
+ * @param it The item to display
+ * @param type The position to bring in, the given item to.
+ *             @ref Elm_Genlist_Item_Scrollto_Type
  *
- * Use elm_genlist_realized_items_update() to update an item's all
- * property.
+ * 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_update()
+ * @see elm_genlist_item_bring_in()
  *
  * @ingroup Genlist
  */
-EAPI void                          elm_genlist_item_fields_update(Elm_Object_Item *it, const char *parts, Elm_Genlist_Item_Field_Flags itf);
+EAPI void                          elm_genlist_item_show(Elm_Object_Item *it, Elm_Genlist_Item_Scrollto_Type type);
 
 /**
- * Update the item class of an item
- *
- * @param it The item
- * @param itc The item class for the item
- *
- * This sets another class of the item, changing the way that it is
- * displayed. After changing the item class, elm_genlist_item_update() is
- * called on the item @p it.
+ * Animatedly bring in, to the visible are of a genlist, a given
+ * item on it.
  *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_item_item_class_update(Elm_Object_Item *it, const Elm_Genlist_Item_Class *itc);
-EAPI const Elm_Genlist_Item_Class *elm_genlist_item_item_class_get(const Elm_Object_Item *it);
-=======
+ * @param it The item to display
  * @param type The position to bring in, the given item to.
  *             @ref Elm_Genlist_Item_Scrollto_Type
  *
@@ -1835,7 +1048,6 @@ EAPI void elm_genlist_item_class_ref(Elm_Genlist_Item_Class *itc);
  * @ingroup Genlist
  */
 EAPI void elm_genlist_item_class_unref(Elm_Genlist_Item_Class *itc);
->>>>>>> remotes/origin/upstream
 
 /**
  * Set the text to be shown in a given genlist item's tooltips.
@@ -2093,59 +1305,6 @@ EAPI void                          elm_genlist_item_cursor_engine_only_set(Elm_O
 EAPI Eina_Bool                     elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *it);
 
 /**
-<<<<<<< HEAD
- * Get the index of the item. It is only valid once displayed.
- *
- * @param item a genlist item
- * @return the position inside the list of item.
- *
- * @ingroup Genlist
- */
-EAPI int                           elm_genlist_item_index_get(Elm_Object_Item *it);
-
-/**
- * Update the contents of all realized items.
- *
- * @param obj The genlist object.
- *
- * This updates all realized items by calling all the item class functions again
- * to get the contents, texts and states. Use this when the original
- * item data has changed and the changes are desired to be reflected.
- *
- * To update just one item, use elm_genlist_item_update().
- *
- * @see elm_genlist_realized_items_get()
- * @see elm_genlist_item_update()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_realized_items_update(Evas_Object *obj);
-
-/**
- * Activate a genlist mode on an item
- *
- * @param item The genlist item
- * @param mode Mode name
- * @param mode_set Boolean to define set or unset mode.
- *
- * A genlist mode is a different way of selecting an item. Once a mode is
- * activated on an item, any other selected item is immediately unselected.
- * This feature provides an easy way of implementing a new kind of animation
- * for selecting an item, without having to entirely rewrite the item style
- * theme. However, the elm_genlist_selected_* API can't be used to get what
- * item is activate for a mode.
- *
- * The current item style will still be used, but applying a genlist mode to
- * an item will select it using a different kind of animation.
- *
- * The current active item for a mode can be found by
- * elm_genlist_mode_item_get().
- *
- * The characteristics of genlist mode are:
- * - Only one mode can be active at any time, and for only one item.
- * - Genlist handles deactivating other items when one item is activated.
- * - A mode is defined in the genlist theme (edc), and more modes can easily
-=======
  * Enable/disable homogeneous mode.
  *
  * @param obj The genlist object
@@ -2424,7 +1583,6 @@ EAPI void                          elm_genlist_item_fields_update(Elm_Object_Ite
  * - 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
->>>>>>> remotes/origin/upstream
  *   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
@@ -2437,19 +1595,11 @@ EAPI void                          elm_genlist_item_fields_update(Elm_Object_Ite
  * destroyed after the mode is totally deactivated from that item.
  *
  * @see elm_genlist_mode_get()
-<<<<<<< HEAD
- * @see elm_genlist_mode_item_get()
- *
- * @ingroup Genlist
- */
-EAPI void                          elm_genlist_item_mode_set(Elm_Object_Item *it, const char *mode_type, Eina_Bool mode_set);
-=======
  * @see elm_genlist_decorated_item_get()
  *
  * @ingroup Genlist
  */
 EAPI void                          elm_genlist_item_decorate_mode_set(Elm_Object_Item *it, const char *mode_type, Eina_Bool mode_set);
->>>>>>> remotes/origin/upstream
 
 /**
  * Get the last (or current) genlist mode used.
@@ -2459,21 +1609,12 @@ EAPI void                          elm_genlist_item_decorate_mode_set(Elm_Object
  * This function just returns the name of the last used genlist mode. It will
  * be the current mode if it's still active.
  *
-<<<<<<< HEAD
- * @see elm_genlist_item_mode_set()
- * @see elm_genlist_mode_item_get()
- *
- * @ingroup Genlist
- */
-EAPI const char                   *elm_genlist_mode_type_get(const Evas_Object *obj);
-=======
  * @see elm_genlist_item_decorate_mode_set()
  * @see elm_genlist_decorated_item_get()
  *
  * @ingroup Genlist
  */
 EAPI const char                   *elm_genlist_item_decorate_mode_get(const Evas_Object *obj);
->>>>>>> remotes/origin/upstream
 
 /**
  * Get active genlist mode item
@@ -2483,24 +1624,14 @@ EAPI const char                   *elm_genlist_item_decorate_mode_get(const Evas
  * activated with any mode.
  *
  * This function returns the item that was activated with a mode, by the
-<<<<<<< HEAD
- * function elm_genlist_item_mode_set().
- *
- * @see elm_genlist_item_mode_set()
-=======
  * function elm_genlist_item_decorate_mode_set().
  *
  * @see elm_genlist_item_decorate_mode_set()
->>>>>>> remotes/origin/upstream
  * @see elm_genlist_mode_get()
  *
  * @ingroup Genlist
  */
-<<<<<<< HEAD
-EAPI const Elm_Object_Item       *elm_genlist_mode_item_get(const Evas_Object *obj);
-=======
 EAPI const Elm_Object_Item       *elm_genlist_decorated_item_get(const Evas_Object *obj);
->>>>>>> remotes/origin/upstream
 
 /**
  * Set reorder mode
@@ -2525,44 +1656,16 @@ EAPI void                          elm_genlist_reorder_mode_set(Evas_Object *obj
 EAPI Eina_Bool                     elm_genlist_reorder_mode_get(const Evas_Object *obj);
 
 /**
-<<<<<<< HEAD
- * Get the Item's Flags
- *
- * @param item The genlist item
- * @return The item flags.
-=======
  * Get the Item's Type 
  *
  * @param it The genlist item
  * @return The item type.
->>>>>>> remotes/origin/upstream
  *
  * This function returns the item's type. Normally the item's type.
  * If it failed, return value is ELM_GENLIST_ITEM_MAX
  *
  * @ingroup Genlist
  */
-<<<<<<< HEAD
-EAPI Elm_Genlist_Item_Flags        elm_genlist_item_flags_get(const Elm_Object_Item *it);
-
-   EAPI void               elm_genlist_edit_mode_set(Evas_Object *obj, Eina_Bool edit_mode) EINA_ARG_NONNULL(1);
-   EAPI Eina_Bool          elm_genlist_edit_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
-   EAPI void               elm_genlist_item_rename_mode_set(Elm_Object_Item *it, Eina_Bool renamed) EINA_ARG_NONNULL(1);
-   EAPI Eina_Bool          elm_genlist_item_rename_mode_get(Elm_Object_Item *item) EINA_ARG_NONNULL(1);
-   EAPI void               elm_genlist_item_move_after(Elm_Object_Item *it, Elm_Object_Item *after ) EINA_ARG_NONNULL(1, 2);
-   EAPI void               elm_genlist_item_move_before(Elm_Object_Item *it, Elm_Object_Item *before) EINA_ARG_NONNULL(1, 2);
-   EAPI void               elm_genlist_effect_set(const Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
-   EAPI void               elm_genlist_pinch_zoom_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
-   EAPI void               elm_genlist_pinch_zoom_mode_set(Evas_Object *obj, Eina_Bool emode) EINA_ARG_NONNULL(1);
-   EAPI Eina_Bool          elm_genlist_pinch_zoom_mode_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
-
-   EAPI void               elm_genlist_item_no_select_mode_set(Elm_Object_Item *it, Eina_Bool no_select) EINA_ARG_NONNULL(1);
-   EAPI Eina_Bool          elm_genlist_item_no_select_mode_get(const Elm_Object_Item *it) EINA_ARG_NONNULL(1);
-
-   /**
-    * @}
-    */
-=======
 EAPI Elm_Genlist_Item_Type        elm_genlist_item_type_get(const Elm_Object_Item *it);
 
 /**
@@ -2759,4 +1862,3 @@ elm_genlist_item_select_mode_get(const Elm_Object_Item *it);
 /**
  * @}
  */
->>>>>>> remotes/origin/upstream