1 typedef Eo Elm_Button;
2 
3 /**
4  * Add a new button to the parent's canvas
5  *
6  * @param parent The parent object
7  * @return The new object or NULL if it cannot be created
8  *
9  * @ingroup Elm_Button
10  */
11 EAPI Evas_Object                 *elm_button_add(Evas_Object *parent);
12 
13 /**
14  * @brief The initial timeout before the autorepeat event is generated
15  *
16  * Sets the timeout, in seconds, since the button is pressed until the first
17  * @c repeated signal is emitted. If @c t is 0.0 or less, there won't be any
18  * delay and the event will be fired the moment the button is pressed.
19  *
20  * See also @ref elm_button_autorepeat_set,
21  * @ref elm_button_autorepeat_gap_timeout_set.
22  *
23  * @param[in] t Timeout in seconds
24  *
25  * @ingroup Elm_Button
26  */
27 
28 EAPI void                        elm_button_autorepeat_initial_timeout_set(Evas_Object *obj, double t);
29 
30 /**
31  * @brief The initial timeout before the autorepeat event is generated
32  *
33  * Sets the timeout, in seconds, since the button is pressed until the first
34  * @c repeated signal is emitted. If @c t is 0.0 or less, there won't be any
35  * delay and the event will be fired the moment the button is pressed.
36  *
37  * See also @ref elm_button_autorepeat_set,
38  * @ref elm_button_autorepeat_gap_timeout_set.
39  *
40  * @return Timeout in seconds
41  *
42  * @ingroup Elm_Button
43  */
44 
45 EAPI double                      elm_button_autorepeat_initial_timeout_get(const Evas_Object *obj);
46 
47 /**
48  * @brief The interval between each generated autorepeat event
49  *
50  * After the first @c repeated event is fired, all subsequent ones will follow
51  * after a delay of @c t seconds for each.
52  *
53  * See also @ref elm_button_autorepeat_initial_timeout_set.
54  *
55  * @param[in] t Interval in seconds
56  *
57  * @ingroup Elm_Button
58  */
59 EAPI void                        elm_button_autorepeat_gap_timeout_set(Evas_Object *obj, double t);
60 
61 /**
62  * @brief The interval between each generated autorepeat event
63  *
64  * After the first @c repeated event is fired, all subsequent ones will follow
65  * after a delay of @c t seconds for each.
66  *
67  * See also @ref elm_button_autorepeat_initial_timeout_set.
68  *
69  * @return Interval in seconds
70  *
71  * @ingroup Elm_Button
72  */
73 EAPI double                      elm_button_autorepeat_gap_timeout_get(const Evas_Object *obj);
74 
75 /**
76  * @brief Turn on/off the autorepeat event generated when the button is kept
77  * pressed
78  *
79  * When off, no autorepeat is performed and buttons emit a normal @c clicked
80  * signal when they are clicked.
81  *
82  * When on, keeping a button pressed will continuously emit a @c repeated
83  * signal until the button is released. The time it takes until it starts
84  * emitting the signal is given by @ref elm_button_autorepeat_initial_timeout_set,
85  * and the time between each new emission by
86  * @ref elm_button_autorepeat_gap_timeout_set.
87  *
88  * @param[in] on A bool to turn on/off the event
89  *
90  * @ingroup Elm_Button
91  */
92 EAPI void                        elm_button_autorepeat_set(Evas_Object *obj, Eina_Bool on);
93 
94 /**
95  * @brief Turn on/off the autorepeat event generated when the button is kept
96  * pressed
97  *
98  * When off, no autorepeat is performed and buttons emit a normal @c clicked
99  * signal when they are clicked.
100  *
101  * When on, keeping a button pressed will continuously emit a @c repeated
102  * signal until the button is released. The time it takes until it starts
103  * emitting the signal is given by @ref elm_button_autorepeat_initial_timeout_set,
104  * and the time between each new emission by
105  * @ref elm_button_autorepeat_gap_timeout_set.
106  *
107  * @return A bool to turn on/off the event
108  *
109  * @ingroup Elm_Button
110  */
111 EAPI Eina_Bool                   elm_button_autorepeat_get(const Evas_Object *obj);
112 
113 #include "efl_ui_button_eo.legacy.h"
114