X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2FUtil.hh;h=40a2254abc72177f929e64e224930b0d3684f970;hb=107e0911b05c63450d86bb71fd9fc7de4b74acf6;hp=d70eabc8e7807687116ef94f8055a63129092735;hpb=bcb14a3ce94ee4b4cba07de7a297470719390331;p=chaz%2Fopenbox diff --git a/src/Util.hh b/src/Util.hh index d70eabc8..40a2254a 100644 --- a/src/Util.hh +++ b/src/Util.hh @@ -28,7 +28,7 @@ #include #include -#include +#include class Rect { public: @@ -72,12 +72,14 @@ 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::list RectList; +typedef std::vector RectList; struct Strut { unsigned int top, bottom, left, right;