Class: Clutter::BehaviourScale

Inherits:
Behaviour show all
Defined in:
(unknown)

Overview

The Clutter::BehaviourScaleClass struct contains only private data

Instance Method Summary collapse

Methods inherited from Behaviour

#actors, #actors_foreach, #alpha, #alpha=, #apply, #get_nth_actor, #is_applied, #n_actors, #remove, #remove_all

Constructor Details

#initialize(alpha, x_scale_start, y_scale_start, x_scale_end, y_scale_end) ⇒ Clutter::Behaviour

Creates a new Clutter::BehaviourScale instance.

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

Parameters:

  • alpha (Clutter::Alpha)

    a Clutter::Alpha instance, or nil

  • 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

Instance Method Details

#get_bounds(x_scale_start, y_scale_start, x_scale_end, y_scale_end) ⇒ nil

Retrieves the bounds used by scale behaviour.

Parameters:

  • x_scale_start (Float)

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

  • y_scale_start (Float)

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

  • x_scale_end (Float)

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

  • y_scale_end (Float)

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

Returns:

  • (nil)

#set_bounds(x_scale_start, y_scale_start, x_scale_end, y_scale_end) ⇒ nil

Sets the bounds used by scale behaviour.

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

Returns:

  • (nil)

#x_scale_endFloat

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

Returns:

  • (Float)

    x-scale-end

#x_scale_end=(x_scale_end) ⇒ Float

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

Parameters:

  • x_scale_end (Float)

Returns:

  • (Float)

    x-scale-end

  • (Float)

    x-scale-end

#x_scale_startFloat

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

Returns:

  • (Float)

    x-scale-start

#x_scale_start=(x_scale_start) ⇒ Float

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

Parameters:

  • x_scale_start (Float)

Returns:

  • (Float)

    x-scale-start

  • (Float)

    x-scale-start

#y_scale_endFloat

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

Returns:

  • (Float)

    y-scale-end

#y_scale_end=(y_scale_end) ⇒ Float

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

Parameters:

  • y_scale_end (Float)

Returns:

  • (Float)

    y-scale-end

  • (Float)

    y-scale-end

#y_scale_startFloat

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

Returns:

  • (Float)

    y-scale-start

#y_scale_start=(y_scale_start) ⇒ Float

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

Parameters:

  • y_scale_start (Float)

Returns:

  • (Float)

    y-scale-start

  • (Float)

    y-scale-start