]> Dogcows Code - chaz/openbox/blobdiff - src/XScreen.h
nls from bb-cvs
[chaz/openbox] / src / XScreen.h
index 8626d9d77f0d90b63f8807f860a82e38eecfeb5f..cdfd4257bc07e87d41d136095cab2acf7fdd9f28 100644 (file)
@@ -23,8 +23,9 @@
 #define   __XScreen_h
 
 #include <X11/Xlib.h>
+#include "Geometry.h"
 
-class Size;
+class XDisplay;
 
 class XScreen {
 private:
@@ -33,7 +34,7 @@ private:
   Visual         *_visual;
   Window          _root;
   Colormap        _colormap;
-  unsigned int    _depth;
+  int             _depth;
   Size            _size;
 
   void setColorData();
@@ -43,7 +44,8 @@ private:
   XScreen& operator=(const XScreen&);
 
 public:
-  XScreen(const Display *display, const unsigned int number);
+  XScreen(const XDisplay *display, const unsigned int number);
+  virtual ~XScreen();
 
   inline Visual *visual() const { return _visual; }
   inline Window rootWindow() const { return _root; }
@@ -51,6 +53,11 @@ public:
   inline unsigned int depth() const { return _depth; }
   inline unsigned int number() const { return _number; }
   inline const Size &size() const { return _size; }
+
+  Window createWindow(Window parent, const Rect &area, int borderw,
+                      unsigned int winclass,
+                      unsigned long attrib_mask,
+                      XSetWindowAttributes *attrib) const;
 };
 
 #endif // __XScreen_h
This page took 0.021702 seconds and 4 git commands to generate.