X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fgeom.h;h=8ac0e550830980d4ea05f612389155278cb891ce;hb=d68116c9c9b2c9a9925d872141eff8e301ef3bb3;hp=003b0081dbe9f8221df8961db0eb4eeb02e5aae7;hpb=dc69fe7cedd679bf38c1be25130ed502af8ad4c4;p=chaz%2Fopenbox 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) \