elementary/font - actually it doesnt append the font to the hash when font_hash is...
[framework/uifw/elementary.git] / src / lib / elm_index.h
index 60d36aa..64c210d 100644 (file)
@@ -1,5 +1,6 @@
 /**
  * @defgroup Index Index
+ * @ingroup Elementary
  *
  * @image html img/widget/index/preview-00.png
  * @image latex img/widget/index/preview-00.eps
@@ -48,7 +49,6 @@
  * @addtogroup Index
  * @{
  */
-
 /**
  * Add a new index widget to the given parent Elementary
  * (container) object
@@ -80,7 +80,7 @@ EAPI void                  elm_index_autohide_disabled_set(Evas_Object *obj, Ein
  * @param obj The index object
  * @return @c EINA_TRUE, if auto hiding is disabled, @c EINA_FALSE otherwise
  *
- * @see elm_index_active_set() for more details
+ * @see elm_index_autohide_disabled_set() for more details
  *
  * @ingroup Index
  */
@@ -111,9 +111,31 @@ EAPI void                  elm_index_item_level_set(Evas_Object *obj, int level)
 EAPI int                   elm_index_item_level_get(const Evas_Object *obj);
 
 /**
+ * Set the selected state of an item.
+ *
+ * @param it The index item
+ * @param selected The selected state
+ *
+ * This sets the selected state of the given item @p it.
+ * @c EINA_TRUE for selected, @c EINA_FALSE for not selected.
+ *
+ * If a new item is selected the previously selected will be unselected.
+ * Previously selected item can be get with function
+ * elm_index_selected_item_get().
+ *
+ * Selected items will be highlighted.
+ *
+ * @see elm_index_selected_item_get()
+ *
+ * @ingroup Index
+ */
+EAPI void                  elm_index_item_selected_set(Elm_Object_Item *it, Eina_Bool selected);
+
+/**
  * Returns the last selected item, for a given index widget.
  *
  * @param obj The index object.
+ * @param level @c 0 or @c 1, the currently implemented levels.
  * @return The last item @b selected on @p obj (or @c NULL, on errors).
  *
  * @ingroup Index
@@ -127,7 +149,7 @@ EAPI Elm_Object_Item      *elm_index_selected_item_get(const Evas_Object *obj, i
  * @param letter Letter under which the item should be indexed
  * @param func The function to call when the item is selected.
  * @param data The item data to set for the index's item
- * @return A handle to the item added or @c NULL, on errors 
+ * @return A handle to the item added or @c NULL, on errors
  *
  * Despite the most common usage of the @p letter argument is for
  * single char strings, one could use arbitrary strings as index
@@ -147,7 +169,7 @@ EAPI Elm_Object_Item      *elm_index_item_append(Evas_Object *obj, const char *l
  * @param letter Letter under which the item should be indexed
  * @param func The function to call when the item is selected.
  * @param data The item data to set for the index's item
- * @return A handle to the item added or @c NULL, on errors 
+ * @return A handle to the item added or @c NULL, on errors
  *
  * Despite the most common usage of the @p letter argument is for
  * single char strings, one could use arbitrary strings as index
@@ -168,7 +190,7 @@ EAPI Elm_Object_Item      *elm_index_item_prepend(Evas_Object *obj, const char *
  * @param letter Letter under which the item should be indexed
  * @param func The function to call when the item is clicked.
  * @param data The item data to set for the index's item
- * @return A handle to the item added or @c NULL, on errors 
+ * @return A handle to the item added or @c NULL, on errors
  *
  * Despite the most common usage of the @p letter argument is for
  * single char strings, one could use arbitrary strings as index
@@ -192,7 +214,7 @@ EAPI Elm_Object_Item      *elm_index_item_insert_after(Evas_Object *obj, Elm_Obj
  * @param letter Letter under which the item should be indexed
  * @param func The function to call when the item is clicked.
  * @param data The item data to set for the index's item
- * @return A handle to the item added or @c NULL, on errors 
+ * @return A handle to the item added or @c NULL, on errors
  *
  * Despite the most common usage of the @p letter argument is for
  * single char strings, one could use arbitrary strings as index
@@ -230,7 +252,7 @@ EAPI Elm_Object_Item      *elm_index_item_insert_before(Evas_Object *obj, Elm_Ob
  * because all references to it will be lost. If this function is
  * not provided (@c NULL is given), index items will be @b
  * duplicated, if @p cmp_func returns @c 0.
- * @return A handle to the item added or @c NULL, on errors 
+ * @return A handle to the item added or @c NULL, on errors
  *
  * Despite the most common usage of the @p letter argument is for
  * single char strings, one could use arbitrary strings as index