Emmanuele Bassi > Clutter > xs/ClutterInterval.xs

Download:
Clutter-1.002.tar.gz

Annotate this POD

CPAN RT

New  2
Open  2
View Bugs
Report a bug
Source  

SYNOPSIS ^

    my $interval = Clutter::Interval->new('Glib::Int', 0, 11);
    my $value = $interval->compute_value(0.5);

DESCRIPTION ^

Clutter::Interval is a simple object providing a strongly-typed storage for a interval between two values.

Note: Once a Clutter::Interval for a specific type has been instantiated the Clutter::Interval value-type property cannot be changed anymore.

Clutter::Interval is used by #ClutterAnimation to define the interval of values that an implicit animation should tween over.

Note: Currently, you cannot subclass a Clutter::Interval to override the interval validation and the value computation; this requires additional support inside the Glib Perl bindings that is not currently available.