]> Dogcows Code - chaz/openbox/blobdiff - src/Util.hh
acquire and provide Xinerama information for the window manager. now we just gotta...
[chaz/openbox] / src / Util.hh
index 1536226ca86b532f6bf51cf0598bc2a2bfb5aafc..d70eabc8e7807687116ef94f8055a63129092735 100644 (file)
@@ -28,6 +28,7 @@
 #include <X11/Xutil.h>
 
 #include <string>
+#include <list>
 
 class Rect {
 public:
@@ -76,6 +77,14 @@ private:
   int _x1, _y1, _x2, _y2;
 };
 
+typedef std::list<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;
 
@@ -99,4 +108,11 @@ 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); }
+  
 #endif
This page took 0.023616 seconds and 4 git commands to generate.