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.

A Path .

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_foreach

Calls func for every operation of the path.

since: 4.14

gsk_path_get_bounds

Computes the bounds of the given path.

since: 4.14

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_end_point

Gets the end point of the path.

since: 4.14

gsk_path_get_start_point

Gets the start point of the path.

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_is_closed

Returns if the path represents a single closed contour.

since: 4.14

gsk_path_is_empty

Checks if the path is empty, i.e. contains no lines or curves.

since: 4.14

gsk_path_print

Converts self into a human-readable string representation suitable for printing.

since: 4.14

gsk_path_ref

Increases the reference count of a GskPath by one.

since: 4.14

gsk_path_to_cairo

Appends the given path to the given cairo context for drawing with Cairo.

since: 4.14

gsk_path_to_string

Converts the path into a string that is suitable for printing.

since: 4.14

gsk_path_unref

Decreases the reference count of a GskPath by one.

since: 4.14