2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @addtogroup Actionslider Actionslider
|
2012-04-16 18:35:46 -07:00
|
|
|
* @ingroup Elementary
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2012-06-05 15:41:21 -07:00
|
|
|
* @image html actionslider_inheritance_tree.png
|
|
|
|
* @image latex actionslider_inheritance_tree.eps
|
|
|
|
*
|
2011-12-29 23:20:48 -08:00
|
|
|
* @image html img/widget/actionslider/preview-00.png
|
|
|
|
* @image latex img/widget/actionslider/preview-00.eps
|
|
|
|
*
|
|
|
|
* An actionslider is a switcher for 2 or 3 labels with customizable magnet
|
|
|
|
* properties. The user drags and releases the indicator, to choose a label.
|
|
|
|
*
|
|
|
|
* Labels occupy the following positions.
|
|
|
|
* a. Left
|
|
|
|
* b. Right
|
|
|
|
* c. Center
|
|
|
|
*
|
|
|
|
* Positions can be enabled or disabled.
|
|
|
|
*
|
|
|
|
* Magnets can be set on the above positions.
|
|
|
|
*
|
2012-06-05 15:41:21 -07:00
|
|
|
* When the indicator is released, it will move to its nearest
|
|
|
|
* "enabled and magnetized" position.
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* @note By default all positions are set as enabled.
|
|
|
|
*
|
2012-05-03 15:42:32 -07:00
|
|
|
* This widget inherits from the @ref Layout one, so that all the
|
|
|
|
* functions acting on it also work for actionslider objects.
|
|
|
|
*
|
|
|
|
* This widget emits the following signals, besides the ones sent from
|
|
|
|
* @ref Layout:
|
|
|
|
* @li @c "selected" - when user selects an enabled position (the
|
2012-06-14 07:42:34 -07:00
|
|
|
* label is passed as event info).
|
2012-05-03 15:42:32 -07:00
|
|
|
* @li @c "pos_changed" - when the indicator reaches any of the
|
|
|
|
* positions("left", "right" or "center").
|
2014-01-23 03:07:20 -08:00
|
|
|
* @li @c "language,changed" - the program's language changed (since 1.9)
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2012-01-02 04:53:29 -08:00
|
|
|
* Default text parts of the actionslider widget that you can use for are:
|
2012-03-04 21:31:49 -08:00
|
|
|
* @li "indicator" - An indicator label of the actionslider
|
2012-01-02 04:53:29 -08:00
|
|
|
* @li "left" - A left label of the actionslider
|
|
|
|
* @li "right" - A right label of the actionslider
|
|
|
|
* @li "center" - A center label of the actionslider
|
|
|
|
*
|
|
|
|
* Supported elm_object common APIs.
|
2012-04-17 13:33:59 -07:00
|
|
|
* @li @ref elm_object_part_text_set
|
|
|
|
* @li @ref elm_object_part_text_get
|
2012-03-28 02:02:22 -07:00
|
|
|
*
|
2011-12-29 23:20:48 -08:00
|
|
|
* See an example of actionslider usage @ref actionslider_example_page "here"
|
|
|
|
* @{
|
|
|
|
*/
|
2012-11-25 22:32:53 -08:00
|
|
|
|
2013-04-27 23:37:46 -07:00
|
|
|
#ifdef EFL_EO_API_SUPPORT
|
|
|
|
#include "elm_actionslider_eo.h"
|
|
|
|
#endif
|
|
|
|
#ifndef EFL_NOLEGACY_API_SUPPORT
|
|
|
|
#include "elm_actionslider_legacy.h"
|
|
|
|
#endif
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|