Clutter::Path::Node3pm
Wrapper for clutterpathnode
Overview
A Clutter::Path::Node is a node inside a Clutter::Path. Each node is represented by a hash reference with two keys: type and points. The value for type can be one of the following:
move-to
line-to
curve-to
close
The value for points is an array reference which contains zero or more points. Points are represented by either a hash reference with two keys x and y, or by an array reference that contains two doubles.
The necessary number of points depends on the type of the path node:
- move-to: 1 point
- line-to: 1 point
- curve-to: 3 points
- close: 0 points
The semantics and ordering of the coordinate values are consistent with Clutter::Path::add_move_to(), Clutter::Path::add_line_to(), Clutter::Path::add_curve_to() and Clutter::Path::add_close().
Hierarchy
Glib::Boxed+----Clutter::Path::Node
Methods
boolean = $node_a->equal ($node_b)
- •
-
$node_b(Clutter::Path::Node)
Enums and flags
enum Clutter::Path::NodeType
•
|
'move-to' / 'CLUTTER_PATH_MOVE_TO' |
|---|---|
•
|
'line-to' / 'CLUTTER_PATH_LINE_TO' |
•
|
'curve-to' / 'CLUTTER_PATH_CURVE_TO' |
•
|
'close' / 'CLUTTER_PATH_CLOSE' |
•
|
'rel-move-to' / 'CLUTTER_PATH_REL_MOVE_TO' |
•
|
'rel-line-to' / 'CLUTTER_PATH_REL_LINE_TO' |
•
|
'rel-curve-to' / 'CLUTTER_PATH_REL_CURVE_TO' |