Package: gtk

Class gtk:event-controller-motion

Superclasses

gtk:event-controller, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

contains-pointer
The contains-pointer property of type :boolean (Read)
True if the pointer is in the controllers widget or a descendant. When handling crossing events, this property is updated before the "enter" signal but after the "leave" signal is emitted.
Default value: false
is-pointer
The is-pointer property of type :boolean (Read)
True if the pointer is contained in the controllers widget, as opposed to in a descendent widget. When handling crossing events, this property is updated before the "enter" signal, but after the "leave" signal is emitted.
Default value: false

Details

The gtk:event-controller-motion object is an event controller tracking the pointer position. The event controller offers "enter" and "leave" signals, as well as is-pointer and contains-pointer properties which are updated to reflect changes in the pointer position as it moves over the widget.

Signal Details

The "enter" signal
lambda (controller x y)    :run-first      
controller
The gtk:event-controller-motion object which received the signal.
x
The double float with the x coordinate.
y
The double float with the y coordinate.
Signals that the pointer has entered the widget.
The "leave" signal
lambda (controller)    :run-first      
controller
The gtk:event-controller-motion object which received the signal.
Signals that the pointer has left the widget.
The "motion" signal
lambda (controller x y)    :run-first      
controller
The gtk:event-controller-motion object which received the signal.
x
The double float with the x coordinate.
y
The double float with the y coordinate.
Emitted when the pointer moves inside the widget.
 

Returned by

Inherited Slot Access Functions

See also

2024-7-26