Struct

GdkEventTouch

Description [src]

struct GdkEventTouch {
  GdkEventType type;
  GdkWindow* window;
  gint8 send_event;
  guint32 time;
  gdouble x;
  gdouble y;
  gdouble* axes;
  GdkModifierType* state;
  GdkEventSequence* sequence;
  gboolean emulating_pointer;
  GdkDevice* device;
  gdouble x_root;
  gdouble y_root;
}

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.

Structure members
type

The type of the event (GDK_TOUCH_BEGIN, GDK_TOUCH_UPDATE, GDK_TOUCH_END, GDK_TOUCH_CANCEL).

window

The window which received the event.

send_event

TRUE if the event was sent explicitly.

time

The time of the event in milliseconds.

x

The x coordinate of the pointer relative to the window.

y

The y coordinate of the pointer relative to the window.

axes

x, y translated to the axes of device, or NULL if device is the mouse.

state

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

sequence

The event sequence that the event belongs to.

emulating_pointer

Whether the event should be used for emulating pointer event.

device

The master device that the event originated from. Use gdk_event_get_source_device() to get the slave device.

x_root

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

y_root

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