X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FUtil.hh;h=d70eabc8e7807687116ef94f8055a63129092735;hb=bcb14a3ce94ee4b4cba07de7a297470719390331;hp=2a40308d8c34ad84e44ca4d39b071df82ea16024;hpb=888c0bac90d4932d00dd7f7447ea52117aff6de0;p=chaz%2Fopenbox diff --git a/src/Util.hh b/src/Util.hh index 2a40308d..d70eabc8 100644 --- a/src/Util.hh +++ b/src/Util.hh @@ -28,6 +28,7 @@ #include #include +#include class Rect { public: @@ -76,6 +77,14 @@ private: int _x1, _y1, _x2, _y2; }; +typedef std::list 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; @@ -101,11 +110,9 @@ struct PointerAssassin { 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); -} - +inline std::string itostring(unsigned int i) + { return itostring((unsigned long) i); } +inline std::string itostring(int i) + { return itostring((long) i); } + #endif