forked from enlightenment/efl
58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
import efl_gesture_types;
|
|
import efl_input_types;
|
|
|
|
/* FIXME: This class lacks a lot of useful helpers. */
|
|
|
|
class Efl.Gesture.Touch(Efl.Object)
|
|
{
|
|
methods {
|
|
point_record {
|
|
params {
|
|
@in tool : int; [[The finger id ]]
|
|
@in pos : Eina.Vector2; [[Position of the event]]
|
|
@in timestamp : double; [[The timestamp of the event]]
|
|
@in action : Efl.Pointer.Action; [[action of the event]]
|
|
}
|
|
}
|
|
/* FIXME: This is most likely not useful (without timestamps). */
|
|
delta @const {
|
|
[[Compute the distance between the last two events]]
|
|
params {
|
|
@in tool : int; [[The finger id ]]
|
|
}
|
|
return: Eina.Vector2; [[The distance vector.]]
|
|
}
|
|
distance @const {
|
|
[[Compute the distance between the first touch and the last event.]]
|
|
params {
|
|
@in tool : int; [[The finger id ]]
|
|
}
|
|
return: Eina.Vector2; [[The distance vector.]]
|
|
}
|
|
@property start_point {
|
|
[[Returns the first touch point.]]
|
|
get {}
|
|
values {
|
|
pos: Eina.Vector2; [[The start position.]]
|
|
}
|
|
}
|
|
@property multi_touch {
|
|
[[This property tells if the event is multi touch.]]
|
|
get {
|
|
return: bool; [[returns true if its a multi touch]]
|
|
}
|
|
}
|
|
@property state {
|
|
[[This property holds the state of the touch event.]]
|
|
get {
|
|
return : Efl.Gesture.Touch.State; [[touch event state]]
|
|
}
|
|
}
|
|
/* FIXME: finger_list was broken by design - TODO */
|
|
}
|
|
implements {
|
|
Efl.Object.constructor;
|
|
Efl.Object.destructor;
|
|
}
|
|
}
|