X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FUtil.hh;h=40a2254abc72177f929e64e224930b0d3684f970;hb=87e63d53af67d5ea98f55a27007663d4c9c8fc6c;hp=5453f225adfb0055190030c3e30d2e542117e9ba;hpb=54dfa44cbecdb31cecb035e6ef8287007617b00c;p=chaz%2Fopenbox diff --git a/src/Util.hh b/src/Util.hh index 5453f225..40a2254a 100644 --- a/src/Util.hh +++ b/src/Util.hh @@ -28,6 +28,7 @@ #include #include +#include class Rect { public: @@ -71,11 +72,15 @@ public: inline bool valid(void) const { return _x2 > _x1 && _y2 > _y1; } bool intersects(const Rect &a) const; + bool contains(int __x, int __y) const; + bool contains(const Rect &a) const; private: int _x1, _y1, _x2, _y2; }; +typedef std::vector RectList; + struct Strut { unsigned int top, bottom, left, right;