efl/src/lib/elementary/elm_button.eo

103 lines
3.0 KiB
Plaintext
Raw Normal View History

class Elm.Button (Elm.Layout, Evas.Clickable_Interface,
Elm.Interface_Atspi_Widget_Action)
2014-03-19 23:40:43 -07:00
{
eo_prefix: elm_obj_button;
2015-05-07 09:32:53 -07:00
methods {
@property autorepeat_initial_timeout {
2014-03-19 23:40:43 -07:00
set {
[[Set the initial timeout before the autorepeat event is generated
2014-03-19 23:40:43 -07:00
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 will be fired the moment the button is
pressed.
2014-03-19 23:40:43 -07:00
See also @.autorepeat.set,
@.autorepeat_gap_timeout.set.
2014-03-19 23:40:43 -07:00
]]
2014-03-19 23:40:43 -07:00
}
get {
[[Get the initial timeout before the autorepeat event is generated
2014-03-19 23:40:43 -07:00
See also @.autorepeat_initial_timeout.set.
2014-03-19 23:40:43 -07:00
]]
2014-03-19 23:40:43 -07:00
}
values {
t: double; [[Timeout in seconds]]
2014-03-19 23:40:43 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property autorepeat_gap_timeout {
2014-03-19 23:40:43 -07:00
set {
[[Set the interval between each generated autorepeat event
2014-03-19 23:40:43 -07:00
After the first $repeated event is fired, all subsequent ones will
follow after a delay of $t seconds for each.
2014-03-19 23:40:43 -07:00
See also @.autorepeat_initial_timeout.set.
2014-03-19 23:40:43 -07:00
]]
2014-03-19 23:40:43 -07:00
}
get {
[[Get the interval between each generated autorepeat event]]
2014-03-19 23:40:43 -07:00
}
values {
t: double; [[Interval in seconds]]
2014-03-19 23:40:43 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property autorepeat {
2014-03-19 23:40:43 -07:00
set {
[[Turn on/off the autorepeat event generated when the button is kept pressed
2014-03-19 23:40:43 -07:00
When off, no autorepeat is performed and buttons emit a normal $clicked
signal when they are clicked.
2014-03-19 23:40:43 -07:00
When on, keeping a button pressed will continuously emit a $repeated
signal until the button is released. The time it takes until it starts
emitting the signal is given by
@.autorepeat_initial_timeout.set, and the time between each
new emission by @.autorepeat_gap_timeout.set.
2014-03-19 23:40:43 -07:00
]]
2014-03-19 23:40:43 -07:00
}
get {
[[Get whether the autorepeat feature is enabled
($true if autorepeat is on, $false otherwise)
2014-03-19 23:40:43 -07:00
See also @.autorepeat.set.
2014-03-19 23:40:43 -07:00
]]
2014-03-19 23:40:43 -07:00
}
values {
on: bool; [[A bool to turn on/off the event]]
2014-03-19 23:40:43 -07:00
}
}
2015-05-07 09:32:53 -07:00
@property admits_autorepeat {
2014-03-19 23:40:43 -07:00
get {
[[Get whether the button supports autorepeat.]]
legacy: null;
2014-03-19 23:40:43 -07:00
}
values {
ret: bool;
2014-03-19 23:40:43 -07:00
}
}
}
implements {
class.constructor;
Eo.Base.constructor;
Evas.Object_Smart.add;
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;
Efl.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
}
}