Functions
Button

Functions

double elm_button::autorepeat_initial_timeout_get () const
 Get the initial timeout before the autorepeat event is generated. More...
 
void elm_button::autorepeat_initial_timeout_set (double t_) const
 Get the initial timeout before the autorepeat event is generated. More...
 
double elm_button::autorepeat_gap_timeout_get () const
 Get the interval between each generated autorepeat event. More...
 
void elm_button::autorepeat_gap_timeout_set (double t_) const
 Get the interval between each generated autorepeat event. More...
 
bool elm_button::autorepeat_get () const
 Get whether the autorepeat feature is enabled. More...
 
void elm_button::autorepeat_set (bool on_) const
 Get whether the autorepeat feature is enabled. More...
 
Evas_Object * elm_button_add (Evas_Object *parent)
 Add a new button to the parent's canvas. More...
 

Detailed Description

button_inheritance_tree.png
preview-00.png
preview-01.png
preview-02.png

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:

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:

Function Documentation

double elm_button::autorepeat_gap_timeout_get ( ) const
inline

Get the interval between each generated autorepeat event.

Returns
Interval in seconds
Parameters
tInterval in seconds
void elm_button::autorepeat_gap_timeout_set ( double  t_) const
inline

Get the interval between each generated autorepeat event.

Returns
Interval in seconds
Parameters
tInterval in seconds
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
onA 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
tTimeout in seconds
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
tTimeout in seconds
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
onA 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
parentThe parent object
Returns
The new object or NULL if it cannot be created

Referenced by elm_quicklaunch_seed().