gtk.event_controller_motion

Module for [EventControllerMotion] class

Types 3

[gtk.event_controller_motion.EventControllerMotion] is an event controller tracking the pointer position.

The event controller offers [gtk.event_controller_motion.EventControllerMotion.enter] and [gtk.event_controller_motion.EventControllerMotion.leave] signals, as well as property@Gtk.EventControllerMotion:is-pointer and property@Gtk.EventControllerMotion:contains-pointer properties which are updated to reflect changes in the pointer position as it moves over the widget.

Methods
GType _gType() @property
EventControllerMotion self()Returns `this`, for use in `with` statements.
EventControllerMotionGidBuilder builder()Get builder for [gtk.eventcontrollermotion.EventControllerMotion] Returns: New builder object
bool containsPointer()Returns if a pointer is within self or one of its children. Returns: true if a pointer is within self or one of its children
bool isPointer()Returns if a pointer is within self, but not one of its children. Returns: true if a pointer is within self but not one of its children
gulong connectEnter(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == double))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.event_controller_motion.EventControllerMotion))) && Parameters!T.length < 4)Connect to `Enter` signal.
gulong connectLeave(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.event_controller_motion.EventControllerMotion))) && Parameters!T.length < 2)Connect to `Leave` signal.
gulong connectMotion(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == double))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.event_controller_motion.EventControllerMotion))) && Parameters!T.length < 4)Connect to `Motion` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new event controller that will handle motion events. Returns: a new [gtk.eventcontrollermotion.EventControllerMotion]

Fluent builder for [gtk.event_controller_motion.EventControllerMotion]