Clutter.BehaviourOpacity

g Clutter.Behaviour Clutter.Behaviour Clutter.BehaviourOpacity Clutter.BehaviourOpacity Clutter.Behaviour->Clutter.BehaviourOpacity 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, opacity_start, opacity_end)
  get_bounds ()
  set_bounds (opacity_start, opacity_end)

Properties

Inherited:Clutter.Behaviour (1)
Name Type Flags Short Description
opacity-end int r/w Final opacity level deprecated
opacity-start int r/w Initial opacity level deprecated

Fields

Inherited:Clutter.Behaviour (2), GObject.Object (1)
Name Type Access Description
parent Clutter.Behaviour r  

Class Details

class Clutter.BehaviourOpacity(**kwargs)
Bases:Clutter.Behaviour
Abstract:No
Structure:Clutter.BehaviourOpacityClass

The Clutter.BehaviourOpacity structure 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() and Clutter.Actor :opacity instead.

classmethod new(alpha, opacity_start, opacity_end)
Parameters:
Returns:

the newly created Clutter.BehaviourOpacity

Return type:

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 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:
opacity_start:return location for the minimum level of opacity, or None
opacity_end:return location for the maximum level of opacity, or None
Return type:(opacity_start: int, opacity_end: int)

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

New in version 0.6.

Deprecated since version 1.6.

set_bounds(opacity_start, opacity_end)
Parameters:
  • opacity_start (int) – minimum level of opacity
  • opacity_end (int) – maximum level of opacity

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

New in version 0.6.

Deprecated since version 1.6.

Property Details

Clutter.BehaviourOpacity.props.opacity_end
Name:opacity-end
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Final opacity level of the behaviour.

New in version 0.2.

Deprecated since version 1.6.

Clutter.BehaviourOpacity.props.opacity_start
Name:opacity-start
Type:int
Default Value:0
Flags:READABLE, WRITABLE

Initial opacity level of the behaviour.

New in version 0.2.

Deprecated since version 1.6.