Clutter::Behaviour::Opacity(3pm)

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)
o $alpha (Clutter::Alpha or undef)
o $opacity_start (unsigned)
o $opacity_end (unsigned)
(start, end) = $behaviour->get_bounds $behaviour->set_bounds ($start, $end)
o $start (unsigned)
o $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:

o the GNU Lesser General Public Library version 2.1; or

o the Artistic License, version 2.0.

See Clutter for the full copyright notice.
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout