summaryrefslogtreecommitdiff
path: root/rect.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-06-30 18:24:01 +1000
committerquou <quou@disroot.org>2024-06-30 18:27:11 +1000
commit39100e7292d3ee12d387fddfa0f0d7b712e31e1c (patch)
tree28f26b19de857868aeb9ecf23a7fecfc170addf9 /rect.h
initial commit.
Diffstat (limited to 'rect.h')
-rw-r--r--rect.h11
1 files changed, 11 insertions, 0 deletions
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