summaryrefslogtreecommitdiff
path: root/render/geom.h
diff options
context:
space:
mode:
Diffstat (limited to 'render/geom.h')
-rw-r--r--render/geom.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/render/geom.h b/render/geom.h
new file mode 100644
index 00000000..f6fa4f24
--- /dev/null
+++ b/render/geom.h
@@ -0,0 +1,19 @@
+#ifndef __geom_h
+#define __geom_h
+
+typedef struct {
+ int width;
+ int height;
+} RrSize;
+
+typedef struct {
+ int x;
+ int y;
+ int width;
+ int height;
+} RrRect;
+
+#define RECT_SET(r, nx, ny, w, h) \
+ (r).x = (nx), (r).y = (ny), (r).width = (w), (r).height = (h)
+
+#endif