287 static const leRect leRect_Zero = {0, 0, 0, 0};
uint32_t leRectSplit(const leRect *sub, const leRect *obj, leRect res[4])
Split rectangles.
Definition: legato_rect.c:198
Common macros and definitions used by Legato.
leBool leRectContainsPoint(const leRect *rect, const lePoint *point)
Determines if a point is inside a rectangle.
Definition: legato_rect.c:31
leBool leRectContainsRect(const leRect *l_rect, const leRect *r_rect)
Determines if a rectangle is completely inside another rectangle.
Definition: legato_rect.c:40
void leRectCombine(const leRect *l_rect, const leRect *r_rect, leRect *res)
Combine rectangles.
Definition: legato_rect.c:61
void leRectToPoints(const leRect *rect, lePoint *p1, lePoint *p2)
Create rectangle from two points.
Definition: legato_rect.c:188
void leRectClipAdj(const leRect *l_rect, const leRect *r_rect, leRect *adj, leRect *res)
Clips a rectangle to the space of another rectangle.
Definition: legato_rect.c:76
void leRectClip(const leRect *l_rect, const leRect *r_rect, leRect *result)
Clips a rectangle to the space of another rectangle.
Definition: legato_rect.c:124
This struct represents a rectangle.
Definition: legato_common.h:394
leBool leRectsAreSimilar(const leRect *l, const leRect *r)
Determine if two rectanges are similar.
Definition: legato_rect.c:272
This structure represents a integer Cartesian point.
Definition: legato_common.h:346
void leRectFromPoints(const lePoint *p1, const lePoint *p2, leRect *res)
Create rectangle from two points.
Definition: legato_rect.c:153
leBool
This enum represents booleans.
Definition: legato_common.h:146
int32_t leRectCompare(const leRect *l, const leRect *r)
Determines if two rectangles are similar.
Definition: legato_rect.c:266
leBool leRectIntersects(const leRect *l_rect, const leRect *r_rect)
Determines if two rectangles are intersecting.
Definition: legato_rect.c:51