summaryrefslogtreecommitdiff
path: root/openbox/geom.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/geom.h')
-rw-r--r--openbox/geom.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbox/geom.h b/openbox/geom.h
index 003b0081..8ac0e550 100644
--- a/openbox/geom.h
+++ b/openbox/geom.h
@@ -65,6 +65,8 @@ typedef struct _Rect {
#define RECT_RIGHT(r) ((r).x + (r).width - 1)
#define RECT_BOTTOM(r) ((r).y + (r).height - 1)
+#define RECT_AREA(r) ((r).width * (r).height)
+
#define RECT_SET_POINT(r, nx, ny) \
(r).x = (nx), (r).y = (ny)
#define RECT_SET_SIZE(r, w, h) \