gdk.event_touch
Module for [EventTouch] class
class EventTouch
Types 1
classEventTouch
Used for touch events. @type field will be one of [gdk.types.EventType.TouchBegin], [gdk.types.EventType.TouchUpdate], [gdk.types.EventType.TouchEnd] or [gdk.types.EventType.TouchCancel].
Touch events are grouped into sequences by means of the @sequence field, which can also be obtained with [gdk.event.Event.getEventSequence]. Each sequence begins with a [gdk.types.EventType.TouchBegin] event, followed by any number of [gdk.types.EventType.TouchUpdate] events, and ends with a [gdk.types.EventType.TouchEnd] (or [gdk.types.EventType.TouchCancel]) event. With multitouch devices, there may be several active sequences at the same time.
Fields
GdkEventTouch _cInstanceMethods
void * _cPtr()gdk.types.EventType type() @propertyGet `type` field. Returns: the type of the event ([gdk.types.EventType.TouchBegin], [gdk.types.EventType.TouchUpdate], [gdk.types.EventType.TouchEnd], [gdk.types.EventType.TouchCancel])void type(gdk.types.EventType propval) @propertySet `type` field. Params: propval = the type of the event ([gdk.types.EventType.TouchBegin], [gdk.types.EventType.TouchUpdate], [gdk.types.EventType.TouchEnd], [gdk.types.EventType.TouchCancel])gdk.window.Window window() @propertyGet `window` field. Returns: the window which received the eventvoid window(gdk.window.Window propval) @propertySet `window` field. Params: propval = the window which received the eventvoid sendEvent(byte propval) @propertySet `sendEvent` field. Params: propval = true if the event was sent explicitly.void time(uint propval) @propertySet `time` field. Params: propval = the time of the event in milliseconds.void x(double propval) @propertySet `x` field. Params: propval = the x coordinate of the pointer relative to the windowvoid y(double propval) @propertySet `y` field. Params: propval = the y coordinate of the pointer relative to the windowgdk.types.ModifierType state() @propertyGet `state` field. Returns: a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See #GdkModifierTypevoid state(gdk.types.ModifierType propval) @propertySet `state` field. Params: propval = a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See #GdkModifierTypegdk.event_sequence.EventSequence sequence() @propertyGet `sequence` field. Returns: the event sequence that the event belongs tovoid sequence(gdk.event_sequence.EventSequence propval) @propertySet `sequence` field. Params: propval = the event sequence that the event belongs tobool emulatingPointer() @propertyGet `emulatingPointer` field. Returns: whether the event should be used for emulating pointer eventvoid emulatingPointer(bool propval) @propertySet `emulatingPointer` field. Params: propval = whether the event should be used for emulating pointer eventgdk.device.Device device() @propertyGet `device` field. Returns: the master device that the event originated from. Use [gdk.event.Event.getSourceDevice] to get the slave device.void device(gdk.device.Device propval) @propertySet `device` field. Params: propval = the master device that the event originated from. Use [gdk.event.Event.getSourceDevice] to get the slave device.double xRoot() @propertyGet `xRoot` field. Returns: the x coordinate of the pointer relative to the root of the screenvoid xRoot(double propval) @propertySet `xRoot` field. Params: propval = the x coordinate of the pointer relative to the root of the screendouble yRoot() @propertyGet `yRoot` field. Returns: the y coordinate of the pointer relative to the root of the screenvoid yRoot(double propval) @propertySet `yRoot` field. Params: propval = the y coordinate of the pointer relative to the root of the screen