Rechercher une page de manuel
Clutter::Container.3pm
Langue: en
Version: 2008-02-20 (mandriva - 01/05/08)
Section: 3 (Bibliothèques de fonctions)
NAME
Clutter::ContainerDESCRIPTION
FIXMEHIERARCHY
Glib::Interface +----Clutter::Container
METHODS
$container->add ($actor, ...)
$container->add ($actor, ...)
-
- •
- $actor (Clutter::Actor)
- •
- ... (list)
actors = $container->get_children
actors = $container->get_children
actor or undef = $container->find_child_by_name ($name)
actor or undef = $container->find_child_by_name ($name)
-
- •
- $name (string)
$container->foreach ($callback, $callback_data=undef)
$container->foreach ($callback, $callback_data=undef)
-
- •
- $callback (scalar)
- •
- $callback_data (scalar)
$container->lower_child ($actor, $sibling)
$container->lower_child ($actor, $sibling)
-
- •
- $actor (Clutter::Actor)
- •
- $sibling (Clutter::Actor)
$container->raise_child ($actor, $sibling)
$container->raise_child ($actor, $sibling)
-
- •
- $actor (Clutter::Actor)
- •
- $sibling (Clutter::Actor)
$container->remove ($actor, ...)
$container->remove ($actor, ...)
-
- •
- $actor (Clutter::Actor)
- •
- ... (list)
CREATING A CUSTOM CONTAINER ACTOR
package MyContainer; use Clutter; use Glib::Object::Subclass 'Clutter::Actor', interfaces => [ qw( Clutter::Container ) ];
Virtual Methods
In order to create a Clutter::Container actor, an implementation of the following methods is required:
- ADD ($container, $actor)
- Called to add actor to container. The implementation should emit the ::actor-added signal once the actor has been added.
-
- o $container (Clutter::Container)
- o $actor (Clutter::Actor)
-
- REMOVE ($container, $actor)
- Called to remove actor from container. The implementation should emit the ::actor-removed signal once the actor has been removed.
-
- o $container (Clutter::Container)
- o $actor (Clutter::Actor)
-
- RAISE ($container, $child, $sibling)
- Called when raising child above sibling. If sibling is undefined, then child should be raised above every other child of container.
-
- o $container (Clutter::Container)
- o $child (Clutter::Actor)
- o $sibling (Clutter::Actor)
-
- LOWER ($container, $child, $sibling)
- Called when lowering child below sibling. If sibling is undefined, then child should be lowered below every other child of container.
-
- o $container (Clutter::Container)
- o $child (Clutter::Actor)
- o $sibling (Clutter::Actor)
-
- FOREACH ($container, $function, $data)
- Called when iterating over every child of container. For each child the function must be called with the actor and the passed data, for instance:
foreach my $child ($container->{children}) { $function ($child, $data); }
This function will also be called by the get_children method.
-
- o $container (Clutter::Container)
- o $function (code reference)
- o $data (scalar) data to pass to the function
-
SIGNALS
- actor-added (Clutter::Container, Clutter::Actor)
- actor-removed (Clutter::Container, Clutter::Actor)
SEE ALSO
Clutter, Glib::InterfaceCOPYRIGHT
Copyright (C) 2006 OpenedHand Ltd.This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Library version 2.1, or under the terms of the Artistic License. See Clutter for the full copyright notice.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre