Top | ![]() |
![]() |
![]() |
![]() |
GtkDropControllerMotion is an event controller meant for tracking the pointer hovering over a widget during a drag and drop operation.
It is modeled after GtkEventControllerMotion so if you have used that, this should feel really familiar.
The drop controller is not able to accept drops, use GtkDropTarget for that purpose.
GtkEventController *
gtk_drop_controller_motion_new (void
);
Creates a new event controller that will handle pointer motion events during drag and drop.
gboolean
gtk_drop_controller_motion_contains_pointer
(GtkDropControllerMotion *self
);
Returns the value of the GtkDropControllerMotion:contains-pointer property.
gboolean
gtk_drop_controller_motion_is_pointer (GtkDropControllerMotion *self
);
Returns the value of the GtkDropControllerMotion:is-pointer property.
GdkDrop *
gtk_drop_controller_motion_get_drop (GtkDropControllerMotion *self
);
Returns the value of the GtkDropControllerMotion:drop property.