From 24a1e215d1f8d2ff1674847278a15336d4b671b6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 12 Jul 2002 16:29:59 +0000 Subject: epist now based on the BaseDisplay. has the ability to be multiscreen! --- util/epist/epist.hh | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) (limited to 'util/epist/epist.hh') 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 } +#include +#include + +#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 ScreenList; + ScreenList _screens; + + typedef std::map 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 -- cgit v1.2.3