Clutter.DropAction¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
|
The |
|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.DropAction(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
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:
- do_drop(actor, event_x, event_y) virtual¶
- Parameters:
actor (
Clutter.Actor
) –event_x (
float
) –event_y (
float
) –
- do_over_in(actor) virtual¶
- Parameters:
actor (
Clutter.Actor
) –
- do_over_out(actor) virtual¶
- Parameters:
actor (
Clutter.Actor
) –
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 signalactor (
Clutter.Actor
) – theClutter.Actor
attached to the actionevent_x (
float
) – the X coordinate (in stage space) of the drop eventevent_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.
- 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 signalactor (
Clutter.Actor
) – theClutter.Actor
attached to the actionevent_x (
float
) – the X coordinate (in stage space) of the drop eventevent_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.
- 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 signalactor (
Clutter.Actor
) – theClutter.Actor
attached to the actionevent_x (
float
) – the X coordinate (in stage space) of the drop eventevent_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.
- Clutter.DropAction.signals.over_in(drop_action, actor)¶
- Signal Name:
over-in
- Flags:
- Parameters:
drop_action (
Clutter.DropAction
) – The object which received the signalactor (
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.
- Clutter.DropAction.signals.over_out(drop_action, actor)¶
- Signal Name:
over-out
- Flags:
- Parameters:
drop_action (
Clutter.DropAction
) – The object which received the signalactor (
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.