Struct

GskPath

since: 4.14

Description [src]

struct GskPath {
  /* No available fields */
}

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

Constructs a path 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.

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 given parameters.

since: 4.14

gsk_path_in_fill

Returns whether a point is inside the fill area of a path.

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 the path into a human-readable representation.

since: 4.14

gsk_path_ref

Increases the reference count of a path by one.

since: 4.14

gsk_path_to_cairo

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

since: 4.14

gsk_path_to_string

Converts the path into a human-readable string.

since: 4.14

gsk_path_unref

Decreases the reference count of a path by one.

since: 4.14