Clutter.DropAction¶
Subclasses: | None |
---|
Methods¶
Inherited: | Clutter.ActorMeta (5), GObject.Object (37) |
---|---|
Structs: | GObject.ObjectClass (5) |
class | new () |
Virtual Methods¶
Inherited: | Clutter.ActorMeta (1), GObject.Object (7) |
---|
do_can_drop (actor, event_x, event_y) |
|
do_drop (actor, event_x, event_y) |
|
do_over_in (actor) |
|
do_over_out (actor) |
Properties¶
Inherited: | Clutter.ActorMeta (3) |
---|
Signals¶
Inherited: | GObject.Object (1) |
---|
Name | Short Description |
---|---|
can-drop |
The ::can-drop signal is emitted when the dragged actor is dropped on actor. |
drop |
The ::drop signal is emitted when the dragged actor is dropped on actor. |
drop-cancel |
The ::drop-cancel signal is emitted when the drop is refused by an emission of the Clutter.DropAction ::can-drop signal. |
over-in |
The ::over-in signal is emitted when the dragged actor crosses into actor. |
over-out |
The ::over-out signal is emitted when the dragged actor crosses outside actor. |
Class Details¶
-
class
Clutter.
DropAction
(**kwargs)¶ Bases: Clutter.Action
Abstract: No Structure: Clutter.DropActionClass
The
Clutter.DropAction
structure contains only private data and should be accessed using the provided API.New in version 1.8.
-
classmethod
new
()¶ Returns: the newly created Clutter.DropAction
Return type: Clutter.Action
Creates a new
Clutter.DropAction
.Use
Clutter.Actor.add_action
() to add the action to aClutter.Actor
.New in version 1.8.
-
do_can_drop
(actor, event_x, event_y) virtual¶ Parameters: - actor (
Clutter.Actor
) – - event_x (
float
) – - event_y (
float
) –
Return type: - actor (
-
do_drop
(actor, event_x, event_y) virtual¶ Parameters: - actor (
Clutter.Actor
) – - event_x (
float
) – - event_y (
float
) –
- actor (
-
do_over_in
(actor) virtual¶ Parameters: actor ( Clutter.Actor
) –
-
do_over_out
(actor) virtual¶ Parameters: actor ( Clutter.Actor
) –
-
classmethod
Signal Details¶
-
Clutter.DropAction.signals.
can_drop
(drop_action, actor, event_x, event_y)¶ Signal Name: can-drop
Flags: Parameters: - drop_action (
Clutter.DropAction
) – The object which received the signal - actor (
Clutter.Actor
) – theClutter.Actor
attached to the action - event_x (
float
) – the X coordinate (in stage space) of the drop event - event_y (
float
) – the Y coordinate (in stage space) of the drop event
Returns: Return type: The
::can-drop
signal is emitted when the dragged actor is dropped on actor. The return value of the::can-drop
signal will determine whether or not theClutter.DropAction
::drop
signal is going to be emitted on action.The default implementation of
Clutter.DropAction
returnsTrue
for this signal.New in version 1.8.
- drop_action (
-
Clutter.DropAction.signals.
drop
(drop_action, actor, event_x, event_y)¶ Signal Name: drop
Flags: Parameters: - drop_action (
Clutter.DropAction
) – The object which received the signal - actor (
Clutter.Actor
) – theClutter.Actor
attached to the action - event_x (
float
) – the X coordinate (in stage space) of the drop event - event_y (
float
) – the Y coordinate (in stage space) of the drop event
The
::drop
signal is emitted when the dragged actor is dropped on actor. This signal is only emitted if at least an handler ofClutter.DropAction
::can-drop
returnsTrue
.New in version 1.8.
- drop_action (
-
Clutter.DropAction.signals.
drop_cancel
(drop_action, actor, event_x, event_y)¶ Signal Name: drop-cancel
Flags: Parameters: - drop_action (
Clutter.DropAction
) – The object which received the signal - actor (
Clutter.Actor
) – theClutter.Actor
attached to the action - event_x (
float
) – the X coordinate (in stage space) of the drop event - event_y (
float
) – the Y coordinate (in stage space) of the drop event
The
::drop-cancel
signal is emitted when the drop is refused by an emission of theClutter.DropAction
::can-drop
signal.After the
::drop-cancel
signal is fired the active drag is terminated.New in version 1.12.
- drop_action (
-
Clutter.DropAction.signals.
over_in
(drop_action, actor)¶ Signal Name: over-in
Flags: Parameters: - drop_action (
Clutter.DropAction
) – The object which received the signal - actor (
Clutter.Actor
) – theClutter.Actor
attached to the action
The
::over-in
signal is emitted when the dragged actor crosses into actor.New in version 1.8.
- drop_action (
-
Clutter.DropAction.signals.
over_out
(drop_action, actor)¶ Signal Name: over-out
Flags: Parameters: - drop_action (
Clutter.DropAction
) – The object which received the signal - actor (
Clutter.Actor
) – theClutter.Actor
attached to the action
The
::over-out
signal is emitted when the dragged actor crosses outside actor.New in version 1.8.
- drop_action (