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.DropActionstructure 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:
class handler for the
Clutter.DropAction::can-dropsignal
- do_drop(actor, event_x, event_y) virtual¶
- Parameters:
actor (
Clutter.Actor) –event_x (
float) –event_y (
float) –
class handler for the
Clutter.DropAction::dropsignal
- do_over_in(actor) virtual¶
- Parameters:
actor (
Clutter.Actor) –
class handler for the
Clutter.DropAction::over-insignal
- do_over_out(actor) virtual¶
- Parameters:
actor (
Clutter.Actor) –
class handler for the
Clutter.DropAction::over-outsignal
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.Actorattached 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-dropsignal is emitted when the dragged actor is dropped on actor. The return value of the::can-dropsignal will determine whether or not theClutter.DropAction::dropsignal is going to be emitted on action.The default implementation of
Clutter.DropActionreturnsTruefor 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.Actorattached 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
::dropsignal is emitted when the dragged actor is dropped on actor. This signal is only emitted if at least an handler ofClutter.DropAction::can-dropreturnsTrue.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.Actorattached 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-cancelsignal is emitted when the drop is refused by an emission of theClutter.DropAction::can-dropsignal.After the
::drop-cancelsignal 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.Actorattached to the action
The
::over-insignal 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.Actorattached to the action
The
::over-outsignal is emitted when the dragged actor crosses outside actor.New in version 1.8.