Clutter::Behaviour::Opacity(3pm)

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)

•

$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

Releases

2 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0
  2. 6.0

From libclutter-perl 1.002-1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.