2011-12-29 23:20:48 -08:00
|
|
|
/**
|
2016-03-16 08:05:31 -07:00
|
|
|
* @defgroup Elm_List List
|
2011-12-29 23:20:48 -08:00
|
|
|
* @ingroup Elementary
|
|
|
|
*
|
2012-07-04 14:43:05 -07:00
|
|
|
* @image html list_inheritance_tree.png
|
|
|
|
* @image latex list_inheritance_tree.eps
|
|
|
|
*
|
2011-12-29 23:20:48 -08:00
|
|
|
* @image html img/widget/list/preview-00.png
|
|
|
|
* @image latex img/widget/list/preview-00.eps width=\textwidth
|
|
|
|
*
|
|
|
|
* @image html img/list.png
|
|
|
|
* @image latex img/list.eps width=\textwidth
|
|
|
|
*
|
2012-07-04 14:43:05 -07:00
|
|
|
* A list widget is a container whose children are displayed
|
|
|
|
* vertically or horizontally, in order, and can be selected. The list
|
|
|
|
* can accept only one or multiple item selections. Also has many
|
2011-12-29 23:20:48 -08:00
|
|
|
* modes of items displaying.
|
|
|
|
*
|
2012-07-04 14:43:05 -07:00
|
|
|
* A list is a very simple type of list widget. For more robust lists,
|
|
|
|
* @ref Genlist should probably be used.
|
|
|
|
*
|
|
|
|
* This widget inherits from the @ref Layout one, so that all the
|
|
|
|
* functions acting on it also work for list objects.
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2012-07-04 14:43:05 -07:00
|
|
|
* This widget emits the following signals, besides the ones sent from
|
|
|
|
* @ref Layout:
|
2011-12-29 23:20:48 -08:00
|
|
|
* - @c "activated" - The user has double-clicked or pressed
|
2014-07-19 09:50:03 -07:00
|
|
|
* (enter|return|spacebar) on an item. The @p event_info parameter
|
2011-12-29 23:20:48 -08:00
|
|
|
* is the item that was activated.
|
|
|
|
* - @c "clicked,double" - The user has double-clicked an item.
|
2014-07-19 09:50:03 -07:00
|
|
|
* The @p event_info parameter is the item that was double-clicked.
|
2014-12-29 03:17:41 -08:00
|
|
|
* - @c "clicked,right" - The user has right-clicked an item. The @p
|
|
|
|
* event_info parameter is the item that was right-clicked. (since 1.13)
|
2012-07-04 14:43:05 -07:00
|
|
|
* - @c "selected" - when the user selected an item
|
|
|
|
* - @c "unselected" - when the user unselected an item
|
|
|
|
* - @c "longpressed" - an item in the list is long-pressed
|
|
|
|
* - @c "edge,top" - the list is scrolled until the top edge
|
|
|
|
* - @c "edge,bottom" - the list is scrolled until the bottom edge
|
|
|
|
* - @c "edge,left" - the list is scrolled until the left edge
|
|
|
|
* - @c "edge,right" - the list is scrolled until the right edge
|
2013-03-26 10:41:34 -07:00
|
|
|
* - @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
|
2014-08-21 07:51:10 -07:00
|
|
|
* physically highlighted. The @p event_info parameter is the item that was
|
2013-03-26 10:41:34 -07:00
|
|
|
* 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
|
2014-08-21 07:51:10 -07:00
|
|
|
* is physically unhighlighted. The @p event_info parameter is the item that
|
2013-03-26 10:41:34 -07:00
|
|
|
* was unhighlighted.
|
2012-07-04 14:43:05 -07:00
|
|
|
* - @c "language,changed" - the program's language changed
|
elm: added more "focused" and "unfocused" documentations.
genlist, hover, index, list, map, photocam, progressbar, radio, scroller, slider, slideshow, spinner, toolbar, win.
2013-06-09 22:12:51 -07:00
|
|
|
* - @c "focused" - When the list has received focus. (since 1.8)
|
|
|
|
* - @c "unfocused" - When the list has lost focus. (since 1.8)
|
2014-02-18 09:28:56 -08:00
|
|
|
* - @c "item,focused" - When the list item has received focus. (since 1.10)
|
|
|
|
* - @c "item,unfocused" - When the list item has lost focus. (since 1.10)
|
2012-07-04 14:43:05 -07:00
|
|
|
*
|
|
|
|
* Available styles for it are:
|
2011-12-29 23:20:48 -08:00
|
|
|
* - @c "default"
|
|
|
|
*
|
2012-07-04 14:43:05 -07:00
|
|
|
* Default content parts of the list items that you can use are:
|
|
|
|
* @li @c "start" - A start position object in the list item
|
|
|
|
* @li @c "end" - An end position object in the list item
|
2013-07-13 00:07:12 -07:00
|
|
|
* Another parts for customized styles are not accepted.
|
2012-01-11 23:51:15 -08:00
|
|
|
*
|
2012-07-04 14:43:05 -07:00
|
|
|
* Default text parts of the list items that you can use are:
|
2014-09-04 09:11:58 -07:00
|
|
|
* @li @c "default" - A label in the list item
|
2013-07-13 00:07:12 -07:00
|
|
|
* Another parts for customized styles are not accepted.
|
2012-01-11 23:51:15 -08:00
|
|
|
*
|
2012-07-04 14:43:05 -07:00
|
|
|
* Supported @c elm_object_item common APIs.
|
2012-04-17 13:33:59 -07:00
|
|
|
* @li @ref elm_object_item_disabled_set
|
|
|
|
* @li @ref elm_object_item_disabled_get
|
|
|
|
* @li @ref elm_object_item_part_text_set
|
|
|
|
* @li @ref elm_object_item_part_text_get
|
|
|
|
* @li @ref elm_object_item_part_content_set
|
|
|
|
* @li @ref elm_object_item_part_content_get
|
|
|
|
* @li @ref elm_object_item_part_content_unset
|
2013-09-17 09:56:16 -07:00
|
|
|
* @li @ref elm_object_item_del
|
2013-05-26 21:25:18 -07:00
|
|
|
* @li @ref elm_object_item_signal_emit
|
2012-01-11 23:51:15 -08:00
|
|
|
*
|
2012-07-04 14:43:05 -07:00
|
|
|
* 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 lists.
|
|
|
|
*
|
|
|
|
* Some calls on the list'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).
|
|
|
|
*
|
2011-12-29 23:20:48 -08:00
|
|
|
* List of examples:
|
|
|
|
* @li @ref list_example_01
|
|
|
|
* @li @ref list_example_02
|
|
|
|
* @li @ref list_example_03
|
|
|
|
*/
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
2016-03-16 08:05:31 -07:00
|
|
|
* @addtogroup Elm_List
|
2011-12-29 23:20:48 -08:00
|
|
|
* @{
|
|
|
|
*/
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2013-04-29 00:03:21 -07:00
|
|
|
#ifndef EFL_NOLEGACY_API_SUPPORT
|
|
|
|
#include <elm_list_legacy.h>
|
|
|
|
#endif
|
2012-03-19 00:27:53 -07:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|