declare first round of classes stable
this stabelizes the "stableized" column of the efl: api workboard.
fixes T8208,
fixes T8158,
fixes T8156,
fixes T8025,
fixes T8024,
fixes T7976,
fixes T7946,
fixes T7928,
fixes T7923,
fixes T7905,
fixes T7902,
fixes T7901,
fixes T7900,
fixes T7898,
fixes T7897,
fixes T7895,
fixes T7894,
fixes T7893,
fixes T7891,
fixes T7880,
fixes T7873,
fixes T7869,
fixes T7867,
fixes T7865,
fixes T7862,
fixes T7854,
fixes T7847,
fixes T7881,
fixes T7870,
fixes T9086
Differential Revision: https://phab.enlightenment.org/D10008
2019-09-09 02:23:04 -07:00
|
|
|
struct Efl.Input.Clickable_Clicked {
|
2019-05-14 12:50:15 -07:00
|
|
|
[[A struct that expresses a click in elementary.]]
|
2019-08-06 07:57:56 -07:00
|
|
|
repeated : uint; [[The amount of how often the clicked event was repeated in a certain amount of time]]
|
|
|
|
button : uint; [[The Button that is pressed]]
|
2019-05-14 12:50:15 -07:00
|
|
|
}
|
|
|
|
|
declare first round of classes stable
this stabelizes the "stableized" column of the efl: api workboard.
fixes T8208,
fixes T8158,
fixes T8156,
fixes T8025,
fixes T8024,
fixes T7976,
fixes T7946,
fixes T7928,
fixes T7923,
fixes T7905,
fixes T7902,
fixes T7901,
fixes T7900,
fixes T7898,
fixes T7897,
fixes T7895,
fixes T7894,
fixes T7893,
fixes T7891,
fixes T7880,
fixes T7873,
fixes T7869,
fixes T7867,
fixes T7865,
fixes T7862,
fixes T7854,
fixes T7847,
fixes T7881,
fixes T7870,
fixes T9086
Differential Revision: https://phab.enlightenment.org/D10008
2019-09-09 02:23:04 -07:00
|
|
|
mixin Efl.Input.Clickable
|
2019-05-14 12:50:15 -07:00
|
|
|
{
|
2019-07-29 02:42:34 -07:00
|
|
|
[[Efl input clickable interface]]
|
2019-09-26 07:39:56 -07:00
|
|
|
event_c_prefix: efl_input;
|
2019-05-14 12:50:15 -07:00
|
|
|
methods {
|
|
|
|
press @protected {
|
|
|
|
[[Change internal states that a button got pressed.
|
|
|
|
|
|
|
|
When the button is already pressed, this is silently ignored.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
button : uint; [[The number of the button. FIXME ensure to have the right interval of possible input]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
unpress @protected {
|
|
|
|
[[Change internal states that a button got unpressed.
|
|
|
|
|
|
|
|
When the button is not pressed, this is silently ignored.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
button : uint; [[The number of the button. FIXME ensure to have the right interval of possible input]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
button_state_reset @protected {
|
|
|
|
[[This aborts the internal state after a press call.
|
|
|
|
|
2019-09-02 07:24:26 -07:00
|
|
|
This will stop the timer for longpress and set the state of the clickable mixin back into the unpressed
|
|
|
|
state.
|
2019-05-14 12:50:15 -07:00
|
|
|
]]
|
|
|
|
params {
|
|
|
|
button : uint;
|
|
|
|
}
|
|
|
|
}
|
2019-08-01 02:19:51 -07:00
|
|
|
longpress_abort @protected {
|
|
|
|
[[This aborts ongoing longpress event.
|
|
|
|
|
|
|
|
That is, this will stop the timer for longpress.
|
|
|
|
]]
|
|
|
|
params {
|
|
|
|
button : uint;
|
|
|
|
}
|
|
|
|
}
|
2019-08-20 11:09:16 -07:00
|
|
|
@property interaction {
|
|
|
|
[[This returns true if the given object is currently in event emission]]
|
|
|
|
get {
|
|
|
|
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
interaction : bool;
|
|
|
|
}
|
|
|
|
}
|
2019-05-14 12:50:15 -07:00
|
|
|
}
|
|
|
|
events {
|
2019-09-02 07:24:26 -07:00
|
|
|
clicked: Efl.Input.Clickable_Clicked; [[Called when object is in sequence pressed and unpressed by the primary
|
|
|
|
button]]
|
|
|
|
clicked,any: Efl.Input.Clickable_Clicked; [[Called when object is in sequence pressed and unpressed by any
|
|
|
|
button. The button that triggered the event can be found in the event
|
|
|
|
information.]]
|
2019-05-14 12:50:15 -07:00
|
|
|
pressed: int; [[Called when the object is pressed, event_info is the button that got pressed]]
|
|
|
|
unpressed: int; [[Called when the object is no longer pressed, event_info is the button that got pressed]]
|
|
|
|
longpressed: int; [[Called when the object receives a long press, event_info is the button that got pressed]]
|
|
|
|
}
|
|
|
|
}
|