2 |
7u83 |
1 |
# Crown Copyright (c) 1997
|
|
|
2 |
#
|
|
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
|
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
|
|
5 |
# acting through the Defence Evaluation and Research Agency
|
|
|
6 |
# (DERA). It is made available to Recipients with a
|
|
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
|
|
8 |
# to other parties and amendment for any purpose not excluding
|
|
|
9 |
# product development provided that any such use et cetera
|
|
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
|
|
11 |
#
|
|
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
|
|
13 |
# reproduced upon any copies or amended versions of it;
|
|
|
14 |
#
|
|
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
|
|
16 |
# show both the nature of and the organisation responsible
|
|
|
17 |
# for the relevant amendment or amendments;
|
|
|
18 |
#
|
|
|
19 |
# (3) Its onward transfer from a recipient to another
|
|
|
20 |
# party shall be deemed to be that party's acceptance of
|
|
|
21 |
# these conditions;
|
|
|
22 |
#
|
|
|
23 |
# (4) DERA gives no warranty or assurance as to its
|
|
|
24 |
# quality or suitability for any purpose and DERA accepts
|
|
|
25 |
# no liability whatsoever in relation to any use to which
|
|
|
26 |
# it may be put.
|
|
|
27 |
#
|
|
|
28 |
# Basic X protocol
|
|
|
29 |
|
|
|
30 |
+USE "x5/lib", "X11/Xprotostr.h" ; # see 1.3
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
# Exposure Events (10.9)
|
|
|
34 |
+TYPE ( struct ) xEvent, ( struct ) xGenericReply, ( union ) xReply ;
|
|
|
35 |
+TYPE ( struct ) xReq, ( struct ) xResourceReq ;
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
# Protocol Request Numbers (Appendix A)
|
|
|
39 |
|
|
|
40 |
+CONST int X_AllocColor ;
|
|
|
41 |
+CONST int X_AllocColorCells ;
|
|
|
42 |
+CONST int X_AllocColorPlanes ;
|
|
|
43 |
+CONST int X_AllocNamedColor ;
|
|
|
44 |
+CONST int X_AllowEvents ;
|
|
|
45 |
+CONST int X_Bell ;
|
|
|
46 |
+CONST int X_ChangeActivePointerGrab ;
|
|
|
47 |
+CONST int X_ChangeGC ;
|
|
|
48 |
+CONST int X_ChangeHosts ;
|
|
|
49 |
+CONST int X_ChangeKeyboardControl ;
|
|
|
50 |
+CONST int X_ChangeKeyboardMapping ;
|
|
|
51 |
+CONST int X_ChangePointerControl ;
|
|
|
52 |
+CONST int X_ChangeProperty ;
|
|
|
53 |
+CONST int X_ChangeSaveSet ;
|
|
|
54 |
+CONST int X_ChangeWindowAttributes ;
|
|
|
55 |
+CONST int X_CirculateWindow ;
|
|
|
56 |
+CONST int X_ClearArea ;
|
|
|
57 |
+CONST int X_CloseFont ;
|
|
|
58 |
+CONST int X_ConfigureWindow ;
|
|
|
59 |
+CONST int X_ConvertSelection ;
|
|
|
60 |
+CONST int X_CopyArea ;
|
|
|
61 |
+CONST int X_CopyColormapAndFree ;
|
|
|
62 |
+CONST int X_CopyGC ;
|
|
|
63 |
+CONST int X_CopyPlane ;
|
|
|
64 |
+CONST int X_CreateColormap ;
|
|
|
65 |
+CONST int X_CreateCursor ;
|
|
|
66 |
+CONST int X_CreateGC ;
|
|
|
67 |
+CONST int X_CreateGlyphCursor ;
|
|
|
68 |
+CONST int X_CreatePixmap ;
|
|
|
69 |
+CONST int X_CreateWindow ;
|
|
|
70 |
+CONST int X_DeleteProperty ;
|
|
|
71 |
+CONST int X_DestroySubwindows ;
|
|
|
72 |
+CONST int X_DestroyWindow ;
|
|
|
73 |
+CONST int X_FillPoly ;
|
|
|
74 |
+CONST int X_ForceScreenSaver ;
|
|
|
75 |
+CONST int X_FreeColormap ;
|
|
|
76 |
+CONST int X_FreeColors ;
|
|
|
77 |
+CONST int X_FreeCursor ;
|
|
|
78 |
+CONST int X_FreeGC ;
|
|
|
79 |
+CONST int X_FreePixmap ;
|
|
|
80 |
+CONST int X_GetAtomName ;
|
|
|
81 |
+CONST int X_GetFontPath ;
|
|
|
82 |
+CONST int X_GetGeometry ;
|
|
|
83 |
+CONST int X_GetImage ;
|
|
|
84 |
+CONST int X_GetInputFocus ;
|
|
|
85 |
+CONST int X_GetKeyboardControl ;
|
|
|
86 |
+CONST int X_GetKeyboardMapping ;
|
|
|
87 |
+CONST int X_GetModifierMapping ;
|
|
|
88 |
+CONST int X_GetMotionEvents ;
|
|
|
89 |
+CONST int X_GetPointerControl ;
|
|
|
90 |
+CONST int X_GetPointerMapping ;
|
|
|
91 |
+CONST int X_GetProperty ;
|
|
|
92 |
+CONST int X_GetScreenSaver ;
|
|
|
93 |
+CONST int X_GetSelectionOwner ;
|
|
|
94 |
+CONST int X_GetWindowAttributes ;
|
|
|
95 |
+CONST int X_GrabButton ;
|
|
|
96 |
+CONST int X_GrabKey ;
|
|
|
97 |
+CONST int X_GrabKeyboard ;
|
|
|
98 |
+CONST int X_GrabPointer ;
|
|
|
99 |
+CONST int X_GrabServer ;
|
|
|
100 |
+CONST int X_ImageText16 ;
|
|
|
101 |
+CONST int X_ImageText8 ;
|
|
|
102 |
+CONST int X_InstallColormap ;
|
|
|
103 |
+CONST int X_InternAtom ;
|
|
|
104 |
+CONST int X_KillClient ;
|
|
|
105 |
+CONST int X_ListExtensions ;
|
|
|
106 |
+CONST int X_ListFonts ;
|
|
|
107 |
+CONST int X_ListFontsWithInfo ;
|
|
|
108 |
+CONST int X_ListHosts ;
|
|
|
109 |
+CONST int X_ListInstalledColormaps ;
|
|
|
110 |
+CONST int X_ListProperties ;
|
|
|
111 |
+CONST int X_LookupColor ;
|
|
|
112 |
+CONST int X_MapSubwindows ;
|
|
|
113 |
+CONST int X_MapWindow ;
|
|
|
114 |
+CONST int X_NoOperation ;
|
|
|
115 |
+CONST int X_OpenFont ;
|
|
|
116 |
+CONST int X_PolyArc ;
|
|
|
117 |
+CONST int X_PolyFillArc ;
|
|
|
118 |
+CONST int X_PolyFillRectangle ;
|
|
|
119 |
+CONST int X_PolyLine ;
|
|
|
120 |
+CONST int X_PolyPoint ;
|
|
|
121 |
+CONST int X_PolyRectangle ;
|
|
|
122 |
+CONST int X_PolySegment ;
|
|
|
123 |
+CONST int X_PolyText16 ;
|
|
|
124 |
+CONST int X_PolyText8 ;
|
|
|
125 |
+CONST int X_PutImage ;
|
|
|
126 |
+CONST int X_QueryBestSize ;
|
|
|
127 |
+CONST int X_QueryColors ;
|
|
|
128 |
+CONST int X_QueryExtension ;
|
|
|
129 |
+CONST int X_QueryFont ;
|
|
|
130 |
+CONST int X_QueryKeymap ;
|
|
|
131 |
+CONST int X_QueryPointer ;
|
|
|
132 |
+CONST int X_QueryTextExtents ;
|
|
|
133 |
+CONST int X_QueryTree ;
|
|
|
134 |
+CONST int X_RecolorCursor ;
|
|
|
135 |
+CONST int X_ReparentWindow ;
|
|
|
136 |
+CONST int X_RotateProperties ;
|
|
|
137 |
+CONST int X_SendEvent ;
|
|
|
138 |
+CONST int X_SetAccessControl ;
|
|
|
139 |
+CONST int X_SetClipRectangles ;
|
|
|
140 |
+CONST int X_SetCloseDownMode ;
|
|
|
141 |
+CONST int X_SetDashes ;
|
|
|
142 |
+CONST int X_SetFontPath ;
|
|
|
143 |
+CONST int X_SetInputFocus ;
|
|
|
144 |
+CONST int X_SetModifierMapping ;
|
|
|
145 |
+CONST int X_SetPointerMapping ;
|
|
|
146 |
+CONST int X_SetScreenSaver ;
|
|
|
147 |
+CONST int X_SetSelectionOwner ;
|
|
|
148 |
+CONST int X_StoreColors ;
|
|
|
149 |
+CONST int X_StoreNamedColor ;
|
|
|
150 |
+CONST int X_TranslateCoords ;
|
|
|
151 |
+CONST int X_UngrabButton ;
|
|
|
152 |
+CONST int X_UngrabKey ;
|
|
|
153 |
+CONST int X_UngrabKeyboard ;
|
|
|
154 |
+CONST int X_UngrabPointer ;
|
|
|
155 |
+CONST int X_UngrabServer ;
|
|
|
156 |
+CONST int X_UninstallColormap ;
|
|
|
157 |
+CONST int X_UnmapSubwindows ;
|
|
|
158 |
+CONST int X_UnmapWindow ;
|
|
|
159 |
+CONST int X_WarpPointer ;
|