clutter.Container — Interface for container actors
class clutter.Container(gobject.GInterface): |
def callback( | |
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, ...)
| 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, ...)
| 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)
| 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)
| the actor to raise |
| 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)
| the actor to lower |
| 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)
| the name of the child |
Finds the actor with the given name.
def callback(container, actor, user_param1, ...)
| the container that received the signal |
| the newly added child |
| 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, ...)
| the container that received the signal |
| the removed child |
| 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.