Gtk.DropControllerMotion¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Signals that the pointer has entered the widget. |
|
Signals that the pointer has left the widget. |
|
Emitted when the pointer moves inside the widget. |
Fields¶
- Inherited:
Class Details¶
- class Gtk.DropControllerMotion(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GtkDropControllerMotion
is an event controller tracking the pointer during Drag-and-Drop operations.It is modeled after [class`Gtk`.EventControllerMotion] so if you have used that, this should feel really familiar.
This controller is not able to accept drops, use [class`Gtk`.DropTarget] for that purpose.
- classmethod new()[source]¶
- Returns:
a new
GtkDropControllerMotion
- Return type:
Creates a new event controller that will handle pointer motion events during drag and drop.
- contains_pointer()[source]¶
-
Returns if a Drag-and-Drop operation is within the widget self or one of its children.
Signal Details¶
- Gtk.DropControllerMotion.signals.enter(drop_controller_motion, x, y)¶
- Signal Name:
enter
- Flags:
- Parameters:
drop_controller_motion (
Gtk.DropControllerMotion
) – The object which received the signalx (
float
) – coordinates of pointer locationy (
float
) – coordinates of pointer location
Signals that the pointer has entered the widget.
- Gtk.DropControllerMotion.signals.leave(drop_controller_motion)¶
- Signal Name:
leave
- Flags:
- Parameters:
drop_controller_motion (
Gtk.DropControllerMotion
) – The object which received the signal
Signals that the pointer has left the widget.
- Gtk.DropControllerMotion.signals.motion(drop_controller_motion, x, y)¶
- Signal Name:
motion
- Flags:
- Parameters:
drop_controller_motion (
Gtk.DropControllerMotion
) – The object which received the signalx (
float
) – the x coordinatey (
float
) – the y coordinate
Emitted when the pointer moves inside the widget.
Property Details¶
- Gtk.DropControllerMotion.props.contains_pointer¶
-
Whether the pointer of a Drag-and-Drop operation is in the controller’s widget or a descendant.
See also [property`Gtk`.DropControllerMotion:is-pointer].
When handling crossing events, this property is updated before [signal`Gtk`.DropControllerMotion::enter], but after [signal`Gtk`.DropControllerMotion::leave] is emitted.
- Gtk.DropControllerMotion.props.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 [signal`Gtk`.DropControllerMotion::enter], but after [signal`Gtk`.DropControllerMotion::leave] is emitted.
- Gtk.DropControllerMotion.props.is_pointer¶
-
Whether the pointer is in the controllers widget itself, as opposed to in a descendent widget.
See also [property`Gtk`.DropControllerMotion:contains-pointer].
When handling crossing events, this property is updated before [signal`Gtk`.DropControllerMotion::enter], but after [signal`Gtk`.DropControllerMotion::leave] is emitted.