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
EventControllerMotion self()Returns `this`, for use in `with` statements.EventControllerMotionGidBuilder builder()Get builder for [gtk.eventcontrollermotion.EventControllerMotion] Returns: New builder objectbool 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 childrenbool 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 childrengulong 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.classEventControllerMotionGidBuilder : EventControllerMotionGidBuilderImpl!EventControllerMotionGidBuilder
Fluent builder for [gtk.event_controller_motion.EventControllerMotion]
Methods