gtk.drop_controller_motion
Module for [DropControllerMotion] class
Types 3
[gtk.drop_controller_motion.DropControllerMotion] is an event controller tracking the pointer during Drag-and-Drop operations.
It is modeled after [gtk.event_controller_motion.EventControllerMotion] so if you have used that, this should feel really familiar.
This controller is not able to accept drops, use [gtk.drop_target.DropTarget] for that purpose.
Methods
DropControllerMotion self()Returns `this`, for use in `with` statements.DropControllerMotionGidBuilder builder()Get builder for [gtk.dropcontrollermotion.DropControllerMotion] Returns: New builder objectgdk.drop.Drop drop() @propertyGet `drop` property. Returns: The ongoing drop operation over the controller's widget or its descendant.bool containsPointer()Returns if a Drag-and-Drop operation is within the widget self or one of its children. Returns: true if a dragging pointer is within self or one of its children.gdk.drop.Drop getDrop()Returns the [gdk.drop.Drop] of a current Drag-and-Drop operation over the widget of self. Returns: The [gdk.drop.Drop] currently happening within selfbool isPointer()Returns if a Drag-and-Drop operation is within the widget self, not one of its children. Returns: true if a dragging 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.drop_controller_motion.DropControllerMotion)))
&& 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.drop_controller_motion.DropControllerMotion)))
&& 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.drop_controller_motion.DropControllerMotion)))
&& Parameters!T.length < 4)Connect to `Motion` signal.classDropControllerMotionGidBuilder : DropControllerMotionGidBuilderImpl!DropControllerMotionGidBuilder
Fluent builder for [gtk.drop_controller_motion.DropControllerMotion]
Methods