#include <X11/Xutil.h>
#include <string>
+#include <vector>
class Rect {
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<Rect> RectList;
+
struct Strut {
unsigned int top, bottom, left, right;