Path
Constructor
Path <id>
Action
Creates a new Path shape. It is a container to which must be appended a list of subpathes.
Predefined children
items
, that is the list of its subpathes,
bounding_box/x
,
bounding_box/y
,
bounding_box/width
,
bounding_box/height
PathPoint
Constructor
PathPoint <id> (double x, double y)
Action
Predefined children
x
and
y
PathMove
Constructor
PathMove <id> (double x, double y)
Action
Predefined children
x
and
y
PathLine
Constructor
PathLine <id> (double x, double y)
Action
Predefined children
x
and
y
PathClosure
Constructor
PathClosure <id>
Action
Predefined children
None
PathQuadratic
Constructor
PathQuadratic <id> (double x1, double y1, double x, double y)
Action
Predefined children
x1
,
y1
,
x
,
y
PathCubic
Constructor
PathCubic <id> (double x1, double y1, double x2, double y2, double x, double y)
Action
Predefined children
x1
,
y1
,
x2
,
y2
,
x
,
y
PathArc
Constructor
PathArc <id> (double rx, double ry, double rotx, double fl, double swfl, double x,
double y)
Action
Predefined children
rx
,
ry
,
rotx
,
fl
,
swfl
,
rx
,
ry
Example
use core
use display
use gui
_main_
Component root {
Frame f ("myFrame", 0, 0, 400, 400)
FillColor _ (100, 150, 200)
Path _ {
PathMove _(300, 190)
PathLine _(320, 190)
PathQuadratic _(350, 140, 390, 110)
PathCubic _ (305, 110, 320, 150, 395, 190)
}
}