Clutter.BehaviourPath¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Behaviour (10), GObject.Object (37), Clutter.Scriptable (4)
- Structs:
class |
|
class |
|
class |
|
|
|
|
Virtual Methods¶
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
This signal is emitted each time a node defined inside the path is reached. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class Clutter.BehaviourPath(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Clutter.BehaviourPathstructure contains only private data and should be accessed using the provided APINew in version 0.2.
Deprecated since version 1.6: Use
Clutter.PathConstraintand clutter_actor_animate() instead.- classmethod new(alpha, path)¶
- Parameters:
alpha (
Clutter.AlphaorNone) – aClutter.Alphainstance, orNonepath (
Clutter.Path) – aClutter.PathorNonefor an empty path
- Returns:
- Return type:
Creates a new path behaviour. You can use this behaviour to drive actors along the nodes of a path, described by path.
This will claim the floating reference on the
Clutter.Pathso you do not need to unref if it.If alpha is not
None, theClutter.Behaviourwill take ownership of theClutter.Alphainstance. In the case when alpha isNone, it can be set later withClutter.Behaviour.set_alpha().New in version 0.2.
Deprecated since version 1.6.
- classmethod new_with_description(alpha, desc)¶
- Parameters:
alpha (
Clutter.AlphaorNone) – aClutter.Alphainstance, orNonedesc (
str) – a string description of the path
- Returns:
- Return type:
Creates a new path behaviour using the path described by desc. See
Clutter.Path.add_string() for a description of the format.If alpha is not
None, theClutter.Behaviourwill take ownership of theClutter.Alphainstance. In the case when alpha isNone, it can be set later withClutter.Behaviour.set_alpha().New in version 1.0.
Deprecated since version 1.6.
- classmethod new_with_knots(alpha, knots)¶
- Parameters:
alpha (
Clutter.AlphaorNone) – aClutter.Alphainstance, orNoneknots ([
Clutter.Knot]) – an array ofClutter.Knots
- Returns:
- Return type:
Creates a new path behaviour that will make the actors visit all of the given knots in order with straight lines in between.
A path will be created where the first knot is used in a
Clutter.PathNodeType.MOVE_TOand the subsequent knots are used inClutter.PathNodeType.LINE_TOs.If alpha is not
None, theClutter.Behaviourwill take ownership of theClutter.Alphainstance. In the case when alpha isNone, it can be set later withClutter.Behaviour.set_alpha().New in version 1.0.
Deprecated since version 1.6.
- get_path()¶
- Returns:
the path
- Return type:
Get the current path of the behaviour
New in version 1.0.
Deprecated since version 1.6.
- set_path(path)¶
- Parameters:
path (
Clutter.Path) – the new path to follow
Change the path that the actors will follow. This will take the floating reference on the
Clutter.Pathso you do not need to unref it.New in version 1.0.
Deprecated since version 1.6.
Signal Details¶
- Clutter.BehaviourPath.signals.knot_reached(behaviour_path, knot_num)¶
- Signal Name:
knot-reached- Flags:
- Parameters:
behaviour_path (
Clutter.BehaviourPath) – The object which received the signalknot_num (
int) – the index of theClutter.Knotreached
This signal is emitted each time a node defined inside the path is reached.
New in version 0.2.
Deprecated since version 1.6.
Property Details¶
- Clutter.BehaviourPath.props.path¶
- Name:
path- Type:
- Default Value:
- Flags:
The
Clutter.Pathobject representing the path to animate along