GdkEventTouch

Used for touch events. @type field will be one of %GDK_TOUCH_BEGIN, %GDK_TOUCH_UPDATE, %GDK_TOUCH_END or %GDK_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 a %GDK_TOUCH_BEGIN event, followed by any number of %GDK_TOUCH_UPDATE events, and ends with a %GDK_TOUCH_END (or %GDK_TOUCH_CANCEL) 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_get_source_device() to get the slave device.

emulatingPointer
bool 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
ModifierType 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_TOUCH_BEGIN, %GDK_TOUCH_UPDATE, %GDK_TOUCH_END, %GDK_TOUCH_CANCEL)

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

Meta