clutter.Container — Interface for container actors
class clutter.Container(gobject.GInterface): |
"actor-added" | def callback( |
"actor-removed" | def callback( |
clutter.Container
is an interface for writing actors containing other actors. It provides
a standard API for adding, removing and iterating over the children of
a container.
An actor implementing the Container interface is clutter.Group
.
def add(actor
, ...
)
actor : | an actor to be placed inside the continer |
... : | zero or more actors to add |
The add
() method places new, unparented
actors inside a clutter.Container.
def remove(actor
, ...
)
actor : | an actor to be removed from the continer |
... : | zero or more actors to remove |
The remove
() method removes a child from
a clutter.Container.
def foreach(callback
, callback_data
)
callback : | a function to be called on each actor |
... : | data to be passed to the callback |
The foreach
() method invokes a callback
on every child of a clutter.Container.
def raise_child(actor
, sibling
)
actor : | the actor to raise |
sibling : | the sibling to raise to, or None |
Raises actor at the level
of sibling, in the depth ordering. If sibling is None
then actor will be raised
at the top.
def lower_child(actor
, sibling
)
actor : | the actor to lower |
sibling : | the sibling to lower to, or None |
Lowers actor at the level
of sibling, in the depth ordering. If sibling is None
then actor will be lowered
at the bottom.
def find_child_by_name(name
)
name : | the name of the child |
Finds the actor with the given name.
def callback(container
, actor
, user_param1
, ...
)
container : | the container that received the signal |
actor : | the newly added child |
user_param1 : | the first user parameter (if any) specified with the connect () |
... : | additional user parameters (if any) |
The "actor-added" signal is emitted when a new actor has been added to the container.
def callback(container
, actor
, user_param1
, ...
)
container : | the container that received the signal |
actor : | the removed child |
user_param1 : | the first user parameter (if any) specified with the connect () |
... : | additional user parameters (if any) |
The "actor-removed" signal is emitted when an actor has been removed from the container.