2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @defgroup Button Button
|
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 button_inheritance_tree.png
|
|
|
|
* @image latex button_inheritance_tree.eps
|
|
|
|
*
|
2011-12-29 23:20:48 -08:00
|
|
|
* @image html img/widget/button/preview-00.png
|
|
|
|
* @image latex img/widget/button/preview-00.eps
|
|
|
|
* @image html img/widget/button/preview-01.png
|
|
|
|
* @image latex img/widget/button/preview-01.eps
|
|
|
|
* @image html img/widget/button/preview-02.png
|
|
|
|
* @image latex img/widget/button/preview-02.eps
|
|
|
|
*
|
|
|
|
* This is a push-button. Press it and run some function. It can contain
|
|
|
|
* a simple label and icon object and it also has an autorepeat feature.
|
|
|
|
*
|
2012-05-03 15:41:42 -07:00
|
|
|
* This widget inherits from the @ref Layout one, so that all the
|
|
|
|
* functions acting on it also work for button objects.
|
|
|
|
*
|
|
|
|
* This widget emits the following signals, besides the ones sent from
|
|
|
|
* @ref Layout:
|
2011-12-29 23:20:48 -08:00
|
|
|
* @li "clicked": the user clicked the button (press/release).
|
|
|
|
* @li "repeated": the user pressed the button without releasing it.
|
|
|
|
* @li "pressed": button was pressed.
|
|
|
|
* @li "unpressed": button was released after being pressed.
|
elm: fixed focused and unfocused documentation.
1. ctxpopup, fileselector_entry, naviframe, popup, bubble, button, calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid.
2. since 1.8
2013-06-09 21:44:25 -07:00
|
|
|
* @li @c "focused" : When the button has received focus. (since 1.8)
|
|
|
|
* @li @c "unfocused" : When the button has lost focus. (since 1.8)
|
2012-02-16 03:11:25 -08:00
|
|
|
* In all cases, the @c event parameter of the callback will be
|
2011-12-29 23:20:48 -08:00
|
|
|
* @c NULL.
|
|
|
|
*
|
|
|
|
* Also, defined in the default theme, the button has the following styles
|
|
|
|
* available:
|
|
|
|
* @li default: a normal button.
|
|
|
|
* @li anchor: Like default, but the button fades away when the mouse is not
|
|
|
|
* over it, leaving only the text or icon.
|
|
|
|
* @li hoversel_vertical: Internally used by @ref Hoversel to give a
|
|
|
|
* continuous look across its options.
|
|
|
|
* @li hoversel_vertical_entry: Another internal for @ref Hoversel.
|
2012-02-23 21:48:19 -08:00
|
|
|
* @li naviframe: Internally used by @ref Naviframe for its back button.
|
2012-03-28 02:02:22 -07:00
|
|
|
* @li colorselector: Internally used by @ref Colorselector
|
2012-02-23 21:48:19 -08:00
|
|
|
* for its left and right buttons.
|
2012-02-16 03:11:25 -08:00
|
|
|
*
|
2012-02-27 18:39:31 -08:00
|
|
|
* Default content parts of the button widget that you can use for are:
|
2011-12-29 23:20:48 -08:00
|
|
|
* @li "icon" - An icon of the button
|
|
|
|
*
|
|
|
|
* Default text parts of the button widget that you can use for are:
|
2014-09-04 09:11:58 -07:00
|
|
|
* @li "default" - A label of the button
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2012-01-02 04:53:29 -08:00
|
|
|
* 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
|
|
|
|
* @li @ref elm_object_part_content_set
|
|
|
|
* @li @ref elm_object_part_content_get
|
|
|
|
* @li @ref elm_object_part_content_unset
|
|
|
|
* @li @ref elm_object_signal_emit
|
|
|
|
* @li @ref elm_object_signal_callback_add
|
|
|
|
* @li @ref elm_object_signal_callback_del
|
2012-03-21 10:57:27 -07:00
|
|
|
*
|
|
|
|
* Here is some sample code using it:
|
|
|
|
* @li @ref button_example_00
|
|
|
|
* @li @ref button_example_01
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2012-04-16 18:35:46 -07:00
|
|
|
/**
|
|
|
|
* @addtogroup Button
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2013-04-27 22:02:17 -07:00
|
|
|
#ifdef EFL_EO_API_SUPPORT
|
|
|
|
#include "elm_button_eo.h"
|
|
|
|
#endif
|
|
|
|
#ifndef EFL_NOLEGACY_API_SUPPORT
|
|
|
|
#include "elm_button_legacy.h"
|
|
|
|
#endif
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|