1 // -*- mode: C++; indent-tabs-mode: nil; -*-
2 #ifndef __screeninfo_hh
3 #define __screeninfo_hh
22 unsigned int screen_number;
23 std::string display_string;
26 RectList xinerama_areas;
31 ScreenInfo(unsigned int num);
33 inline Visual *getVisual(void) const { return visual; }
34 inline Window getRootWindow(void) const { return root_window; }
35 inline Colormap getColormap(void) const { return colormap; }
36 inline int getDepth(void) const { return depth; }
37 inline unsigned int getScreenNumber(void) const
38 { return screen_number; }
39 inline const Rect& getRect(void) const { return rect; }
40 inline unsigned int getWidth(void) const { return rect.width(); }
41 inline unsigned int getHeight(void) const { return rect.height(); }
42 inline const std::string& displayString(void) const
43 { return display_string; }
45 inline const RectList &getXineramaAreas(void) const { return xinerama_areas; }
46 inline bool isXineramaActive(void) const { return xinerama_active; }
52 #endif // __screeninfo_hh