GObject.Object
GObject.InitiallyUnowned
Clutter.Path
Import line: | Clutter = imports.gi.Clutter; |
GIR File: | Clutter-1.0.gir |
C documentation: | ClutterPath |
Class : | Path |
Extends: | GObject.InitiallyUnowned |
Properties | Defined By | |
---|---|---|
description : String
|
Clutter.Path | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
length : guint32
read only
|
Clutter.Path | |
parent : GObject.InitiallyUnowned
read only
|
Clutter.Path | |
priv : Clutter.PathPrivate
read only
|
Clutter.Path | |
qdata : GLib.Data
read only
|
GObject.InitiallyUnowned | |
ref_count : guint32
read only
|
GObject.InitiallyUnowned |
Method / Constructor | Defined By | |
---|---|---|
new Clutter.Path
(Object properties)
Create a new Clutter.Path
Create a new Clutter.Path
|
||
Create a new Clutter.Path
Create a new Clutter.Path
|
||
add_cairo_path
(Path cpath)
:
none
Add the nodes of the Cairo path to the end of path.
Add the nodes of the Cairo path to the end of path.
|
Clutter.Path | |
add_close
()
:
none
Adds a CLUTTER_PATH_CLOSE type node to the path.
Adds a CLUTTER_PATH_CLOSE type node to the path. This creates a
straight line from the last node to the last CLUTTER_PATH_MOVE_TO type node.
|
Clutter.Path | |
Adds a CLUTTER_PATH_CURVE_TO type node to the path.
Adds a CLUTTER_PATH_CURVE_TO type node to the path. This causes
the actor to follow a bezier from the last node to (x_3, y_3) using (x_1, y_1) and (x_2,y_2) as control points.
|
Clutter.Path | |
Clutter.Path | ||
Adds a CLUTTER_PATH_MOVE_TO type node to the path.
Adds a CLUTTER_PATH_MOVE_TO type node to the path. This is usually
used as the first node in a path. It can also be used in the middle of the path to cause the actor to jump to the new coordinate.
|
Clutter.Path | |
add_node
(PathNode node)
:
none
Adds node to the end of the path.
Adds node to the end of the path.
|
Clutter.Path | |
Same as clutter_path_add_curve_to() except the coordinates are
relative to the previous node.
Same as clutter_path_add_curve_to() except the coordinates are
relative to the previous node.
|
Clutter.Path | |
Same as clutter_path_add_line_to() except the coordinates are
relative to the previous node. |
Clutter.Path | |
Same as clutter_path_add_move_to() except the coordinates are
relative to the previous node. |
Clutter.Path | |
Adds new nodes to the end of the path as described in str.
Adds new nodes to the end of the path as described in str. The
format is a subset of the SVG path format. Each node is represented by a letter and is followed by zero, one or three pairs of coordinates. The coordinates can be separated by spaces or a comma. The types are: Adds a CLUTTER_PATH_MOVE_TO node. Takes one pair of coordinates. Adds a CLUTTER_PATH_LINE_TO node. Takes one pair of coordinates. Adds a CLUTTER_PATH_CURVE_TO node. Takes three pairs of coordinates. Adds a CLUTTER_PATH_CLOSE node. No coordinates are needed. The M, L and C commands can also be specified in lower case which means the coordinates are relative to the previous node. For example, to move an actor in a 100 by 100 pixel square centered on the point 300,300 you could use the following path: M 250,350 l 0 -100 L 350,250 l 0 100 z If the path description isn't valid FALSE will be returned and no nodes will be added. otherwise.
|
Clutter.Path | |
clear
()
:
none
Removes all nodes from the path.
Removes all nodes from the path.
|
Clutter.Path | |
Clutter.Path | ||
get_description
()
:
String
Returns a newly allocated string describing the path in the same
format as used by clutter_path_add_string().
Returns a newly allocated string describing the path in the same
format as used by clutter_path_add_string().
|
Clutter.Path | |
get_length
()
:
guint32
Retrieves an approximation of the total length of the path.
Retrieves an approximation of the total length of the path.
|
Clutter.Path | |
get_n_nodes
()
:
guint32
Retrieves the number of nodes in the path.
Retrieves the number of nodes in the path.
|
Clutter.Path | |
Retrieves the node of the path indexed by index.
Retrieves the node of the path indexed by index.
|
Clutter.Path | |
get_nodes
()
:
Array
Returns a GSList of ClutterPathNodes.
Returns a GSList of ClutterPathNodes. The list should be
freed with g_slist_free(). The nodes are owned by the path and should not be freed. Altering the path may cause the nodes in the list to become invalid so you should copy them if you want to keep the list.
|
Clutter.Path | |
The value in progress represents a position along the path where
0.0 is the beginning and 1.0 is the end of the path.
The value in progress represents a position along the path where
0.0 is the beginning and 1.0 is the end of the path. An interpolated position is then stored in position.
|
Clutter.Path | |
Inserts node into the path before the node at the given offset.
Inserts node into the path before the node at the given offset. If
|
Clutter.Path | |
remove_node
(guint32 index_)
:
none
Removes the node at the given offset from the path.
Removes the node at the given offset from the path.
|
Clutter.Path | |
Replaces the node at offset index_ with node.
Replaces the node at offset index_ with node.
|
Clutter.Path | |
Replaces all of the nodes in the path with nodes described by
If the string is invalid then FALSE is returned and the path is unaltered. |
Clutter.Path | |
to_cairo_path
(Context cr)
:
none
Add the nodes of the ClutterPath to the path in the Cairo context.
Add the nodes of the ClutterPath to the path in the Cairo context.
|
Clutter.Path |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Clutter.BehaviourPath
Property |
path : Clutter.Path
|
Clutter.BehaviourPath
Method |
Create a new Clutter.BehaviourPath
|
Clutter.BehaviourPath
Method |
get_path
()
:
Clutter.Path
Get the current path of the behaviour
|
Clutter.BehaviourPath
Method |
set_path
(Path path)
:
none
Change the path that the actors will follow.
|
Clutter.PathConstraint
Property |
path : Clutter.Path
|
Clutter.PathConstraint
Method |
Create a new Clutter.PathConstraint
|
Clutter.PathConstraint
Method |
get_path
()
:
Clutter.Path
|
Clutter.PathConstraint
Method |
set_path
(Path path)
:
none
|