Clutter::Behaviour::Rotate3pm
A behaviour controlling rotation
Usage
my $behaviour = Clutter::Behaviour::Rotate->new();$behaviour->set_alpha(Clutter::Alpha->new($timeline, 'ease-out-quad'));$behaviour->set_axis('z-axis');$behaviour->set_direction('ccw');$behaviour->set_bounds(270, 90);
Overview
Clutter::Behaviour::Rotate rotates actors between a starting and ending angle on a given axis.
Hierarchy
Glib::Object+----Clutter::Behaviour+----Clutter::Behaviour::Rotate
Methods
behaviour = Clutter::Behaviour::Rotate->new ($alpha=undef, $axis, $direction, $angle_begin, $angle_end)
•
|
|
|---|---|
•
|
|
•
|
|
•
|
|
•
|
|
rotateaxis = $rotate->get_axis
$rotate->set_axis ($axis)
- •
-
$axis(Clutter::RotateAxis)
(angle_begin, angle_end) = $rotate->get_bounds
$rotate->set_bounds ($angle_begin, $angle_end)
•
|
|
|---|---|
•
|
|
(x, y, z) = $rotate->get_center
$rotate->set_center ($x, $y, $z)
•
|
|
|---|---|
•
|
|
•
|
|
rotatedirection = $rotate->get_direction
$rotate->set_direction ($direction)
- •
-
$direction(Clutter::RotateDirection)
Properties
'angle-end' (double : readable / writable / private)
|
Final angle |
|---|---|
'angle-start' (double : readable / writable / private)
|
Initial angle |
'axis' (Clutter::RotateAxis : readable / writable / private)
|
Axis of rotation |
'center-x' (integer : readable / writable / private)
|
X center of rotation |
'center-y' (integer : readable / writable / private)
|
Y center of rotation |
'center-z' (integer : readable / writable / private)
|
Z center of rotation |
'direction' (Clutter::RotateDirection : readable / writable / private)
|
Direction of rotation |
Enums and flags
enum Clutter::RotateAxis
•
|
'x-axis' / 'CLUTTER_X_AXIS' |
|---|---|
•
|
'y-axis' / 'CLUTTER_Y_AXIS' |
•
|
'z-axis' / 'CLUTTER_Z_AXIS' |
enum Clutter::RotateDirection
•
|
'cw' / 'CLUTTER_ROTATE_CW' |
|---|---|
•
|
'ccw' / 'CLUTTER_ROTATE_CCW' |
Releases
2 releases since Debian 5.0 (Lenny); the text changed 1 time.