Gdk.EventTouch - Structures - Gdk 3.0 (original) (raw)
Fields¶
Name | Type | Access | Description |
---|---|---|---|
axes | float | r/w | x, y translated to the axes of device, or None if device is the mouse |
device | Gdk.Device | r/w | the master device that the event originated from. Use Gdk.Event.get_source_device() to get the slave device. |
emulating_pointer | bool | r/w | whether the event should be used for emulating pointer event |
send_event | int | r/w | True if the event was sent explicitly. |
sequence | Gdk.EventSequence | r/w | the event sequence that the event belongs to |
state | Gdk.ModifierType | r/w | a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See Gdk.ModifierType |
time | int | r/w | the time of the event in milliseconds. |
type | Gdk.EventType | r/w | the type of the event (Gdk.EventType.TOUCH_BEGIN, Gdk.EventType.TOUCH_UPDATE, Gdk.EventType.TOUCH_END, Gdk.EventType.TOUCH_CANCEL) |
window | Gdk.Window | r/w | the window which received the event |
x | float | r/w | the x coordinate of the pointer relative to the window |
x_root | float | r/w | the x coordinate of the pointer relative to the root of the screen |
y | float | r/w | the y coordinate of the pointer relative to the window |
y_root | float | 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_END or Gdk.EventType.TOUCH_CANCEL.
Touch events are grouped into sequences by means of the sequencefield, which can also be obtained with Gdk.Event.get_event_sequence(). Each sequence begins with a Gdk.EventType.TOUCH_BEGIN event, followed by any number of Gdk.EventType.TOUCH_UPDATE events, and ends with a Gdk.EventType.TOUCH_END(or Gdk.EventType.TOUCH_CANCEL) event. With multitouch devices, there may be several active sequences at the same time.