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 |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
description : String
|
Clutter.Path | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
length : Number
read only
|
Clutter.Path | |
parent : GObject.InitiallyUnowned
read only
|
Clutter.Path | |
priv : Clutter.PathPrivate
read only
|
Clutter.Path | |
qdata : GLib.Data
|
GObject.InitiallyUnowned | |
ref_count : Number
|
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.
|
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 | |
Clutter.Path | ||
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:
|
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
()
:
Number
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
()
:
Number
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
(Number 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 |
set_path
(Path path)
:
none
Change the path that the actors will follow.
|
Clutter.BehaviourPath
Method |
get_path
()
:
Clutter.Path
Get the current path of the behaviour
|