diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-12 16:29:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-12 16:29:59 +0000 |
| commit | 24a1e215d1f8d2ff1674847278a15336d4b671b6 (patch) | |
| tree | bb96e0562f4a6038a592a86be33d668863273cbc /util/epist/epist.hh | |
| parent | 89d09297f0ef3d2db648a756f62a57bf2be317df (diff) | |
epist now based on the BaseDisplay.
has the ability to be multiscreen!
Diffstat (limited to 'util/epist/epist.hh')
| -rw-r--r-- | util/epist/epist.hh | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/util/epist/epist.hh b/util/epist/epist.hh index 2f5d7399..061e1f4d 100644 --- a/util/epist/epist.hh +++ b/util/epist/epist.hh @@ -27,11 +27,40 @@ extern "C" { #include <X11/Xlib.h> } +#include <string> +#include <map> + +#include "../../src/BaseDisplay.hh" + class XAtom; +class screen; +class XWindow; + +class epist : public BaseDisplay { +private: + std::string _rc_file; + XAtom *_xatom; + char **_argv; + + typedef std::vector<screen *> ScreenList; + ScreenList _screens; + + typedef std::map<Window, XWindow*> WindowLookup; + typedef WindowLookup::value_type WindowLookupPair; + WindowLookup _windows; + + virtual void process_event(XEvent *e); + virtual bool handleSignal(int sig); + +public: + epist(char **argv, char *display_name, char *rc_file); + virtual ~epist(); + + inline XAtom *xatom() { return _xatom; } -extern bool _shutdown; -extern Display *_display; -extern Window _root; -extern XAtom *_xatom; + void addWindow(XWindow *window); + void removeWindow(XWindow *window); + XWindow *findWindow(Window window) const; +}; #endif // __epist_hh |
