Package: gsk

CStruct gsk:rounded-rect

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.
(cffi:defcstruct rounded-rect
  (bounds (:struct graphene:rect-t))
  (corner (:struct graphene:size-t) :count 4))  
bounds
A graphene:rect-t instance with the bounds of the rounded rectangle.
corner
An array of graphene:size-t instances with the size of the 4 rounded corners.
 

Slot Access Functions

See also

2023-10-27