clutter.Actor — Base abstract class for all visual stage actors.
|
"button-press-event" | def callback( |
"button-release-event" | def callback( |
"captured-event" | def callback( |
"destroy" | def callback( |
"enter-event" | def callback( |
"event" | def callback( |
"focus-in" | def callback( |
"focus-out" | def callback( |
"hide" | def callback( |
"key-press-event" | def callback( |
"key-release-event" | def callback( |
"leave-event" | def callback( |
"motion-event" | def callback( |
"parent-set" | def callback( |
"scroll-event" | def callback( |
"show" | def callback( |
clutter.Actor
is a
base abstract class for all visual elements on the stage. Every object that must
appear on the main clutter.Stage
clutter.Actor
,
either by using one of the classes provided by Clutter, or by implementing a new
clutter.Actor
subclass.
def show()
Flags a clutter actor to be displayed. An actor not shown will not appear on the display.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the object which received the event |
event :
| a clutter.ButtonEvent |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
The "button-press-event" signal is emitted each time a mouse button is pressed on actor
.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the object which received the event |
event :
| a clutter.ButtonEvent |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
The "button-release-event" signal is emitted each time a mouse button is released on actor
.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the object which received the signal |
event :
| a clutter.Event |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
The "captured-event" signal is emitted when an event is captured by Clutter.
This signal will be emitted starting from the top-level container (the
clutter.Stage
def callback(actor
, user_param1
, ...
)
actor :
| the object which received the signal |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
The "destroy" signal is emitted when an actor is destroyed, either by direct invocation of
clutter.Actor.destroy
()clutter.Group
that
contains the actor is destroyed.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the object which the pointer has entered |
event :
| a clutter.CrossingEvent |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
Returns :
| True if the event has been handled by the actor,
or False to continue the emission. |
The "event-event" signal is emitted when the pointer enters the actor
.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the object which received the event |
event :
| a clutter.Event |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
Returns :
| True if the event has been handled by the actor,
or False to continue the emission. |
The "event" signal is emitted each time an event is received by the actor.
This signal will be emitted on every actor, following the hierarchy chain,
until it reaches the top-level container (the
clutter.Stage
def callback(actor
, user_param1
, ...
)
actor :
| the actor which now now has key focus |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
The "focus-in" signal is emitted when actor
recieves key focus.
def callback(actor
, user_param1
, ...
)
actor :
| the actor which now now has key focus |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
The "focus-out" signal is emitted when actor
loses key focus.
def callback(actor
, user_param1
, ...
)
actor :
| the object which received the signal |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
The "hide" signal is emitted when an actor is no longer visible.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the actor which received the event |
event :
| a clutter.KeyEvent |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
Returns :
| True if the event has been handled by the actor,
or False to continue the emission. |
The "key-press-event" signal is emitted each time a keyboard button
is pressed on actor
.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the actor which received the event |
event :
| a clutter.KeyEvent |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
Returns :
| True if the event has been handled by the actor,
or False to continue the emission. |
The "key-press-event" signal is emitted each time a keyboard button
is released on actor
.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the actor which the pointer has left |
event :
| a clutter.CrossingEvent |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
Returns :
| True if the event has been handled by the actor,
or False to continue the emission. |
The "leave-event" signal is emitted when the pointer leaves the actor
.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the actor which the pointer has moved on |
event :
| a clutter.MotionEvent |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
Returns :
| True if the event has been handled by the actor,
or False to continue the emission. |
The "motion-event" signal is emitted each time the mouse pointer is moved on actor
.
def callback(actor
, old_parent
, user_param1
, ...
)
actor :
| the actor which received the signal |
old_parent :
| the previous parent of the actor, or None |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
The "parent-set" signal is emitted when the parent of the actor changes.
def callback(actor
, event
, user_param1
, ...
)
actor :
| the actor which received the event |
event :
| a clutter.ScrollEvent |
user_param1 :
| the first user parameter (if any) specified
with the connect () method |
... :
| additional user parameters (if any) |
Returns :
| True if the event has been handled by the actor,
or False to continue the emission. |
The "scroll-event" signal is emitted each time the mouse is scrolled on actor
.