SYNOPSIS
my $behaviour = Clutter::Behaviour::Depth->new();
$behaviour->set_alpha(Clutter::Alpha->new($timeline, 'ease-in-sine'));
$behaviour->set_bounds(-200, 200);
$behaviour->apply($rectangle);
$behaviour->apply($texture);
$timeline->start();
DESCRIPTION
Clutter::Behaviour::Depth is a simple Clutter::Behaviour controlling the depth of a set of actors between a start and end value.HIERARCHY
Glib::Object +----Clutter::Behaviour +----Clutter::Behaviour::Depth
METHODS
behaviour = Clutter::Behaviour::Depth->new ($alpha=undef, $depth_start, $depth_end)
- $alpha (Clutter::Alpha or undef)
- $depth_start (integer)
- $depth_end (integer)
(start, end) = $behaviour->get_bounds
$behaviour->set_bounds ($start, $end)
- $start (integer)
- $end (integer)
PROPERTIES
- 'depth-end' (integer : readable / writable / private)
- Final depth to apply
- 'depth-start' (integer : readable / writable / private)
- Initial depth to apply
COPYRIGHT
Copyright (C) 2006, 2007, 2008 OpenedHand LtdCopyright (C) 2009 Intel Corporation
This module is free software; you can redistribute it and/or modify it under the terms of either:
- the GNU Lesser General Public Library version 2.1; or
- the Artistic License, version 2.0.
See Clutter for the full copyright notice.