General-purpose definitions for Banjo API.
#define BANJO_EXPORT
Definition api.h:155
uint32_t bj_bool
Boolean type used throughout the Banjo API.
Definition api.h:249
uint16_t w
The width of the rectangle.
Definition rect.h:22
uint16_t h
The height of the rectangle.
Definition rect.h:23
int16_t y
The y-coordinate of the rectangle's top-left corner.
Definition rect.h:21
int16_t x
The x-coordinate of the rectangle's top-left corner.
Definition rect.h:20
bj_bool bj_rect_intersection(const struct bj_rect *rect_a, const struct bj_rect *rect_b, struct bj_rect *result)
Computes the intersection of two bj_rect.
Represents a rectangle with position and dimensions.
Definition rect.h:19