Package: gsk

CStruct gsk:rounded-rect

Declaration

(cffi:defcstruct rounded-rect
  (bounds (:struct graphene:rect-t))
  (corner (:struct graphene:size-t) :count 4))  

Values

bounds
The graphene:rect-t instance with the bounds of the rounded rectangle.
corner
The array of graphene:size-t instances with the size of the 4 rounded corners.

Details

A rectangular region with rounded corners. Application code should normalize rounded rectangles using the gsk:rounded-rect-normalize function. This function will ensure that the bounds of the rounded rectangle are normalized and ensure that the corner values are positive and the corners do not overlap.

All functions taking a gsk:rounded-rect instance as an argument will internally operate on a normalized copy. All functions returning a gsk:rounded-rect instance will always return a normalized one.

The algorithm used for normalizing corner sizes is described in the CSS specification.
 

Slot Access Functions

See also

2025-05-09