---
name: "Clutter::Behaviour::Rotate"
section: "3pm"
platform: "linux"
package: "libclutter-perl"
version: "1.002-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Clutter::Behaviour::Rotate"
---

# Clutter::Behaviour::Rotate(3pm)

A behaviour controlling rotation

## 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)

- •

  `$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

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.
