forked from enlightenment/efl
67 lines
2.6 KiB
Plaintext
67 lines
2.6 KiB
Plaintext
import eina_types;
|
|
import efl_input_types;
|
|
|
|
enum @beta Efl.Canvas.Gesture_Touch_State
|
|
{
|
|
[[ This enum type describes the state of a touch event. ]]
|
|
legacy: efl_gesture_touch_state;
|
|
unknown = 0, [[Gesture Touch State unknown]]
|
|
begin , [[First fingure touch down]]
|
|
update, [[fingure touch update]]
|
|
end, [[Last fingure touch up]]
|
|
}
|
|
|
|
enum @beta Efl.Canvas.Gesture_State
|
|
{
|
|
[[ This enum type describes the state of a gesture. ]]
|
|
legacy: efl_gesture_state;
|
|
none = 0, [[No gesture state]]
|
|
started = 1, [[A continuous gesture has started.]]
|
|
updated, [[A gesture continues.]]
|
|
finished, [[A gesture has finished.]]
|
|
canceled, [[A gesture was canceled.]]
|
|
}
|
|
|
|
enum @beta Efl.Canvas.Gesture_Recognizer_Result
|
|
{
|
|
[[ This enum type describes the state of a gesture recognizer. ]]
|
|
legacy: efl_gesture_recognizer_result;
|
|
|
|
ignore = 0x0001, [[The event does not change the state of the recognizer.]]
|
|
maybe = 0x0002, [[The event changed the internal state of the recognizer, but it isn't clear yet if it is a gesture or not. The recognizer needs to filter more events to decide.]]
|
|
trigger = 0x0004, [[The gesture has been triggered]]
|
|
finish = 0x0008, [[The gesture has been finished successfully.]]
|
|
cancel = 0x0010, [[The event made it clear that it is not a gesture. If the gesture recognizer was in Triggered state before, then the gesture is canceled.]]
|
|
result_mask = 0x00ff, [[The gesture result mask]]
|
|
}
|
|
|
|
enum @beta Efl.Canvas.Gesture_Recognizer_Type
|
|
{
|
|
[[ This enum type describes the state of a touch event. ]]
|
|
legacy: efl_gesture_recognizer_type;
|
|
tap = 0,
|
|
doubleTap,
|
|
tripleTap,
|
|
longTap,
|
|
momentum,
|
|
flick,
|
|
zoom,
|
|
custom,
|
|
}
|
|
|
|
struct @beta @c_name(Efl_Gesture_Touch_Point_Info) Efl.Canvas.Gesture_Touch_Point_Info {
|
|
[[This struct represents the underlying data of a touch point.]]
|
|
pos: Eina.Position2D; [[The canvas position of the touch point data.]]
|
|
pressed: bool; [[Whether this touch point is being pressed down.]]
|
|
timestamp: uint; [[The timestamp of the touch point data.]]
|
|
}
|
|
|
|
struct @beta @c_name(Efl_Gesture_Touch_Point_Data) Efl.Canvas.Gesture_Touch_Point_Data {
|
|
[[This struct represents the state of a touch point.]]
|
|
id: int; [[Touch id of the point.]]
|
|
action: Efl.Pointer.Action; [[The last event with this point.]]
|
|
start: Efl.Canvas.Gesture_Touch_Point_Info; [[The start data for the touch point.]]
|
|
prev: Efl.Canvas.Gesture_Touch_Point_Info; [[The previous data for the touch point.]]
|
|
cur: Efl.Canvas.Gesture_Touch_Point_Info; [[The current data for the touch point.]]
|
|
}
|