GskRoundedRect

A rectangular region with rounded corners.

Application code should normalize rectangles using gsk.rounded_rect.RoundedRect.normalize; this function will ensure that the bounds of the rectangle are normalized and ensure that the corner values are positive and the corners do not overlap.

All functions taking a gsk.rounded_rect.RoundedRect as an argument will internally operate on a normalized copy; all functions returning a gsk.rounded_rect.RoundedRect will always return a normalized one.

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

Members

Variables

bounds
graphene_rect_t bounds;

the bounds of the rectangle

corner
graphene_size_t[4] corner;

the size of the 4 rounded corners