1 |
greg |
2.2 |
/* RCSid: $Id$ */ |
2 |
greg |
1.1 |
/* |
3 |
|
|
* x11raster.h - header file for X routines using images. |
4 |
|
|
* |
5 |
|
|
* 3/1/90 |
6 |
|
|
*/ |
7 |
|
|
|
8 |
|
|
typedef struct { |
9 |
|
|
Display *disp; /* the display */ |
10 |
|
|
int screen; /* the screen */ |
11 |
|
|
Visual *visual; /* pointer to visual used */ |
12 |
|
|
XImage *image; /* the X image */ |
13 |
|
|
GC gc; /* private graphics context */ |
14 |
|
|
int ncolors; /* number of colors */ |
15 |
|
|
XColor *cdefs; /* color definitions */ |
16 |
|
|
short *pmap; /* inverse pixel mapping */ |
17 |
|
|
unsigned long *pixels; /* allocated table entries */ |
18 |
|
|
Colormap cmap; /* installed color map */ |
19 |
|
|
Pixmap pm; /* storage on server side */ |
20 |
|
|
} XRASTER; |
21 |
|
|
|
22 |
greg |
1.3 |
extern Colormap newcmap(); |
23 |
|
|
|
24 |
greg |
1.1 |
extern unsigned long *map_rcolors(); |
25 |
|
|
|
26 |
|
|
extern Pixmap make_rpixmap(); |
27 |
|
|
|
28 |
|
|
extern XRASTER *make_raster(); |
29 |
|
|
|
30 |
greg |
1.2 |
#define put_raster(d,xdst,ydst,xr) patch_raster(d,0,0,xdst,ydst, \ |
31 |
greg |
1.1 |
(xr)->image->width,(xr)->image->height,xr) |