Next: , Previous: ClutterPaintNode, Up: Top


52 ClutterPathConstraint

A constraint that follows a path

52.1 Overview

<clutter-path-constraint> is a simple constraint that modifies the allocation of the <clutter-actor> to which it has been applied using a <clutter-path>.

By setting the <"offset"> property it is possible to control how far along the path the <clutter-actor> should be.

ClutterPathConstraint is available since Clutter 1.6.

52.2 Usage

— Function: clutter-path-constraint-new (self <clutter-path>) (offset float) ⇒  (ret <clutter-constraint>)
— Method: constraint-new

Creates a new <clutter-path-constraint> with the given path and offset

path
a <clutter-path>, or ‘#f’.
offset
the offset along the <clutter-path>
ret
the newly created <clutter-path-constraint>.

Since 1.6

— Function: clutter-path-constraint-set-path (self <clutter-path-constraint>) (path <clutter-path>)
— Method: set-path

Sets the path to be followed by the <clutter-path-constraint>.

The constraint will take ownership of the <clutter-path> passed to this function.

constraint
a <clutter-path-constraint>
path
a <clutter-path>.

Since 1.6

— Function: clutter-path-constraint-get-path (self <clutter-path-constraint>) ⇒  (ret <clutter-path>)
— Method: get-path

Retrieves a pointer to the <clutter-path> used by constraint.

constraint
a <clutter-path-constraint>
ret
the <clutter-path> used by the <clutter-path-constraint>, or ‘#f’. The returned <clutter-path> is owned by the constraint and it should not be unreferenced.

Since 1.6

— Function: clutter-path-constraint-set-offset (self <clutter-path-constraint>) (offset float)
— Method: set-offset

Sets the offset along the <clutter-path> used by constraint.

constraint
a <clutter-path-constraint>
offset
the offset along the path

Since 1.6

— Function: clutter-path-constraint-get-offset (self <clutter-path-constraint>) ⇒  (ret float)
— Method: get-offset

Retrieves the offset along the <clutter-path> used by constraint.

constraint
a <clutter-path-constraint>
ret
the offset

Since 1.6