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.BehaviourPath
structure contains only private data and should be accessed using the provided APINew in version 0.2.
Deprecated since version 1.6: Use
Clutter.PathConstraint
and clutter_actor_animate() instead.- classmethod new(alpha, path)¶
- Parameters:
alpha (
Clutter.Alpha
orNone
) – aClutter.Alpha
instance, orNone
path (
Clutter.Path
) – aClutter.Path
orNone
for 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.Path
so you do not need to unref if it.If alpha is not
None
, theClutter.Behaviour
will take ownership of theClutter.Alpha
instance. 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.Alpha
orNone
) – aClutter.Alpha
instance, orNone
desc (
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.Behaviour
will take ownership of theClutter.Alpha
instance. 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.Alpha
orNone
) – aClutter.Alpha
instance, orNone
knots ([
Clutter.Knot
]) – an array ofClutter.Knot
s
- 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_TO
and the subsequent knots are used inClutter.PathNodeType.LINE_TO
s.If alpha is not
None
, theClutter.Behaviour
will take ownership of theClutter.Alpha
instance. 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.Path
so 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.Knot
reached
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.Path
object representing the path to animate along