]> Dogcows Code - chaz/openbox/blobdiff - otk/screeninfo.hh
apparently my variable names were too verbose.
[chaz/openbox] / otk / screeninfo.hh
index f523d23be64ef9ff5306f009cbe4fd5d1c4e0f7d..93e835facb1cb601bccf728a1fbfb890f7466056 100644 (file)
@@ -2,6 +2,7 @@
 #ifndef   __screeninfo_hh
 #define   __screeninfo_hh
 
+#include "size.hh"
 #include "rect.hh"
 
 extern "C" {
@@ -9,40 +10,31 @@ extern "C" {
 }
 
 #include <string>
+#include <vector>
 
 namespace otk {
 
 class ScreenInfo {
 private:
-  Visual *_visual;
-  Window _root_window;
-  Colormap _colormap;
-
-  int _depth;
-  unsigned int _screen;
+  int _screen;
   std::string _display_string;
-  Rect _rect;
-#ifdef XINERAMA
-  RectList _xinerama_areas;
+  Size _size;
+  std::vector<Rect> _xinerama_areas;
   bool _xinerama_active;
-#endif
 
 public:
-  ScreenInfo(unsigned int num);
+  ScreenInfo(int num);
 
   inline Visual *visual() const { return _visual; }
   inline Window rootWindow() const { return _root_window; }
   inline Colormap colormap() const { return _colormap; }
   inline int depth() const { return _depth; }
-  inline unsigned int screen() const { return _screen; }
-  inline const Rect& rect() const { return _rect; }
-  inline unsigned int width() const { return _rect.width(); }
-  inline unsigned int height() const { return _rect.height(); }
+  inline int screen() const { return _screen; }
+  inline const Size& size() const { return _size; }
   inline const std::string& displayString() const { return _display_string; }
-#ifdef XINERAMA
-  inline const RectList &xineramaAreas() const { return _xinerama_areas; }
+  inline const std::vector<Rect> &xineramaAreas() const
+    { return _xinerama_areas; }
   inline bool isXineramaActive() const { return _xinerama_active; }
-#endif
 };
 
 }
This page took 0.02309 seconds and 4 git commands to generate.