GdkEventTouch

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.

Members

Variables

axes
double* axes;

@x, @y translated to the axes of @device, or null if @device is the mouse

device
GdkDevice* device;

the master device that the event originated from. Use gdk.event.Event.getSourceDevice to get the slave device.

emulatingPointer
gboolean emulatingPointer;

whether the event should be used for emulating pointer event

sendEvent
byte sendEvent;

true if the event was sent explicitly.

sequence
GdkEventSequence* sequence;

the event sequence that the event belongs to

state
GdkModifierType state;

a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See #GdkModifierType

time
uint time;

the time of the event in milliseconds.

type
GdkEventType type;

the type of the event (gdk.types.EventType.TouchBegin, gdk.types.EventType.TouchUpdate, gdk.types.EventType.TouchEnd, gdk.types.EventType.TouchCancel)

window
GdkWindow* window;

the window which received the event

x
double x;

the x coordinate of the pointer relative to the window

xRoot
double xRoot;

the x coordinate of the pointer relative to the root of the screen

y
double y;

the y coordinate of the pointer relative to the window

yRoot
double yRoot;

the y coordinate of the pointer relative to the root of the screen