|
|
1.1 root 1: /*
2: * $Source: /u1/X/libis/RCS/Xis.h,v $
3: * $Header: Xis.h,v 1.1 86/11/17 14:34:54 swick Rel $
4: */
5:
6: #include "is-copyright.h"
7:
8: /*
9: * Xis.h
10: *
11: * Copyright (c) 1986, Integrated Solutions, Inc.
12: */
13:
14: #include <sys/types.h>
15: #include <stdio.h>
16: #include <vt/vt_hdrs.h>
17: #include <vt/vt_output.h>
18: #include "../X/vsinput.h"
19: #include "../X/Xdev.h"
20: #include "../X/X.h"
21: #define NOGIPSTRUCTS
22: #include <gip.h>
23:
24: /*
25: * misc useful stuff
26: */
27: #ifndef FALSE
28:
29: typedef short bool;
30: #define FALSE (0)
31: #define TRUE (!FALSE)
32:
33: #endif
34:
35: #define TILE_WIDTH 16
36: #define TILE_HEIGHT 16
37: #define CanBeTiled 1 /* this pixmap can be tiled */
38: #define CannotBeTiled 0 /* this pixmap cannont be tiled */
39:
40: /*
41: * FontPriv
42: */
43: #define FONTPIXMAPS 2
44:
45: typedef struct _fontpriv {
46: BITMAP *mask;
47: short *xpos;
48: short *widths;
49: struct _font_pixmaps {
50: int fore, back;
51: PIXMAP *p;
52: } font_pixmaps[FONTPIXMAPS];
53: int next_pixmap;
54: } FontPriv;
55:
56:
57: /*
58: * CursPriv
59: */
60: typedef struct _curspriv {
61: PIXMAP *image;
62: BITMAP *mask;
63: PIXMAP *save;
64: int func;
65: int fore, back;
66: } CursPriv;
67:
68: /*
69: * Macros to extract "private" data from system structs
70: */
71: #define FDATA(x) ((FontPriv *) x->data)
72: #define PDATA(x) ((BITMAP *) x->data)
73: #define CDATA(x) ((CursPriv *) x->data)
74:
75: extern CLIP Intersection();
76: extern char *Xalloc();
77: extern BITMAP ScreenBitmap;
78: extern PIXMAP ScreenPixmap;
79:
80: #ifdef DEBUG
81: extern unsigned long debug;
82: #define D_None (0L)
83: #define D_All (~0L)
84: #define D_Misc (1 << 0)
85: #define D_Bitmaps (1 << 1)
86: #define D_Color (1 << 2)
87: #define D_CopyArea (1 << 3)
88: #define D_Cursor (1 << 4)
89: #define D_DrawCurve (1 << 5)
90: #define D_Font (1 << 6)
91: #define D_FontPixmap (1 << 7)
92: #define D_PixFill (1 << 8)
93: #define D_PixFill_data (1 << 9)
94: #define D_Pixmaps (1 << 10)
95: #define D_Text (1 << 11)
96: #define D_TileFill (1 << 12)
97: #define D_TileFill_data (1 << 13)
98: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.