Gdk.EventTouch¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
axes |
r/w |
x, y translated to the axes of device, or |
|
device |
r/w |
the master device that the event originated from. Use |
|
emulating_pointer |
r/w |
whether the event should be used for emulating pointer event |
|
send_event |
r/w |
|
|
sequence |
r/w |
the event sequence that the event belongs to |
|
state |
r/w |
a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See |
|
time |
r/w |
the time of the event in milliseconds. |
|
type |
r/w |
the type of the event ( |
|
window |
r/w |
the window which received the event |
|
x |
r/w |
the x coordinate of the pointer relative to the window |
|
x_root |
r/w |
the x coordinate of the pointer relative to the root of the screen |
|
y |
r/w |
the y coordinate of the pointer relative to the window |
|
y_root |
r/w |
the y coordinate of the pointer relative to the root of the screen |
Methods¶
None
Details¶
- class Gdk.EventTouch¶
Used for touch events. type field will be one of
Gdk.EventType.TOUCH_BEGIN,Gdk.EventType.TOUCH_UPDATE,Gdk.EventType.TOUCH_ENDorGdk.EventType.TOUCH_CANCEL.Touch events are grouped into sequences by means of the sequence field, which can also be obtained with
Gdk.Event.get_event_sequence(). Each sequence begins with aGdk.EventType.TOUCH_BEGINevent, followed by any number ofGdk.EventType.TOUCH_UPDATEevents, and ends with aGdk.EventType.TOUCH_END(orGdk.EventType.TOUCH_CANCEL) event. With multitouch devices, there may be several active sequences at the same time.