chiark / gitweb /
dualx11 is broken atm
[moebius.git] / x11.hh
1 /*
2  * X11 functions
3  */
4
5 #ifndef X11_HH
6 #define X11_HH
7
8 #include <stdlib.h>
9 #include <X11/Xlib.h>
10
11 #include "output.hh"
12
13 struct X11Output : Output {
14   X11Output();
15   ~X11Output();
16   void drawcell(const Point*, int, Colour);
17   void startimage();
18   void endimage();
19 private:
20   Display *display;
21   Window window;
22   unsigned long black, white;
23   GC fabric;
24   GC mesh;
25 };
26
27 #endif