chiark
/
gitweb
/
~ian
/
moebius.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
merge into history old stuff found on chiark
[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
Colormap cmap;
23
GC black, white, red, blue;
24
GC gc(const char *colour_name);
25
};
26
27
#endif