Clutter::Behaviour::Rotate(3pm)
NAME
Clutter::Behaviour::Rotate - A behaviour controlling rotation
SYNOPSIS
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);
DESCRIPTION
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) o $alpha (Clutter::Alpha or undef)
- o $axis (Clutter::RotateAxis)
- o $direction (Clutter::RotateDirection)
- o $angle_begin (double)
- o $angle_end (double)
- rotateaxis = $rotate->get_axis $rotate->set_axis ($axis)
- o $axis (Clutter::RotateAxis)
- (angle_begin, angle_end) = $rotate->get_bounds $rotate->set_bounds ($angle_begin, $angle_end)
- o $angle_begin (double)
- o $angle_end (double)
- (x, y, z) = $rotate->get_center $rotate->set_center ($x, $y, $z)
- o $x (integer)
- o $y (integer)
- o $z (integer)
- rotatedirection = $rotate->get_direction $rotate->set_direction ($direction)
- o $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
- o 'x-axis' / 'CLUTTER_X_AXIS'
- o 'y-axis' / 'CLUTTER_Y_AXIS'
- o 'z-axis' / 'CLUTTER_Z_AXIS'
- enum Clutter::RotateDirection
- o 'cw' / 'CLUTTER_ROTATE_CW'
- o 'ccw' / 'CLUTTER_ROTATE_CCW'
SEE ALSO
Clutter::Behaviour, Clutter::Alpha
COPYRIGHT
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:
o the GNU Lesser General Public Library version 2.1; or
o the Artistic License, version 2.0.
- See Clutter for the full copyright notice.