Class: Clutter::BehaviourOpacity

Inherits:
Behaviour show all
Defined in:
(unknown)

Overview

The Clutter::BehaviourOpacityClass structure 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, opacity_start, opacity_end) ⇒ Clutter::Behaviour

Creates a new Clutter::BehaviourOpacity object, driven by alpha which controls the opacity property of every actor, making it change in the interval between opacity_start and opacity_end.

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

  • opacity_start (Integer)

    minimum level of opacity

  • opacity_end (Integer)

    maximum level of opacity

Instance Method Details

#get_bounds(opacity_start, opacity_end) ⇒ nil

Gets the initial and final levels of the opacity applied by behaviour on each actor it controls.

Parameters:

  • opacity_start (Integer)

    return location for the minimum level of opacity, or nil

  • opacity_end (Integer)

    return location for the maximum level of opacity, or nil

Returns:

  • (nil)

#opacity_endInteger

Final opacity level of the behaviour.

Returns:

  • (Integer)

    opacity-end

#opacity_end=(opacity_end) ⇒ Integer

Final opacity level of the behaviour.

Parameters:

  • opacity_end (Integer)

Returns:

  • (Integer)

    opacity-end

  • (Integer)

    opacity-end

#opacity_startInteger

Initial opacity level of the behaviour.

Returns:

  • (Integer)

    opacity-start

#opacity_start=(opacity_start) ⇒ Integer

Initial opacity level of the behaviour.

Parameters:

  • opacity_start (Integer)

Returns:

  • (Integer)

    opacity-start

  • (Integer)

    opacity-start

#set_bounds(opacity_start, opacity_end) ⇒ nil

Sets the initial and final levels of the opacity applied by behaviour on each actor it controls.

Parameters:

  • opacity_start (Integer)

    minimum level of opacity

  • opacity_end (Integer)

    maximum level of opacity

Returns:

  • (nil)