---
name: "Clutter::Behaviour::Scale"
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::Scale"
---

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

A behaviour controlling scale

## NAME

Clutter::Behaviour::Scale - A behaviour controlling scale

## SYNOPSIS

```
    my $behaviour = Clutter::Behaviour::Scale->new(
        Clutter::Alpha->new($timeline, 'ease-in-quad'),
        1.0, 1.0,       # initial scaling factors
        2.0, 2.0,       # final scaling factors
    );
```

## DESCRIPTION

**Clutter::Behaviour::Scale** interpolates actors scaling factors between two values.

## HIERARCHY

```
  Glib::Object
  +----Clutter::Behaviour
       +----Clutter::Behaviour::Scale
```

## METHODS

### behaviour = Clutter::Behaviour::Scale-\>new ($alpha=undef, $x\_start, $y\_start, $x\_end, $y\_end)

- •

  `$alpha` (Clutter::Alpha or undef)

- •

  `$x_start` (double)

- •

  `$y_start` (double)

- •

  `$x_end` (double)

- •

  `$y_end` (double)

### (x\_start, y\_start, x\_end, y\_end) = $scale-\>get\_bounds

### $scale-\>set\_bounds ($x\_start, $y\_start, $x\_end, $y\_end)

- •

  `$x_start` (double)

- •

  `$y_start` (double)

- •

  `$x_end` (double)

- •

  `$y_end` (double)

## PROPERTIES

- 'x-scale-end' (double : readable / writable / private)

  Final scale on the X axis

- 'x-scale-start' (double : readable / writable / private)

  Initial scale on the X axis

- 'y-scale-end' (double : readable / writable / private)

  Final scale on the Y axis

- 'y-scale-start' (double : readable / writable / private)

  Initial scale on the Y axis

## ENUMS AND FLAGS

### enum Clutter::Gravity

- •

  'none' / 'CLUTTER\_GRAVITY\_NONE'

- •

  'north' / 'CLUTTER\_GRAVITY\_NORTH'

- •

  'north-east' / 'CLUTTER\_GRAVITY\_NORTH\_EAST'

- •

  'east' / 'CLUTTER\_GRAVITY\_EAST'

- •

  'south-east' / 'CLUTTER\_GRAVITY\_SOUTH\_EAST'

- •

  'south' / 'CLUTTER\_GRAVITY\_SOUTH'

- •

  'south-west' / 'CLUTTER\_GRAVITY\_SOUTH\_WEST'

- •

  'west' / 'CLUTTER\_GRAVITY\_WEST'

- •

  'north-west' / 'CLUTTER\_GRAVITY\_NORTH\_WEST'

- •

  'center' / 'CLUTTER\_GRAVITY\_CENTER'

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