DropControllerMotion
-
class DropControllerMotion(**properties: Any)
Superclasses: EventController
, Object
GtkDropControllerMotion
is an event controller tracking
the pointer during Drag-and-Drop operations.
It is modeled after EventControllerMotion
so if you
have used that, this should feel really familiar.
This controller is not able to accept drops, use DropTarget
for that purpose.
Constructors
-
class DropControllerMotion
-
classmethod new() → EventController
Creates a new event controller that will handle pointer motion
events during drag and drop.
Methods
-
class DropControllerMotion
-
contains_pointer() → bool
Returns if a Drag-and-Drop operation is within the widget
self
or one of its children.
-
get_drop() → Drop | None
Returns the GdkDrop
of a current Drag-and-Drop operation
over the widget of self
.
-
is_pointer() → bool
Returns if a Drag-and-Drop operation is within the widget
self
, not one of its children.
Properties
-
class DropControllerMotion
-
props.contains_pointer: bool
The type of the None singleton.
-
props.drop: Drop
The type of the None singleton.
-
props.is_pointer: bool
The type of the None singleton.
Signals
-
class DropControllerMotion.signals
-
enter(x: float, y: float) → None
The type of the None singleton.
- Parameters:
-
-
leave() → None
The type of the None singleton.
-
motion(x: float, y: float) → None
The type of the None singleton.
- Parameters:
x – the x coordinate
y – the y coordinate