Gjsify LogoGjsify Logo

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.

record

Hierarchy

  • EventTouch

Index

Constructors

Properties

axes: number

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

field
device: Gdk.Device

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

field
emulating_pointer: boolean

whether the event should be used for emulating pointer event

field
send_event: number

%TRUE if the event was sent explicitly.

field
sequence: Gdk.EventSequence

the event sequence that the event belongs to

field

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

field
time: number

the time of the event in milliseconds.

field

the type of the event (%GDK_TOUCH_BEGIN, %GDK_TOUCH_UPDATE, %GDK_TOUCH_END, %GDK_TOUCH_CANCEL)

field
window: Gdk.Window

the window which received the event

field
x: number

the x coordinate of the pointer relative to the window

field
x_root: number

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

field
y: number

the y coordinate of the pointer relative to the window

field
y_root: number

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

field
name: string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method