about summary refs log tree commit diff
path: root/converter/other/x10wd.h
blob: 3c4fb8ca6a77ff3e0b47ae3f60fba36ef823ce4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* x10wd.h - the following defs are taken from various X10 header files
*/

#ifndef X10WD_H_INCLUDED
#define X10WD_H_INCLUDED

#define XYFormat 0
#define ZFormat 1

#define X10WD_FILE_VERSION 6
typedef struct {
    int header_size;		/* Size of the entire file header (bytes). */
    int file_version;		/* X10WD_FILE_VERSION */
    int display_type;		/* Display type. */
    int display_planes;		/* Number of display planes. */
    int pixmap_format;		/* Pixmap format. */
    int pixmap_width;		/* Pixmap width. */
    int pixmap_height;		/* Pixmap height. */
    short window_width;		/* Window width. */
    short window_height;	/* Window height. */
    short window_x;		/* Window upper left X coordinate. */
    short window_y;		/* Window upper left Y coordinate. */
    short window_bdrwidth;	/* Window border width. */
    short window_ncolors;	/* number of Color entries in this window */
    } X10WDFileHeader;

typedef struct {
    int pixel;
    unsigned short red, green, blue;
    } X10Color;

#endif