1: #include <X/mit-copyright.h>
2:
3: /* Copyright Massachusetts Institute of Technology 1985 */
4: /* $Header: Xdev.h,v 10.5 86/02/01 15:15:22 tony Rel $ */
5:
6: /* Definitions for device-dependent interfaces */
7:
8: typedef struct _device {
9: short id; /* 1=VS100, 2=QVSS, 3=QDSS */
10: short width; /* screen width */
11: short height; /* screen height */
12: short planes; /* number of bit planes */
13: unsigned short entries; /* number of usable color map entries */
14: vsCursor *mouse; /* mouse position */
15: vsBox *mbox; /* mouse motion box */
16: vsEventQueue *queue; /* event queue header */
17: } DEVICE;
18:
19: typedef struct _clip { /* component order optimized for WGA */
20: short left;
21: short top;
22: short width;
23: short height;
24: } CLIP;
25:
26: typedef struct _bitmap {
27: short width; /* in pixels */
28: short height; /* in pixels */
29: short refcnt; /* reference count */
30: char kind; /* private to device */
31: caddr_t data; /* private to device */
32: } BITMAP;
33:
34: typedef struct _pixmap {
35: short width; /* in pixels */
36: short height; /* in pixels */
37: short refcnt; /* reference count */
38: char tile; /* 0: not a tile, 1: tile */
39: char kind; /* private to device */
40: caddr_t data; /* private to device */
41: } PIXMAP;
42:
43: typedef struct _font {
44: char *name; /* file name */
45: short first; /* first defined character */
46: short last; /* last defined character */
47: short space; /* space character */
48: short height; /* in pixels */
49: short avg_width; /* average of all defined characters */
50: short fixed; /* 1: all characters are defined same width */
51: short base; /* offset of descenders from bottom */
52: short refcnt; /* reference count */
53: caddr_t data; /* private to device */
54: } FONT;
55:
56: typedef struct _cursor {
57: short width; /* in pixels */
58: short height; /* in pixels */
59: short xoff; /* tip, as offsets from upper left */
60: short yoff;
61: short xmin; /* minimum position of tip */
62: short ymin;
63: short xmax; /* maximum position of tip */
64: short ymax;
65: short refcnt; /* reference count */
66: caddr_t data; /* private to device */
67: } CURSOR;
68:
69: /* The minimum and maximum positions depend on the hardware and your desires
70: * as to what part of the cursor should remain on screen. If the full
71: * cursor rectangle must always be on screen, then:
72: * xmin = xoff
73: * ymin = yoff
74: * xmax = screen_width - (width - xoff)
75: * ymax = screen_height - (height - yoff)
76: * If both the tip and the upper left corner must remain on screen, then:
77: * xmin = xoff
78: * ymin = yoff
79: * xmax = screen_width - 1
80: * ymax = screen_height - 1
81: * If only the tip must remain on screen, then:
82: * xmin = 0
83: * ymin = 0
84: * xmax = screen_width - 1
85: * ymax = screen_height - 1
86: * If only the upper left corner must remain on screen, then:
87: * xmin = xoff
88: * ymin = yoff
89: * xmax = screen_width + xoff - 1
90: * ymax = screen_height + yoff - 1
91: */
Defined struct's
_clip
defined in line
19;
never used
_font
defined in line
43;
never used
Defined typedef's
BITMAP
defined in line
32; used 149 times
- in /usr/src/new/X/X/dispatch.c line
41,
61,
557,
568,
598,
616,
1044,
1085,
1092
- in /usr/src/new/X/X/main.c line
37,
584,
687
- in /usr/src/new/X/X/resource.c line
149-150(2),
266
- in /usr/src/new/X/X/screen.c line
38,
79,
166,
212,
440,
826,
914
- in /usr/src/new/X/libnest/nest.c line
283,
304,
347,
377,
790,
796-801(3),
810,
816-826(4),
965,
1026-1029(2)
- in /usr/src/new/X/libqvss/ddxbitpix.c line
26-33(4),
50,
56-61(2),
75(2),
95-98(2),
111,
125,
161-165(4),
190,
196
- in /usr/src/new/X/libqvss/ddxcopy.c line
15
- in /usr/src/new/X/libqvss/ddxcursor.c line
19,
26-27(2)
- in /usr/src/new/X/libqvss/ddxdraw.c line
38
- in /usr/src/new/X/libqvss/ddxdrawfill.c line
28,
83(2)
- in /usr/src/new/X/libqvss/ddxfill.c line
16,
22
- in /usr/src/new/X/libqvss/ddxfont.c line
116(2)
- in /usr/src/new/X/libqvss/ddxpacket.c line
24-25(2)
- in /usr/src/new/X/libqvss/ddxput.c line
26,
35(2),
57,
70
- in /usr/src/new/X/libqvss/ddxqvss.h line
36,
45
- in /usr/src/new/X/libqvss/ddxtextutil.c line
18-23(2)
- in /usr/src/new/X/libqvss/ddxtile.c line
18,
24-29(3)
- in /usr/src/new/X/libsun/Xsun.h line
62,
69-71(2),
82
- in /usr/src/new/X/libsun/bitpix.c line
66-73(4),
90,
96-101(2),
115(2),
138-140(2),
192,
213,
268-270(3),
327,
333
- in /usr/src/new/X/libsun/cursor.c line
67-68(2)
- in /usr/src/new/X/libsun/fill.c line
56
- in /usr/src/new/X/libsun/font.c line
281(2)
- in /usr/src/new/X/libsun/put.c line
77(2),
151,
191,
205
- in /usr/src/new/X/libsun/textutil.c line
62
- in /usr/src/new/X/libsun/tile.c line
66,
118,
169,
184
- in /usr/src/new/X/libvs100/bitpix.c line
48-55(4),
73,
79-84(2),
98(2),
118-121(2),
137,
158,
207,
215(2)
- in /usr/src/new/X/libvs100/cursor.c line
45,
79,
93
- in /usr/src/new/X/libvs100/fill.c line
41
- in /usr/src/new/X/libvs100/put.c line
120,
133
- in /usr/src/new/X/libvs100/text.c line
189
- in /usr/src/new/X/libvs100/tile.c line
42
- in /usr/src/new/X/libvs100/vs100.h line
21-22(2),
37-42(2)
CLIP
defined in line
24; used 91 times
- in /usr/src/new/X/X/Xint.h line
115
- in /usr/src/new/X/X/screen.c line
44,
84,
132,
172,
219,
269,
383(2),
424(2),
470,
521,
570,
643,
689,
809,
839-841(2),
862(2),
888-889(2),
897(2),
932-937(2),
974(2)
- in /usr/src/new/X/libnest/nest.c line
34,
286,
307,
328,
349,
379,
399,
441,
465,
493,
533,
571-573(2),
584
- in /usr/src/new/X/libqvss/ddxcopy.c line
20
- in /usr/src/new/X/libqvss/ddxdraw.c line
57
- in /usr/src/new/X/libqvss/ddxdrawfill.c line
39
- in /usr/src/new/X/libqvss/ddxfill.c line
24
- in /usr/src/new/X/libqvss/ddxput.c line
33,
58,
71
- in /usr/src/new/X/libqvss/ddxtile.c line
27
- in /usr/src/new/X/libsun/Xsun.h line
93
- in /usr/src/new/X/libsun/copy.c line
56
- in /usr/src/new/X/libsun/draw.c line
68,
132
- in /usr/src/new/X/libsun/fill.c line
58
- in /usr/src/new/X/libsun/put.c line
67,
152,
192,
206
- in /usr/src/new/X/libsun/text.c line
68,
168
- in /usr/src/new/X/libsun/tile.c line
69,
121,
172,
217
- in /usr/src/new/X/libvs100/copy.c line
41,
78
- in /usr/src/new/X/libvs100/draw.c line
44,
98
- in /usr/src/new/X/libvs100/fill.c line
43,
86
- in /usr/src/new/X/libvs100/put.c line
46,
98,
121,
134,
147,
167,
179,
213
- in /usr/src/new/X/libvs100/text.c line
48,
91,
120,
161
- in /usr/src/new/X/libvs100/tile.c line
45,
115,
137,
152-154(3),
213
CURSOR
defined in line
67; used 62 times
- in /usr/src/new/X/X/Xint.h line
131
- in /usr/src/new/X/X/dispatch.c line
30-31(2),
42,
63,
432,
443,
454
- in /usr/src/new/X/X/input.c line
34-38(2),
88-90(2),
106,
159,
205,
354,
522-526(2),
574,
581,
798
- in /usr/src/new/X/X/main.c line
29,
36,
70-71(2)
- in /usr/src/new/X/X/resource.c line
40,
157-158(2),
265-270(2)
- in /usr/src/new/X/libnest/nest.c line
7,
1024,
1033,
1041(2),
1056,
1063
- in /usr/src/new/X/libqvss/ddxcursor.c line
25-30(2),
48(2),
83,
90
- in /usr/src/new/X/libsun/cursor.c line
62-76(5),
107,
126,
162,
226
- in /usr/src/new/X/libsun/text.c line
72,
134,
172,
234
- in /usr/src/new/X/libvs100/cursor.c line
44-51(4),
76,
90
DEVICE
defined in line
17; used 15 times
FONT
defined in line
54; used 61 times
- in /usr/src/new/X/X/dispatch.c line
40,
58,
636,
645,
656,
850,
878,
906,
921,
976
- in /usr/src/new/X/X/resource.c line
39,
145-146(2),
236-241(2),
250
- in /usr/src/new/X/X/screen.c line
458,
510
- in /usr/src/new/X/libnest/nest.c line
435,
460,
710-714(2),
722(2),
739,
748,
762,
818
- in /usr/src/new/X/libqvss/ddxbitpix.c line
58
- in /usr/src/new/X/libqvss/ddxfont.c line
28,
38,
94(2),
162,
184
- in /usr/src/new/X/libqvss/ddxtextutil.c line
17,
60,
92
- in /usr/src/new/X/libsun/bitpix.c line
98
- in /usr/src/new/X/libsun/font.c line
94,
153,
163,
259(2),
333
- in /usr/src/new/X/libsun/text.c line
66,
166
- in /usr/src/new/X/libsun/textutil.c line
61,
96,
127
- in /usr/src/new/X/libvs100/bitpix.c line
81
- in /usr/src/new/X/libvs100/font.c line
41,
52,
109(2),
183
- in /usr/src/new/X/libvs100/text.c line
46,
118,
188,
242,
275
PIXMAP
defined in line
41; used 106 times
- in /usr/src/new/X/X/Xint.h line
132-133(2)
- in /usr/src/new/X/X/dispatch.c line
39,
60,
152,
159,
177(2),
285-289(2),
296,
572,
579,
686
- in /usr/src/new/X/X/main.c line
35,
56,
553
- in /usr/src/new/X/X/resource.c line
153-154(2)
- in /usr/src/new/X/X/screen.c line
31,
78,
126,
270,
683,
722-727(2),
810
- in /usr/src/new/X/X/window.c line
22,
49,
56,
71,
861,
887
- in /usr/src/new/X/libnest/nest.c line
302,
324,
531,
595,
616-626(4),
834,
841,
850(2),
860,
964,
970,
976(2),
992
- in /usr/src/new/X/libqvss/ddxbitpix.c line
24,
91-96(2),
109,
121-128(4),
139(2),
158-162(2),
189
- in /usr/src/new/X/libqvss/ddxdrawfill.c line
36
- in /usr/src/new/X/libqvss/ddxput.c line
30
- in /usr/src/new/X/libqvss/ddxtile.c line
23
- in /usr/src/new/X/libsun/bitpix.c line
64,
131-135(2),
153(2),
187,
209-216(4),
227-230(3),
246(2),
261-264(2),
299(2),
326
- in /usr/src/new/X/libsun/put.c line
64
- in /usr/src/new/X/libsun/tile.c line
117,
168,
214
- in /usr/src/new/X/libvs100/bitpix.c line
46,
114-119(2),
132,
154-157(3),
164,
175(2),
204-208(2)
- in /usr/src/new/X/libvs100/put.c line
43
- in /usr/src/new/X/libvs100/tile.c line
41,
134
Usage of this include