NAME
Clutter::Behaviour::Opacity - A behaviour controlling opacity
SYNOPSIS
my $behaviour = Clutter::Behaviour::Opacity->new();$behaviour->set_alpha(Clutter::Alpha->new($timeline, 'linear'));$behaviour->set_bounds(255, 0); # fade out$behaviour->apply($actor);$timeline->start();
DESCRIPTION
Clutter::Behaviour::Opacity interpolates the opacity of the actors to which it has been applied between two values.
HIERARCHY
Glib::Object+----Clutter::Behaviour+----Clutter::Behaviour::Opacity
METHODS
behaviour = Clutter::Behaviour::Opacity->new ($alpha=undef, $opacity_start, $opacity_end)
- •
-
$alpha(Clutter::Alpha or undef)
- •
-
$opacity_start(unsigned)
- •
-
$opacity_end(unsigned)
(start, end) = $behaviour->get_bounds
$behaviour->set_bounds ($start, $end)
- •
-
$start(unsigned)
- •
-
$end(unsigned)
PROPERTIES
- 'opacity-end' (Glib::UInt : readable / writable / private)
-
Final opacity level
- 'opacity-start' (Glib::UInt : readable / writable / private)
-
Initial opacity level
SEE ALSO
Clutter::Behaviour, Clutter::Alpha
COPYRIGHT
Copyright (C) 2006, 2007, 2008 OpenedHand Ltd
Copyright (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.