Package: gdk

GBoxed gdk-event-touch

Superclasses

gdk-event, common-lisp:structure-object, common-lisp:t

Documented Subclasses

None

Details

Used for touch events. The type field will be one of the :touch-begin, :touch-update, :touch-end or :touch-cancel values.

Touch events are grouped into sequences by means of the sequence field, which can also be obtained with the gdk-event-event-sequence function. Each sequence begins with a :touch-begin event, followed by any number of :touch-update events, and ends with a :touch-end event or :touch-cancel event. With multitouch devices, there may be several active sequences at the same time.
(define-g-boxed-variant-cstruct gdk-event "GdkEvent"
  (type gdk-event-type)
  (window (g-object gdk-window))
  (send-event (:boolean :int8))
  (:variant type
            ...
            ((:touch-begin
              :touch-update
              :touch-end
              :touch-cancel) gdk-event-touch
             (time :uint32)
             (x :double)
             (y :double)
             (axes (fixed-array :double 2))
             (state gdk-modifier-type)
             (sequence (g-boxed-foreign gdk-event-sequence))
             (emulating-pointer :boolean)
             (device (g-object gdk-device))
             (x-root :double)
             (y-root :double))
  ... ))  
type
The gdk-event-type type of the event, one of the values :touch-begin, :touch-update, :touch-end, :touch-cancel.
window
The gdk-window object which received the event.
send-event
True if the event was sent explicitly.
time
An unsigned integer with the time of the event in milliseconds.
x
The double float x coordinate of the pointer relative to the window.
y
The double float y coordinate of the pointer relative to the window.
axes
The x, y fields translated to the axes of the device.
state
The gdk-modifier-type bit-mask representing the state of the modifier keys, e.g. the Control, Shift and Alt keys, and the pointer buttons.
sequence
The gdk-event-sequence event sequence that the event belongs to.
emulating-pointer
Whether the event should be used for emulating pointer event.
device
The gdk-device object where the event originated.
x-root
The double float x coordinate of the pointer relative to the root of the screen.
y-root
The double float y coordinate of the pointer relative to the root of the screen.
 

Slot Access Functions

Inherited Slot Access Functions

See also

2021-12-13