Clutter.BehaviourScale

g Clutter.Behaviour Clutter.Behaviour Clutter.BehaviourScale Clutter.BehaviourScale Clutter.Behaviour->Clutter.BehaviourScale Clutter.Scriptable Clutter.Scriptable Clutter.Scriptable->Clutter.Behaviour GObject.GInterface GObject.GInterface GObject.GInterface->Clutter.Scriptable GObject.Object GObject.Object GObject.Object->Clutter.Behaviour

Subclasses:

None

Methods

Inherited:

Clutter.Behaviour (10), GObject.Object (37), Clutter.Scriptable (4)

Structs:

GObject.ObjectClass (5)

class

new (alpha, x_scale_start, y_scale_start, x_scale_end, y_scale_end)

get_bounds ()

set_bounds (x_scale_start, y_scale_start, x_scale_end, y_scale_end)

Virtual Methods

Inherited:

Clutter.Behaviour (3), GObject.Object (7), Clutter.Scriptable (4)

Properties

Inherited:

Clutter.Behaviour (1)

Name

Type

Flags

Short Description

x-scale-end

float

r/w

Final scale on the X axis deprecated

x-scale-start

float

r/w

Initial scale on the X axis deprecated

y-scale-end

float

r/w

Final scale on the Y axis deprecated

y-scale-start

float

r/w

Initial scale on the Y axis deprecated

Signals

Inherited:

Clutter.Behaviour (2), GObject.Object (1)

Fields

Inherited:

Clutter.Behaviour (2), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Clutter.Behaviour

r

Class Details

class Clutter.BehaviourScale(**kwargs)
Bases:

Clutter.Behaviour

Abstract:

No

Structure:

Clutter.BehaviourScaleClass

The Clutter.BehaviourScale struct contains only private data and should be accessed using the provided API

New in version 0.2.

Deprecated since version 1.6: Use clutter_actor_animate() with Clutter.Actor :scale-x and Clutter.Actor :scale-y instead.

classmethod new(alpha, x_scale_start, y_scale_start, x_scale_end, y_scale_end)
Parameters:
  • alpha (Clutter.Alpha or None) – a Clutter.Alpha instance, or None

  • x_scale_start (float) – initial scale factor on the X axis

  • y_scale_start (float) – initial scale factor on the Y axis

  • x_scale_end (float) – final scale factor on the X axis

  • y_scale_end (float) – final scale factor on the Y axis

Returns:

the newly created Clutter.BehaviourScale

Return type:

Clutter.Behaviour

Creates a new Clutter.BehaviourScale instance.

If alpha is not None, the Clutter.Behaviour will take ownership of the Clutter.Alpha instance. In the case when alpha is None, it can be set later with Clutter.Behaviour.set_alpha().

New in version 0.2.

Deprecated since version 1.6.

get_bounds()
Returns:

x_scale_start:

return location for the initial scale factor on the X axis, or None

y_scale_start:

return location for the initial scale factor on the Y axis, or None

x_scale_end:

return location for the final scale factor on the X axis, or None

y_scale_end:

return location for the final scale factor on the Y axis, or None

Return type:

(x_scale_start: float, y_scale_start: float, x_scale_end: float, y_scale_end: float)

Retrieves the bounds used by scale behaviour.

New in version 0.4.

Deprecated since version 1.6.

set_bounds(x_scale_start, y_scale_start, x_scale_end, y_scale_end)
Parameters:
  • x_scale_start (float) – initial scale factor on the X axis

  • y_scale_start (float) – initial scale factor on the Y axis

  • x_scale_end (float) – final scale factor on the X axis

  • y_scale_end (float) – final scale factor on the Y axis

Sets the bounds used by scale behaviour.

New in version 0.6.

Deprecated since version 1.6.

Property Details

Clutter.BehaviourScale.props.x_scale_end
Name:

x-scale-end

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE

The final scaling factor on the X axis for the actors.

New in version 0.6.

Deprecated since version 1.6.

Clutter.BehaviourScale.props.x_scale_start
Name:

x-scale-start

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE

The initial scaling factor on the X axis for the actors.

New in version 0.6.

Deprecated since version 1.6.

Clutter.BehaviourScale.props.y_scale_end
Name:

y-scale-end

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE

The final scaling factor on the Y axis for the actors.

New in version 0.6.

Deprecated since version 1.6.

Clutter.BehaviourScale.props.y_scale_start
Name:

y-scale-start

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE

The initial scaling factor on the Y axis for the actors.

New in version 0.6.

Deprecated since version 1.6.