Package: graphene
CStruct graphene:rect-t
Details
The location and size of a rectangle region. The width and height of a graphene:rect-t instance can be negative. For instance, a graphene:rect-t instance with an origin of [ 0, 0 ] and a size of [ 10, 10 ] is equivalent to a graphene:rect-t instance
with an origin of [ 10, 10 ] and a size of [ -10, -10 ]. Application code can normalize rectangles using the graphene:rect-normalize function. This function will ensure that the width and height of a rectangle are positive values. All functions taking a graphene:rect-t instance as an argument will internally operate on a normalized copy. All functions returning a graphene:rect-t instance will always return a normalized rectangle. (cffi:defcstruct rect-t (origin (:struct point-t)) (size (:struct size-t)))
| See also |
2023-9-22