Clutter::Behaviour::Opacity3pm
A behaviour controlling opacity
Usage
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();
Overview
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)
•
|
|
|---|---|
•
|
|
•
|
|
(start, end) = $behaviour->get_bounds
$behaviour->set_bounds ($start, $end)
•
|
|
|---|---|
•
|
|
Properties
'opacity-end' (Glib::UInt : readable / writable / private)
|
Final opacity level |
|---|---|
'opacity-start' (Glib::UInt : readable / writable / private)
|
Initial opacity level |
Releases
2 releases since Debian 5.0 (Lenny); the text changed 1 time.