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.PathConstraint
is an opaque structure whose members cannot be directly accessedNew in version 1.6.
- classmethod new(path, offset)¶
- Parameters:
path (
Clutter.Path
orNone
) – aClutter.Path
, orNone
offset (
float
) – the offset along theClutter.Path
- Returns:
the newly created
Clutter.PathConstraint
- Return type:
Creates a new
Clutter.PathConstraint
with the given path and offsetNew in version 1.6.
- get_offset()¶
- Returns:
the offset
- Return type:
Retrieves the offset along the
Clutter.Path
used by self.New in version 1.6.
- get_path()¶
- Returns:
the
Clutter.Path
used by theClutter.PathConstraint
, orNone
. The returnedClutter.Path
is owned by the constraint and it should not be unreferenced- Return type:
Retrieves a pointer to the
Clutter.Path
used by self.New in version 1.6.
- set_offset(offset)¶
- Parameters:
offset (
float
) – the offset along the path
Sets the offset along the
Clutter.Path
used by self.New in version 1.6.
- set_path(path)¶
- Parameters:
path (
Clutter.Path
orNone
) – aClutter.Path
Sets the path to be followed by the
Clutter.PathConstraint
.The self will take ownership of the
Clutter.Path
passed 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.Actor
using the constraintindex (
int
) – the index of the node that has been reached
The
::node-reached
signal is emitted each time aClutter.PathConstraint
:offset
value results in the actor passing aClutter.PathNode
New 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.Path
used to constrain the position of an actor.New in version 1.6.