Package: gdk

GBoxed gdk:event-motion

Declaration

(define-gboxed-variant-cstruct event "GdkEvent"
  (type event-type)
  (window (g:object window))
  (send-event (:boolean :int8))
  (:variant type
            ...
            ((:motion-notify) event-motion
             (time :uint32)
             (x :double)
             (y :double)
             (axes (fixed-array :double 2))
             (state modifier-type)
             (is-hint :int16)
             (device (g:object device))
             (x-root :double)
             (y-root :double))
  ... ))  

Values

type
The gdk:event-type type of the event.
window
The gdk:window object which received the event.
send-event
True if the event was sent explicitly.
time
The 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, for example, the Control, Shift and Alt keys, and the pointer buttons.
is-hint
Set to 1 if this event is just a hint, see the :pointer-motion-hint-mask value of the gdk:event-mask flags.
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.

Details

Generated when the pointer moves.
 

Slot Access Functions

Inherited Slot Access Functions

See also

2024-6-28