GtkDropControllerMotion — Event controller for motion events during a drop
#include <gtk/gtk.h>
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.
a new GtkDropControllerMotion
gboolean
gtk_drop_controller_motion_contains_pointer
(GtkDropControllerMotion *self
);
Returns the value of the GtkDropControllerMotion:contains-pointer property.
self |
TRUE
if a dragging pointer is within self
or one of its children.
gboolean
gtk_drop_controller_motion_is_pointer (GtkDropControllerMotion *self
);
Returns the value of the GtkDropControllerMotion:is-pointer property.
self |
TRUE
if a dragging pointer is within self
but not one of its children
GdkDrop *
gtk_drop_controller_motion_get_drop (GtkDropControllerMotion *self
);
Returns the value of the GtkDropControllerMotion:drop property.
self |
typedef struct _GtkDropControllerMotion GtkDropControllerMotion;
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk4/4.0/gtk4-GtkDropControllerMotion.html