Clutter::Behaviour::Opacity.3pm

Langue: en

Autres versions - même langue

Version: 2010-08-25 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

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
 
 

INTERFACES

   Glib::Object::_Unregistered::ClutterScriptable
 
 

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 (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.