Next: Clutter Effects, Previous: Colors, Up: Top
An interface for implementing container actors
<clutter-container> is an interface for writing actors containing other
<clutter-actor>s. It provides a standard API for adding, removing and
iterating on every contained actor.
An actor implementing <clutter-container> is <clutter-group>.
<clutter-container> is available since Clutter 0.4
<clutter-container>) (actor <clutter-actor>)Adds a
<clutter-actor>to container. This function will emit the "actor-added" signal. The actor should be parented to container. You cannot add a<clutter-actor>to more than one<clutter-container>.
- container
- a
<clutter-container>- actor
- the first
<clutter-actor>to addSince 0.4
<clutter-container>) (actor <clutter-actor>)Removes actor from container. The actor should be unparented, so if you want to keep it around you must hold a reference to it yourself, using
g-object-ref. When the actor has been removed, the "actor-removed" signal is emitted by container.
- container
- a
<clutter-container>- actor
- a
<clutter-actor>Since 0.4
<clutter-container>) (ret glist-of)Retrieves all the children of container.
- container
- a
<clutter-container>- ret
- a list of
<clutter-actor>s. Useg-list-freeon the returned list when done.Since 0.4
<clutter-container>) (actor <clutter-actor>) (sibling <clutter-actor>)Raises actor to sibling level, in the depth ordering.
- container
- a
<clutter-container>- actor
- the actor to raise
- sibling
- the sibling to raise to, or ‘
#f’ to raise to the topSince 0.6
<clutter-container>) (actor <clutter-actor>) (sibling <clutter-actor>)Lowers actor to sibling level, in the depth ordering.
- container
- a
<clutter-container>- actor
- the actor to raise
- sibling
- the sibling to lower to, or ‘
#f’ to lower to the bottomSince 0.6
<clutter-container>)Sorts a container's children using their depth. This function should not be normally used by applications.
- container
- a
<clutter-container>Since 0.6
<clutter-container>) (actor <clutter-actor>) (ret <clutter-child-meta>)Retrieves the
<clutter-child-meta>which contains the data about the container specific state for actor.
- container
- a
<clutter-container>- actor
- a
<clutter-actor>that is a child of container.- ret
- the
<clutter-child-meta>for the actor child of container or ‘#f’ if the specifiec actor does not exist or the container is not configured to provide<clutter-child-meta>sSince 0.8