diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-16 18:39:03 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-16 18:39:03 +0000 |
| commit | 91a7ca7d206f2ce09a0eb1229db57b67d9bafc67 (patch) | |
| tree | 956616e61e4f80382af9e8b6f88581234019515b /src/XDisplay.h | |
| parent | c17256d745e2730de5458f954af49860c0f4bce7 (diff) | |
added the X classes to the build process though they aren't sued by anything else yet. They now compile too.
Diffstat (limited to 'src/XDisplay.h')
| -rw-r--r-- | src/XDisplay.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/XDisplay.h b/src/XDisplay.h index b65d94c6..3b58003f 100644 --- a/src/XDisplay.h +++ b/src/XDisplay.h @@ -25,10 +25,12 @@ #include <X11/Xlib.h> #include <string> #include <vector> +#include "XAtom.h" +#include "XScreen.h" -class Xdisplay { - friend XAtom::XAtom(); - //friend class XAtom; +class XDisplay { + friend XAtom::XAtom(const XDisplay *); + friend XScreen::XScreen(const XDisplay *, const unsigned int); private: Display *_display; @@ -40,7 +42,7 @@ private: typedef std::vector<XScreen*> XScreenList; XScreenList _screens; - int XErrorHandler(Display *d, XErrorEvent *e); + static int XErrorHandler(Display *d, XErrorEvent *e); // no copying!! XDisplay(const XDisplay &); @@ -50,18 +52,18 @@ protected: virtual void process_event(XEvent *) = 0; public: - Xdisplay(const char *dpyname = 0); - virtual ~Xdisplay(); + XDisplay(const char *dpyname = 0); + virtual ~XDisplay(); XScreen *screen(unsigned int s) const; inline unsigned int screenCount() const { return _screens.size(); } inline bool hasShape() const { return _hasshape; } - inline int shapeEventBase() const { return shape.event_basep; } + inline int shapeEventBase() const { return _shape_event_base; } //inline Display *display() const { return _display; } - inline std::string name() const { return name; } + inline std::string name() const { return _name; } // these belong in Xwindow //const bool validateWindow(Window); |
