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
GType _getGType() static nothrow
GType _gType() @property nothrow
DropControllerMotion self() nothrowReturns `this`, for use in `with` statements.
DropControllerMotionGidBuilder builder() static nothrowGet builder for [gtk.drop_controller_motion.DropControllerMotion] Returns: New builder object
gdk.drop.Drop drop() @property nothrowGet `drop` property. Returns: The ongoing drop operation over the controller's widget or its descendant.
bool containsPointer() nothrowReturns 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() nothrowReturns the [gdk.drop.Drop] of a current Drag-and-Drop operation over the widget of self. Returns: The [gdk.drop.Drop] currently happening within self
bool isPointer() nothrowReturns 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 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.drop_controller_motion.DropControllerMotion))) && 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.drop_controller_motion.DropControllerMotion))) && 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.drop_controller_motion.DropControllerMotion))) && Parameters!T.length < 4) nothrowConnect to `Motion` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new event controller that will handle pointer motion events during drag and drop. Returns: a new [gtk.drop_controller_motion.DropControllerMotion]