Clutter::Behaviour::Rotate.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::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
 
 

INTERFACES

   Glib::Object::_Unregistered::ClutterScriptable
 
 

METHODS

behaviour = Clutter::Behaviour::Rotate->new ($alpha=undef, $axis, $direction, $angle_begin, $angle_end)

$alpha (Clutter::Alpha or undef)
$axis (Clutter::RotateAxis)
$direction (Clutter::RotateDirection)
$angle_begin (double)
$angle_end (double)

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)

$angle_begin (double)
$angle_end (double)

(x, y, z) = $rotate->get_center

$rotate->set_center ($x, $y, $z)

$x (integer)
$y (integer)
$z (integer)

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'

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.