diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-03 06:09:05 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-03 06:09:05 +0000 |
| commit | dd7b8b67bd5e8d1dd3945fe64d16d094a017f7ce (patch) | |
| tree | d8409d13a73419c89a1e9ac5cdb40600e98e01c1 /src/basedisplay.hh | |
| parent | bbdca491933fd906bb65cc201c8636d24d4cda71 (diff) | |
split the screeninfo class out to its own files
Diffstat (limited to 'src/basedisplay.hh')
| -rw-r--r-- | src/basedisplay.hh | 45 |
1 files changed, 3 insertions, 42 deletions
diff --git a/src/basedisplay.hh b/src/basedisplay.hh index 117c49d7..dde34adc 100644 --- a/src/basedisplay.hh +++ b/src/basedisplay.hh @@ -2,59 +2,20 @@ #ifndef __BaseDisplay_hh #define __BaseDisplay_hh +#include "screeninfo.hh" +#include "timer.hh" + extern "C" { #include <X11/Xlib.h> #include <X11/Xatom.h> } #include <vector> -#include <string> // forward declaration class BaseDisplay; class BGCCache; -#include "timer.hh" -#include "util.hh" - -class ScreenInfo { -private: - BaseDisplay *basedisplay; - Visual *visual; - Window root_window; - Colormap colormap; - - int depth; - unsigned int screen_number; - std::string display_string; - Rect rect; -#ifdef XINERAMA - RectList xinerama_areas; - bool xinerama_active; -#endif - -public: - ScreenInfo(BaseDisplay *d, unsigned int num); - - inline BaseDisplay *getBaseDisplay(void) const { return basedisplay; } - inline Visual *getVisual(void) const { return visual; } - inline Window getRootWindow(void) const { return root_window; } - inline Colormap getColormap(void) const { return colormap; } - inline int getDepth(void) const { return depth; } - inline unsigned int getScreenNumber(void) const - { return screen_number; } - inline const Rect& getRect(void) const { return rect; } - inline unsigned int getWidth(void) const { return rect.width(); } - inline unsigned int getHeight(void) const { return rect.height(); } - inline const std::string& displayString(void) const - { return display_string; } -#ifdef XINERAMA - inline const RectList &getXineramaAreas(void) const { return xinerama_areas; } - inline bool isXineramaActive(void) const { return xinerama_active; } -#endif -}; - - class BaseDisplay: public TimerQueueManager { private: struct BShape { |
