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
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)
- public void add_line_to (int x, int y)
Adds a
LINE_TO type node to the path.
- public void add_move_to (int x, int y)
Adds a
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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref