Tizen Native API
|
Functions | |
Evas_Object * | elm_button_add (Evas_Object *parent) |
Adds a new button to the parent's canvas. | |
void | elm_button_autorepeat_set (Evas_Object *obj, Eina_Bool on) |
Turns on/off the autorepeat event generated when the button is kept pressed. | |
Eina_Bool | elm_button_autorepeat_get (const Evas_Object *obj) |
Gets whether the autorepeat feature is enabled. | |
void | elm_button_autorepeat_initial_timeout_set (Evas_Object *obj, double t) |
Sets the initial timeout before the autorepeat event is generated. | |
double | elm_button_autorepeat_initial_timeout_get (const Evas_Object *obj) |
Gets the initial timeout before the autorepeat event is generated. | |
void | elm_button_autorepeat_gap_timeout_set (Evas_Object *obj, double t) |
Sets the interval between each generated autorepeat event. | |
double | elm_button_autorepeat_gap_timeout_get (const Evas_Object *obj) |
Gets the interval between each generated autorepeat event. |
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.
This widget inherits from the 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 Layout :
NULL
.Also, defined in the default theme, the button has the following styles available:
The default content parts of the button widget that you can use are:
The default text parts of the button widget that you can use are:
Supported common elm_object APIs.
Evas_Object* elm_button_add | ( | Evas_Object * | parent | ) |
Adds a new button to the parent's canvas.
[in] | parent | The parent object |
NULL
if it cannot be created double elm_button_autorepeat_gap_timeout_get | ( | const Evas_Object * | obj | ) |
Gets the interval between each generated autorepeat event.
[in] | obj | The button object |
void elm_button_autorepeat_gap_timeout_set | ( | Evas_Object * | obj, |
double | t | ||
) |
Sets the interval between each generated autorepeat event.
repeated
event is fired, all subsequent ones follow after a delay of t seconds for each.[in] | obj | The button object |
[in] | t | The interval in seconds |
Eina_Bool elm_button_autorepeat_get | ( | const Evas_Object * | obj | ) |
Gets whether the autorepeat feature is enabled.
[in] | obj | The button object |
EINA_TRUE
if autorepeat is on, otherwise EINA_FALSE
double elm_button_autorepeat_initial_timeout_get | ( | const Evas_Object * | obj | ) |
Gets the initial timeout before the autorepeat event is generated.
[in] | obj | The button object |
void elm_button_autorepeat_initial_timeout_set | ( | Evas_Object * | obj, |
double | t | ||
) |
Sets the initial timeout before the autorepeat event is generated.
This sets the timeout, in seconds, since the button is pressed until the first repeated
signal is emitted. If t is 0.0
or less, there won't be any delay and the event is fired the moment the button is pressed.
[in] | obj | The button object |
[in] | t | The timeout in seconds |
void elm_button_autorepeat_set | ( | Evas_Object * | obj, |
Eina_Bool | on | ||
) |
Turns on/off the autorepeat event generated when the button is kept pressed.
clicked
signal when they are clicked.repeated
signal until the button is released. The time it takes until it starts emitting the signal is given by elm_button_autorepeat_initial_timeout_set(), and the time between each new emission is given by elm_button_autorepeat_gap_timeout_set().[in] | obj | The button object |
[in] | on | The boolean value to turn on/off the event |