| 1 |
/* RCSid $Id: xraster.h,v 3.3 2003/06/27 06:53:22 greg Exp $ */
|
| 2 |
/*
|
| 3 |
* xraster.h - header file for X routines using images.
|
| 4 |
*/
|
| 5 |
#ifndef _RAD_XRASTER_H_
|
| 6 |
#define _RAD_XRASTER_H_
|
| 7 |
|
| 8 |
#ifdef __cplusplus
|
| 9 |
extern "C" {
|
| 10 |
#endif
|
| 11 |
|
| 12 |
typedef struct {
|
| 13 |
int width, height; /* image size */
|
| 14 |
int ncolors; /* number of colors */
|
| 15 |
union {
|
| 16 |
unsigned short *m; /* monochrome */
|
| 17 |
unsigned char *bz; /* color */
|
| 18 |
} data; /* storage on our side */
|
| 19 |
Pixmap pm; /* storage on server side */
|
| 20 |
Color *cdefs; /* color definitions */
|
| 21 |
int *pmap; /* inverse pixel mapping */
|
| 22 |
int *pixels; /* allocated table entries */
|
| 23 |
} XRASTER;
|
| 24 |
|
| 25 |
extern int *map_rcolors();
|
| 26 |
|
| 27 |
extern Pixmap make_rpixmap();
|
| 28 |
|
| 29 |
#ifdef __cplusplus
|
| 30 |
}
|
| 31 |
#endif
|
| 32 |
#endif /* _RAD_XRASTER_H_ */
|
| 33 |
|