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 gtk.event_controller_motion.EventControllerMotion.isPointer and gtk.event_controller_motion.EventControllerMotion.containsPointer properties which are updated to reflect changes in the pointer position as it moves over the widget.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
EventControllerMotion self() nothrowReturns `this`, for use in `with` statements.
EventControllerMotionGidBuilder builder() static nothrowGet builder for [gtk.event_controller_motion.EventControllerMotion] Returns: New builder object
bool containsPointer() nothrowReturns 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() nothrowReturns 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) nothrowConnect 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) nothrowConnect 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) nothrowConnect 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.event_controller_motion.EventControllerMotion]