2011-12-29 23:20:48 -08:00
|
|
|
/**
|
2018-09-21 01:25:56 -07:00
|
|
|
* @defgroup Elm_Segment_Control SegmentControl
|
2011-12-29 23:20:48 -08:00
|
|
|
* @ingroup Elementary
|
|
|
|
*
|
2012-06-05 15:41:21 -07:00
|
|
|
* @image html segment_control_inheritance_tree.png
|
|
|
|
* @image latex segment_control_inheritance_tree.eps
|
|
|
|
*
|
2011-12-29 23:20:48 -08:00
|
|
|
* @image html img/widget/segment_control/preview-00.png
|
|
|
|
* @image latex img/widget/segment_control/preview-00.eps width=\textwidth
|
|
|
|
*
|
|
|
|
* @image html img/segment_control.png
|
|
|
|
* @image latex img/segment_control.eps width=\textwidth
|
|
|
|
*
|
|
|
|
* Segment control widget is a horizontal control made of multiple segment
|
|
|
|
* items, each segment item functioning similar to discrete two state button.
|
|
|
|
* A segment control groups the items together and provides compact
|
|
|
|
* single button with multiple equal size segments.
|
|
|
|
*
|
|
|
|
* Segment item size is determined by base widget
|
|
|
|
* size and the number of items added.
|
|
|
|
* Only one segment item can be at selected state. A segment item can display
|
|
|
|
* combination of Text and any Evas_Object like Images or other widget.
|
|
|
|
*
|
2012-05-03 15:43:26 -07:00
|
|
|
* This widget inherits from the @ref Layout one, so that all the
|
|
|
|
* functions acting on it also work for segment control objects.
|
|
|
|
*
|
|
|
|
* This widget emits the following signals, besides the ones sent from
|
|
|
|
* @ref Layout:
|
|
|
|
* - @c "changed" - When the user clicks on a segment item which is not
|
2011-12-29 23:20:48 -08:00
|
|
|
* previously selected and get selected. The event_info parameter is the
|
|
|
|
* segment item pointer.
|
2014-01-23 03:07:20 -08:00
|
|
|
* - @c "language,changed" - the program's language changed (since 1.9)
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* Available styles for it:
|
|
|
|
* - @c "default"
|
|
|
|
*
|
2012-02-27 18:39:31 -08:00
|
|
|
* Default content parts of the segment control items that you can use for are:
|
2012-01-08 22:55:51 -08:00
|
|
|
* @li "icon" - An icon in a segment control item
|
|
|
|
*
|
|
|
|
* Default text parts of the segment control items that you can use for are:
|
2014-09-04 09:11:58 -07:00
|
|
|
* @li "default" - A title label in a segment control item
|
2012-01-08 22:55:51 -08:00
|
|
|
*
|
|
|
|
* Supported elm_object common APIs.
|
|
|
|
* @li elm_object_disabled_set
|
|
|
|
* @li elm_object_disabled_get
|
|
|
|
*
|
|
|
|
* Supported elm_object_item common APIs.
|
2013-09-17 09:56:16 -07:00
|
|
|
* @li @ref elm_object_item_del
|
2012-04-17 13:33:59 -07:00
|
|
|
* @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
|
2012-03-28 02:02:22 -07:00
|
|
|
*
|
2011-12-29 23:20:48 -08:00
|
|
|
* Here is an example on its usage:
|
|
|
|
* @li @ref segment_control_example
|
2012-01-08 22:55:51 -08:00
|
|
|
*
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
2018-09-21 01:25:56 -07:00
|
|
|
* @addtogroup Elm_Segment_Control
|
2011-12-29 23:20:48 -08:00
|
|
|
* @{
|
|
|
|
*/
|
2011-12-29 22:49:28 -08:00
|
|
|
|
Elementary: Split headers for Map, Menu, Panel, Panes, Photocam, Plug,
Prefs, ProgressBar, Radio. Route, Segment Control, Separator, Slider,
Slideshow, Spinner, Systray, Table, Thumb, Video, Web.
2013-04-28 02:58:28 -07:00
|
|
|
#ifndef EFL_NOLEGACY_API_SUPPORT
|
|
|
|
#include "elm_segment_control_legacy.h"
|
|
|
|
#endif
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|