Path package:cairo
A Cairo path.
- A path is a sequence of drawing operations that are accumulated
until stroke is called. Using a path is particularly useful
when drawing lines with special join styles and closePath.
Append the path onto the current path.
The path may be either the return value from copyPath or copyPathFlat
or it may be constructed manually.
Adds a line segment to the path from the current point to the
beginning of the current subpath, (the most recent point passed to
moveTo), and closes this subpath.
The behavior of
closePath is distinct from simply calling
lineTo with the equivalent coordinate in the case of stroking.
When a closed subpath is stroked, there are no caps on the ends of the
subpath. Instead, their is a line join connecting the final and
initial segments of the subpath.
Creates a copy of the current path and returns it to the user.
Gets a flattened copy of the current path and returns it to the user.
This function is like copyPath except that any curves in the path will
be approximated with piecewise-linear approximations, accurate to
within the current tolerance value. That is, any path elements created
by curveTo or relCurveTo will be replaced by a series of lineTo
elements.
Clears the current path. After this call there will be no current
point.
Render text at the current path.
- See showText for why you should use Gtk functions.