Package: gsk

GBoxed gsk:path

Declaration

(glib:define-gboxed-opaque path "GskPath"
  :export t
  :type-initializer "gsk_path_get_type"
  :alloc (error "GSK:PATH cannot be created from the Lisp side"))  

Details

A gsk:path structure describes lines and curves that are more complex than simple rectangles. Paths can used for rendering (filling or stroking) and for animations, for eample as trajectories.

The gsk:path structure is an immutable, opaque, reference-counted structure. After creation, you cannot change the types it represents. Instead, new gsk:path instances have to be created. The gsk:path-builder 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.

Figure: GskPath

Since 4.14
 

See also

2024-11-9