DropControllerMotion
Superclasses: EventController
, Object
- Constructors:
DropControllerMotion(**properties)
new() -> Gtk.EventController
Constructors
- class DropControllerMotion
- classmethod new() EventController
Creates a new event controller that will handle pointer motion events during drag and drop.
Methods
Properties
- class DropControllerMotion
- props.contains_pointer: bool
Whether the pointer of a Drag-and-Drop operation is in the controller’s widget or a descendant.
See also
is_pointer
.When handling crossing events, this property is updated before
enter
, but afterleave
is emitted.
- props.drop: Drop
The ongoing drop operation over the controller’s widget or its descendant.
If no drop operation is going on, this property returns
None
.The event controller should not modify the
drop
, but it might want to query its properties.When handling crossing events, this property is updated before
enter
, but afterleave
is emitted.
- props.is_pointer: bool
Whether the pointer is in the controllers widget itself, as opposed to in a descendent widget.
See also
contains_pointer
.When handling crossing events, this property is updated before
enter
, but afterleave
is emitted.