Path
Object Hierarchy:
Description:
[
CCode ( type_id =
"clutter_path_get_type ()" ) ]
[
Version ( since =
"1.0" ) ]
public class Path :
InitiallyUnowned
The Path struct contains only private data and should be accessed with the functions below.
Content:
Properties:
Creation methods:
Methods:
- public void @foreach (PathCallback callback)
Calls a function for each node of the path.
- public void add_cairo_path (Path cpath)
Add the nodes of the Cairo path to the end of
this.
- public void add_close ()
Adds a clutter_path_close type node
to the path.
- public void add_curve_to (int x_1, int y_1, int x_2, int y_2, int x_3, int y_3)
Adds a clutter_path_curve_to type
node to the path.
- public void add_line_to (int x, int y)
Adds a clutter_path_line_to type
node to the path.
- public void add_move_to (int x, int y)
Adds a clutter_path_move_to type
node to the path.
- public void add_node (PathNode node)
Adds node to the end of the path.
- public void add_rel_curve_to (int x_1, int y_1, int x_2, int y_2, int x_3, int y_3)
Same as
add_curve_to except the coordinates are relative to the previous node.
- public void add_rel_line_to (int x, int y)
Same as
add_line_to except the coordinates are relative to the previous node.
- public void add_rel_move_to (int x, int y)
Same as
add_move_to except the coordinates are relative to the previous node.
- public bool add_string (string str)
Adds new nodes to the end of the path as described in str
.
- public void clear ()
Removes all nodes from the path.
- public string get_description ()
Returns a newly allocated string describing the path in the same
format as used by add_string.
- public uint get_length ()
Retrieves an approximation of the total length of the path.
- public uint get_n_nodes ()
Retrieves the number of nodes in the path.
- public PathNode get_node (uint index_)
Retrieves the node of the path indexed by index.
- public SList<unowned PathNode?> get_nodes ()
- public uint get_position (double progress, out Knot position)
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.
- public void insert_node (int index_, PathNode node)
Inserts node into the path before the node at the given
offset.
- public void remove_node (uint index_)
Removes the node at the given offset from the path.
- public void replace_node (uint index_, PathNode node)
Replaces the node at offset index_ with node
.
- public bool set_description (string str)
Replaces all of the nodes in the path with nodes described by
str.
- public void to_cairo_path (Context cr)
Add the nodes of the ClutterPath to the path in the Cairo context.
Inherited Members:
All known members inherited from class GLib.Object