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:
- "clicked": the user clicked the button (press/release).
- "repeated": the user pressed the button without releasing it.
- "pressed": button was pressed.
- "unpressed": button was released after being pressed.
"focused"
: When the button has received focus. (since 1.8)
"unfocused"
: When the button has lost focus. (since 1.8) In all cases, the event
parameter of the callback will be NULL
.
Also, defined in the default theme, the button has the following styles available:
- default: a normal button.
- anchor: Like default, but the button fades away when the mouse is not over it, leaving only the text or icon.
- hoversel_vertical: Internally used by Hoversel to give a continuous look across its options.
- hoversel_vertical_entry: Another internal for Hoversel.
- naviframe: Internally used by Naviframe for its back button.
- colorselector: Internally used by Colorselector for its left and right buttons.
Default content parts of the button widget that you can use for are:
- "icon" - An icon of the button
Default text parts of the button widget that you can use for are:
- "default" - A label of the button
Supported elm_object common APIs.
Here is some sample code using it:
double elm_button::autorepeat_gap_timeout_get |
( |
| ) |
const |
|
inline |
Get the interval between each generated autorepeat event.
- Returns
- Interval in seconds
- Parameters
-
void elm_button::autorepeat_gap_timeout_set |
( |
double |
t_ | ) |
const |
|
inline |
Get the interval between each generated autorepeat event.
- Returns
- Interval in seconds
- Parameters
-
bool elm_button::autorepeat_get |
( |
| ) |
const |
|
inline |
Get whether the autorepeat feature is enabled.
- Returns
EINA_TRUE
if autorepeat is on, EINA_FALSE
otherwise
- See also
- elm_button_autorepeat_set()
- Parameters
-
on | A bool to turn on/off the event |
double elm_button::autorepeat_initial_timeout_get |
( |
| ) |
const |
|
inline |
Get the initial timeout before the autorepeat event is generated.
- Returns
- Timeout in seconds
- See also
- elm_button_autorepeat_initial_timeout_set()
- Parameters
-
void elm_button::autorepeat_initial_timeout_set |
( |
double |
t_ | ) |
const |
|
inline |
Get the initial timeout before the autorepeat event is generated.
- Returns
- Timeout in seconds
- See also
- elm_button_autorepeat_initial_timeout_set()
- Parameters
-
void elm_button::autorepeat_set |
( |
bool |
on_ | ) |
const |
|
inline |
Get whether the autorepeat feature is enabled.
- Returns
EINA_TRUE
if autorepeat is on, EINA_FALSE
otherwise
- See also
- elm_button_autorepeat_set()
- Parameters
-
on | A bool to turn on/off the event |
Evas_Object* elm_button_add |
( |
Evas_Object * |
parent | ) |
|
Add a new button to the parent's canvas.
- Parameters
-
- Returns
- The new object or NULL if it cannot be created
Referenced by elm_quicklaunch_seed().