DropControllerMotion

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.

Constructors

this
this()

Creates a new event controller that will handle pointer motion events during drag and drop.

Members

Functions

connectEnter
ulong connectEnter(T callback, Flag!"After" after)

Connect to Enter signal.

connectLeave
ulong connectLeave(T callback, Flag!"After" after)

Connect to Leave signal.

connectMotion
ulong connectMotion(T callback, Flag!"After" after)

Connect to Motion signal.

containsPointer
bool containsPointer()

Returns if a Drag-and-Drop operation is within the widget self or one of its children.

getDrop
gdk.drop.Drop getDrop()

Returns the gdk.drop.Drop of a current Drag-and-Drop operation over the widget of self.

isPointer
bool isPointer()

Returns if a Drag-and-Drop operation is within the widget self, not one of its children.

Inherited Members

From EventController

getCurrentEvent
gdk.event.Event getCurrentEvent()

Returns the event that is currently being handled by the controller.

getCurrentEventDevice
gdk.device.Device getCurrentEventDevice()

Returns the device of the event that is currently being handled by the controller.

getCurrentEventState
gdk.types.ModifierType getCurrentEventState()

Returns the modifier state of the event that is currently being handled by the controller.

getCurrentEventTime
uint getCurrentEventTime()

Returns the timestamp of the event that is currently being handled by the controller.

getName
string getName()

Gets the name of controller.

getPropagationLimit
gtk.types.PropagationLimit getPropagationLimit()

Gets the propagation limit of the event controller.

getPropagationPhase
gtk.types.PropagationPhase getPropagationPhase()

Gets the propagation phase at which controller handles events.

getWidget
gtk.widget.Widget getWidget()

Returns the gtk.widget.Widget this controller relates to.

reset
void reset()

Resets the controller to a clean state.

setName
void setName(string name)

Sets a name on the controller that can be used for debugging.

setPropagationLimit
void setPropagationLimit(gtk.types.PropagationLimit limit)

Sets the event propagation limit on the event controller.

setPropagationPhase
void setPropagationPhase(gtk.types.PropagationPhase phase)

Sets the propagation phase at which a controller handles events.

setStaticName
void setStaticName(string name)

Sets a name on the controller that can be used for debugging.