#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;
+
+ Strut(void): top(0), bottom(0), left(0), right(0) {}
+};
+
/* XXX: this needs autoconf help */
const unsigned int BSENTINEL = 65535;
}
};
+std::string itostring(unsigned long i);
+std::string itostring(long i);
+inline std::string itostring(unsigned int i)
+ { return itostring((unsigned long) i); }
+inline std::string itostring(int i)
+ { return itostring((long) i); }
+
#endif