From 39100e7292d3ee12d387fddfa0f0d7b712e31e1c Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 30 Jun 2024 18:24:01 +1000 Subject: initial commit. --- rect.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 rect.h (limited to 'rect.h') diff --git a/rect.h b/rect.h new file mode 100644 index 0000000..b055607 --- /dev/null +++ b/rect.h @@ -0,0 +1,11 @@ +#ifndef rect_h +#define rect_h + +typedef struct { + int x, y, w, h; +} Rect; + +Rect* rect_clip(Rect* r, const Rect* c); +Rect* rect_clips(Rect* r, Rect* s, const Rect* c); + +#endif -- cgit v1.2.3-54-g00ecf