Next: , Previous: ClutterBehaviourBspline, Up: Top


6 ClutterBehaviourDepth

A behaviour controlling the Z position

6.1 Overview

<clutter-behaviour-depth> is a simple <clutter-behaviour> controlling the depth of a set of actors between a start and end depth.

<clutter-behaviour-depth> is available since Clutter 0.4.

6.2 Usage

— Class: <clutter-behaviour-depth>

Derives from <clutter-behaviour>.

This class defines the following slots:

depth-start
Initial depth to apply
depth-end
Final depth to apply
— Function: clutter-behaviour-depth-new (alpha <clutter-alpha>) (depth_start int) (depth_end int)   (ret <clutter-behaviour>)

Creates a new <clutter-behaviour-depth> which can be used to control the ClutterActor:depth property of a set of <clutter-actor>s.

alpha
a <clutter-alpha> or ‘#f
depth-start
initial value of the depth
depth-end
final value of the depth
ret
the newly created behaviour

Since 0.4

— Function: clutter-behaviour-depth-set-bounds (self <clutter-behaviour-depth>) (depth_start int) (depth_end int)
— Method: set-bounds

Sets the boundaries of the behaviour.

behaviour
a <clutter-behaviour-depth>
depth-start
initial value of the depth
depth-end
final value of the depth

Since 0.6

— Function: clutter-behaviour-depth-get-bounds (self <clutter-behaviour-depth>)   (depth_start int) (depth_end int)
— Method: get-bounds

Gets the boundaries of the behaviour

behaviour
a <clutter-behaviour-depth>
depth-start
return location for the initial depth value, or ‘#f
depth-end
return location for the final depth value, or ‘#f

Since 0.6