2014-06-27 15:36:05 -07:00
|
|
|
class Elm_Button (Elm_Layout, Evas.Clickable_Interface,
|
2014-04-20 23:04:25 -07:00
|
|
|
Elm_Interface_Atspi_Widget_Action)
|
2014-03-19 23:40:43 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_button;
|
|
|
|
properties {
|
|
|
|
autorepeat_initial_timeout {
|
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the initial timeout before the autorepeat event is generated
|
|
|
|
|
|
|
|
Sets the timeout, in seconds, since the button is pressed until the
|
|
|
|
first @c repeated signal is emitted. If @p t is 0.0 or less, there
|
|
|
|
won't be any delay and the event will be fired the moment the button is
|
|
|
|
pressed.
|
|
|
|
|
|
|
|
@see elm_button_autorepeat_set()
|
|
|
|
@see elm_button_autorepeat_gap_timeout_set()
|
|
|
|
|
|
|
|
@ingroup Button */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the initial timeout before the autorepeat event is generated
|
|
|
|
|
|
|
|
@return Timeout in seconds
|
|
|
|
|
|
|
|
@see elm_button_autorepeat_initial_timeout_set()
|
|
|
|
|
|
|
|
@ingroup Button */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
double t; /*@ Timeout in seconds */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
autorepeat_gap_timeout {
|
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the interval between each generated autorepeat event
|
|
|
|
|
|
|
|
After the first @c repeated event is fired, all subsequent ones will
|
|
|
|
follow after a delay of @p t seconds for each.
|
|
|
|
|
|
|
|
@see elm_button_autorepeat_initial_timeout_set()
|
|
|
|
|
|
|
|
@ingroup Button */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the interval between each generated autorepeat event
|
|
|
|
|
|
|
|
@return Interval in seconds
|
|
|
|
|
|
|
|
@ingroup Button */
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
double t; /*@ Interval in seconds */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
autorepeat {
|
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Turn on/off the autorepeat event generated when the button is kept pressed
|
|
|
|
|
|
|
|
When off, no autorepeat is performed and buttons emit a normal @c clicked
|
|
|
|
signal when they are clicked.
|
|
|
|
|
|
|
|
When on, keeping a button pressed will continuously emit a @c 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 by elm_button_autorepeat_gap_timeout_set().
|
|
|
|
|
|
|
|
@ingroup Button */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get whether the autorepeat feature is enabled
|
|
|
|
|
|
|
|
@return @c EINA_TRUE if autorepeat is on, @c EINA_FALSE otherwise
|
|
|
|
|
|
|
|
@see elm_button_autorepeat_set()
|
|
|
|
|
|
|
|
@ingroup Button */
|
|
|
|
}
|
|
|
|
values {
|
2014-07-11 06:44:47 -07:00
|
|
|
bool on; /*@ A bool to turn on/off the event */
|
2014-03-19 23:40:43 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
admits_autorepeat {
|
|
|
|
get {
|
2014-10-13 06:59:28 -07:00
|
|
|
/*@ Get whether the button supports autorepeat. */
|
2014-08-11 07:46:11 -07:00
|
|
|
legacy: null;
|
2014-03-19 23:40:43 -07:00
|
|
|
}
|
|
|
|
values {
|
2014-07-11 06:44:47 -07:00
|
|
|
bool ret;
|
2014-03-19 23:40:43 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
|
|
|
Evas.Object_Smart.add;
|
2014-06-20 02:47:39 -07:00
|
|
|
Elm_Widget.activate;
|
|
|
|
Elm_Widget.focus_next_manager_is;
|
|
|
|
Elm_Widget.focus_direction_manager_is;
|
|
|
|
Elm_Widget.theme_apply;
|
|
|
|
Elm_Widget.sub_object_del;
|
|
|
|
Elm_Widget.event;
|
|
|
|
Elm_Container.content_set;
|
|
|
|
Elm_Layout.text_aliases.get;
|
|
|
|
Elm_Layout.content_aliases.get;
|
|
|
|
Elm_Layout.sizing_eval;
|
|
|
|
Elm_Interface_Atspi_Widget_Action.elm_actions.get;
|
2014-03-19 23:40:43 -07:00
|
|
|
}
|
|
|
|
}
|