Clutter.PathConstraint¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The offset along the path, between -1.0 and 2.0 |
||
r/w |
The path used to constrain an actor |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
The |
Fields¶
- Inherited:
Class Details¶
- class Clutter.PathConstraint(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Clutter.PathConstraintis an opaque structure whose members cannot be directly accessedNew in version 1.6.
- classmethod new(path, offset)¶
- Parameters:
path (
Clutter.PathorNone) – aClutter.Path, orNoneoffset (
float) – the offset along theClutter.Path
- Returns:
the newly created
Clutter.PathConstraint- Return type:
Creates a new
Clutter.PathConstraintwith the given path and offsetNew in version 1.6.
- get_offset()¶
- Returns:
the offset
- Return type:
Retrieves the offset along the
Clutter.Pathused by self.New in version 1.6.
- get_path()¶
- Returns:
the
Clutter.Pathused by theClutter.PathConstraint, orNone. The returnedClutter.Pathis owned by the constraint and it should not be unreferenced- Return type:
Retrieves a pointer to the
Clutter.Pathused by self.New in version 1.6.
- set_offset(offset)¶
- Parameters:
offset (
float) – the offset along the path
Sets the offset along the
Clutter.Pathused by self.New in version 1.6.
- set_path(path)¶
- Parameters:
path (
Clutter.PathorNone) – aClutter.Path
Sets the path to be followed by the
Clutter.PathConstraint.The self will take ownership of the
Clutter.Pathpassed to this function.New in version 1.6.
Signal Details¶
- Clutter.PathConstraint.signals.node_reached(path_constraint, actor, index)¶
- Signal Name:
node-reached- Flags:
- Parameters:
path_constraint (
Clutter.PathConstraint) – The object which received the signalactor (
Clutter.Actor) – theClutter.Actorusing the constraintindex (
int) – the index of the node that has been reached
The
::node-reachedsignal is emitted each time aClutter.PathConstraint:offsetvalue results in the actor passing aClutter.PathNodeNew in version 1.6.
Property Details¶
- Clutter.PathConstraint.props.offset¶
-
The offset along the
Clutter.PathConstraint:path, between -1.0 and 2.0.New in version 1.6.
- Clutter.PathConstraint.props.path¶
- Name:
path- Type:
- Default Value:
- Flags:
The
Clutter.Pathused to constrain the position of an actor.New in version 1.6.