Functions | |
Evas_Object * | elm_button_add (Evas_Object *parent) |
Add a new button to the parent's canvas. More... | |
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:
"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 content parts of the button widget that you can use for are:
Default text parts of the button widget that you can use for are:
Supported elm_object common APIs.
Here is some sample code using it:
Evas_Object* elm_button_add | ( | Evas_Object * | parent | ) |
Add a new button to the parent's canvas.
parent | The parent object |
References _Elm_Button_Data::ar_gap_timeout, _Elm_Button_Data::ar_initial_timeout, _Elm_Button_Data::autorepeat, _Elm_Button_Data::repeating, and _Elm_Button_Data::timer.
Referenced by elm_color_class_editor_add(), elm_fileselector_folder_only_get(), elm_hoversel_add(), and elm_quicklaunch_seed().