Struct
GskPath
since: 4.14
Description [src]
struct GskPath {
/* No available fields */
}
A GskPath
describes lines and curves that are more complex
than simple rectangles.
Paths can used for rendering (filling or stroking) and for animations (e.g. as trajectories).
GskPath
is an immutable, opaque, reference-counted struct.
After creation, you cannot change the types it represents. Instead,
new GskPath
objects have to be created. The GskPathBuilder
structure is meant to help in this endeavor.
Conceptually, a path consists of zero or more contours (continuous, connected curves), each of which may or may not be closed. Contours are typically constructed from Bézier segments.
.
Available since: 4.14
Functions
gsk_path_parse
This is a convenience function that constructs a GskPath
from a serialized form.
since: 4.14
Instance methods
gsk_path_get_closest_point
Computes the closest point on the path to the given point
and sets the result
to it.
since: 4.14
gsk_path_get_stroke_bounds
Computes the bounds for stroking the given path with the
parameters in stroke
.
since: 4.14
gsk_path_in_fill
Returns whether the given point is inside the area
that would be affected if the path was filled according
to fill_rule
.
since: 4.14
gsk_path_print
Converts self
into a human-readable string representation suitable
for printing.
since: 4.14
gsk_path_to_cairo
Appends the given path
to the given cairo context for drawing
with Cairo.
since: 4.14