jpayne@69
|
1 /*
|
jpayne@69
|
2
|
jpayne@69
|
3 Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
|
jpayne@69
|
4
|
jpayne@69
|
5 Permission to use, copy, modify, distribute, and sell this software and its
|
jpayne@69
|
6 documentation for any purpose is hereby granted without fee, provided that
|
jpayne@69
|
7 the above copyright notice appear in all copies and that both that
|
jpayne@69
|
8 copyright notice and this permission notice appear in supporting
|
jpayne@69
|
9 documentation.
|
jpayne@69
|
10
|
jpayne@69
|
11 The above copyright notice and this permission notice shall be included in
|
jpayne@69
|
12 all copies or substantial portions of the Software.
|
jpayne@69
|
13
|
jpayne@69
|
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
jpayne@69
|
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
jpayne@69
|
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
jpayne@69
|
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
jpayne@69
|
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
jpayne@69
|
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
jpayne@69
|
20
|
jpayne@69
|
21 Except as contained in this notice, the name of The Open Group shall not be
|
jpayne@69
|
22 used in advertising or otherwise to promote the sale, use or other dealings
|
jpayne@69
|
23 in this Software without prior written authorization from The Open Group.
|
jpayne@69
|
24
|
jpayne@69
|
25 */
|
jpayne@69
|
26
|
jpayne@69
|
27
|
jpayne@69
|
28 /*
|
jpayne@69
|
29 * Xlib.h - Header definition and support file for the C subroutine
|
jpayne@69
|
30 * interface library (Xlib) to the X Window System Protocol (V11).
|
jpayne@69
|
31 * Structures and symbols starting with "_" are private to the library.
|
jpayne@69
|
32 */
|
jpayne@69
|
33 #ifndef _X11_XLIB_H_
|
jpayne@69
|
34 #define _X11_XLIB_H_
|
jpayne@69
|
35
|
jpayne@69
|
36 #define XlibSpecificationRelease 6
|
jpayne@69
|
37
|
jpayne@69
|
38 #include <sys/types.h>
|
jpayne@69
|
39
|
jpayne@69
|
40 #if defined(__SCO__) || defined(__UNIXWARE__)
|
jpayne@69
|
41 #include <stdint.h>
|
jpayne@69
|
42 #endif
|
jpayne@69
|
43
|
jpayne@69
|
44 #include <X11/X.h>
|
jpayne@69
|
45
|
jpayne@69
|
46 /* applications should not depend on these two headers being included! */
|
jpayne@69
|
47 #include <X11/Xfuncproto.h>
|
jpayne@69
|
48 #include <X11/Xosdefs.h>
|
jpayne@69
|
49
|
jpayne@69
|
50 #ifndef X_WCHAR
|
jpayne@69
|
51 #include <stddef.h>
|
jpayne@69
|
52 #else
|
jpayne@69
|
53 /* replace this with #include or typedef appropriate for your system */
|
jpayne@69
|
54 typedef unsigned long wchar_t;
|
jpayne@69
|
55 #endif
|
jpayne@69
|
56
|
jpayne@69
|
57
|
jpayne@69
|
58 extern int
|
jpayne@69
|
59 _Xmblen(
|
jpayne@69
|
60 char *str,
|
jpayne@69
|
61 int len
|
jpayne@69
|
62 );
|
jpayne@69
|
63
|
jpayne@69
|
64 /* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in
|
jpayne@69
|
65 November 2000. Its presence is indicated through the following macro. */
|
jpayne@69
|
66 #define X_HAVE_UTF8_STRING 1
|
jpayne@69
|
67
|
jpayne@69
|
68 /* The Xlib structs are full of implicit padding to properly align members.
|
jpayne@69
|
69 We can't clean that up without breaking ABI, so tell clang not to bother
|
jpayne@69
|
70 complaining about it. */
|
jpayne@69
|
71 #ifdef __clang__
|
jpayne@69
|
72 #pragma clang diagnostic push
|
jpayne@69
|
73 #pragma clang diagnostic ignored "-Wpadded"
|
jpayne@69
|
74 #endif
|
jpayne@69
|
75
|
jpayne@69
|
76 typedef char *XPointer;
|
jpayne@69
|
77
|
jpayne@69
|
78 #define Bool int
|
jpayne@69
|
79 #define Status int
|
jpayne@69
|
80 #define True 1
|
jpayne@69
|
81 #define False 0
|
jpayne@69
|
82
|
jpayne@69
|
83 #define QueuedAlready 0
|
jpayne@69
|
84 #define QueuedAfterReading 1
|
jpayne@69
|
85 #define QueuedAfterFlush 2
|
jpayne@69
|
86
|
jpayne@69
|
87 #define ConnectionNumber(dpy) (((_XPrivDisplay)(dpy))->fd)
|
jpayne@69
|
88 #define RootWindow(dpy, scr) (ScreenOfDisplay(dpy,scr)->root)
|
jpayne@69
|
89 #define DefaultScreen(dpy) (((_XPrivDisplay)(dpy))->default_screen)
|
jpayne@69
|
90 #define DefaultRootWindow(dpy) (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root)
|
jpayne@69
|
91 #define DefaultVisual(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_visual)
|
jpayne@69
|
92 #define DefaultGC(dpy, scr) (ScreenOfDisplay(dpy,scr)->default_gc)
|
jpayne@69
|
93 #define BlackPixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->black_pixel)
|
jpayne@69
|
94 #define WhitePixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->white_pixel)
|
jpayne@69
|
95 #define AllPlanes ((unsigned long)~0L)
|
jpayne@69
|
96 #define QLength(dpy) (((_XPrivDisplay)(dpy))->qlen)
|
jpayne@69
|
97 #define DisplayWidth(dpy, scr) (ScreenOfDisplay(dpy,scr)->width)
|
jpayne@69
|
98 #define DisplayHeight(dpy, scr) (ScreenOfDisplay(dpy,scr)->height)
|
jpayne@69
|
99 #define DisplayWidthMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mwidth)
|
jpayne@69
|
100 #define DisplayHeightMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mheight)
|
jpayne@69
|
101 #define DisplayPlanes(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
|
jpayne@69
|
102 #define DisplayCells(dpy, scr) (DefaultVisual(dpy,scr)->map_entries)
|
jpayne@69
|
103 #define ScreenCount(dpy) (((_XPrivDisplay)(dpy))->nscreens)
|
jpayne@69
|
104 #define ServerVendor(dpy) (((_XPrivDisplay)(dpy))->vendor)
|
jpayne@69
|
105 #define ProtocolVersion(dpy) (((_XPrivDisplay)(dpy))->proto_major_version)
|
jpayne@69
|
106 #define ProtocolRevision(dpy) (((_XPrivDisplay)(dpy))->proto_minor_version)
|
jpayne@69
|
107 #define VendorRelease(dpy) (((_XPrivDisplay)(dpy))->release)
|
jpayne@69
|
108 #define DisplayString(dpy) (((_XPrivDisplay)(dpy))->display_name)
|
jpayne@69
|
109 #define DefaultDepth(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
|
jpayne@69
|
110 #define DefaultColormap(dpy, scr)(ScreenOfDisplay(dpy,scr)->cmap)
|
jpayne@69
|
111 #define BitmapUnit(dpy) (((_XPrivDisplay)(dpy))->bitmap_unit)
|
jpayne@69
|
112 #define BitmapBitOrder(dpy) (((_XPrivDisplay)(dpy))->bitmap_bit_order)
|
jpayne@69
|
113 #define BitmapPad(dpy) (((_XPrivDisplay)(dpy))->bitmap_pad)
|
jpayne@69
|
114 #define ImageByteOrder(dpy) (((_XPrivDisplay)(dpy))->byte_order)
|
jpayne@69
|
115 #define NextRequest(dpy) (((_XPrivDisplay)(dpy))->request + 1)
|
jpayne@69
|
116 #define LastKnownRequestProcessed(dpy) (((_XPrivDisplay)(dpy))->last_request_read)
|
jpayne@69
|
117
|
jpayne@69
|
118 /* macros for screen oriented applications (toolkit) */
|
jpayne@69
|
119 #define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)(dpy))->screens[scr])
|
jpayne@69
|
120 #define DefaultScreenOfDisplay(dpy) ScreenOfDisplay(dpy,DefaultScreen(dpy))
|
jpayne@69
|
121 #define DisplayOfScreen(s) ((s)->display)
|
jpayne@69
|
122 #define RootWindowOfScreen(s) ((s)->root)
|
jpayne@69
|
123 #define BlackPixelOfScreen(s) ((s)->black_pixel)
|
jpayne@69
|
124 #define WhitePixelOfScreen(s) ((s)->white_pixel)
|
jpayne@69
|
125 #define DefaultColormapOfScreen(s)((s)->cmap)
|
jpayne@69
|
126 #define DefaultDepthOfScreen(s) ((s)->root_depth)
|
jpayne@69
|
127 #define DefaultGCOfScreen(s) ((s)->default_gc)
|
jpayne@69
|
128 #define DefaultVisualOfScreen(s)((s)->root_visual)
|
jpayne@69
|
129 #define WidthOfScreen(s) ((s)->width)
|
jpayne@69
|
130 #define HeightOfScreen(s) ((s)->height)
|
jpayne@69
|
131 #define WidthMMOfScreen(s) ((s)->mwidth)
|
jpayne@69
|
132 #define HeightMMOfScreen(s) ((s)->mheight)
|
jpayne@69
|
133 #define PlanesOfScreen(s) ((s)->root_depth)
|
jpayne@69
|
134 #define CellsOfScreen(s) (DefaultVisualOfScreen((s))->map_entries)
|
jpayne@69
|
135 #define MinCmapsOfScreen(s) ((s)->min_maps)
|
jpayne@69
|
136 #define MaxCmapsOfScreen(s) ((s)->max_maps)
|
jpayne@69
|
137 #define DoesSaveUnders(s) ((s)->save_unders)
|
jpayne@69
|
138 #define DoesBackingStore(s) ((s)->backing_store)
|
jpayne@69
|
139 #define EventMaskOfScreen(s) ((s)->root_input_mask)
|
jpayne@69
|
140
|
jpayne@69
|
141 /*
|
jpayne@69
|
142 * Extensions need a way to hang private data on some structures.
|
jpayne@69
|
143 */
|
jpayne@69
|
144 typedef struct _XExtData {
|
jpayne@69
|
145 int number; /* number returned by XRegisterExtension */
|
jpayne@69
|
146 struct _XExtData *next; /* next item on list of data for structure */
|
jpayne@69
|
147 int (*free_private)( /* called to free private storage */
|
jpayne@69
|
148 struct _XExtData *extension
|
jpayne@69
|
149 );
|
jpayne@69
|
150 XPointer private_data; /* data private to this extension. */
|
jpayne@69
|
151 } XExtData;
|
jpayne@69
|
152
|
jpayne@69
|
153 /*
|
jpayne@69
|
154 * This file contains structures used by the extension mechanism.
|
jpayne@69
|
155 */
|
jpayne@69
|
156 typedef struct { /* public to extension, cannot be changed */
|
jpayne@69
|
157 int extension; /* extension number */
|
jpayne@69
|
158 int major_opcode; /* major op-code assigned by server */
|
jpayne@69
|
159 int first_event; /* first event number for the extension */
|
jpayne@69
|
160 int first_error; /* first error number for the extension */
|
jpayne@69
|
161 } XExtCodes;
|
jpayne@69
|
162
|
jpayne@69
|
163 /*
|
jpayne@69
|
164 * Data structure for retrieving info about pixmap formats.
|
jpayne@69
|
165 */
|
jpayne@69
|
166
|
jpayne@69
|
167 typedef struct {
|
jpayne@69
|
168 int depth;
|
jpayne@69
|
169 int bits_per_pixel;
|
jpayne@69
|
170 int scanline_pad;
|
jpayne@69
|
171 } XPixmapFormatValues;
|
jpayne@69
|
172
|
jpayne@69
|
173
|
jpayne@69
|
174 /*
|
jpayne@69
|
175 * Data structure for setting graphics context.
|
jpayne@69
|
176 */
|
jpayne@69
|
177 typedef struct {
|
jpayne@69
|
178 int function; /* logical operation */
|
jpayne@69
|
179 unsigned long plane_mask;/* plane mask */
|
jpayne@69
|
180 unsigned long foreground;/* foreground pixel */
|
jpayne@69
|
181 unsigned long background;/* background pixel */
|
jpayne@69
|
182 int line_width; /* line width */
|
jpayne@69
|
183 int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */
|
jpayne@69
|
184 int cap_style; /* CapNotLast, CapButt,
|
jpayne@69
|
185 CapRound, CapProjecting */
|
jpayne@69
|
186 int join_style; /* JoinMiter, JoinRound, JoinBevel */
|
jpayne@69
|
187 int fill_style; /* FillSolid, FillTiled,
|
jpayne@69
|
188 FillStippled, FillOpaqueStippled */
|
jpayne@69
|
189 int fill_rule; /* EvenOddRule, WindingRule */
|
jpayne@69
|
190 int arc_mode; /* ArcChord, ArcPieSlice */
|
jpayne@69
|
191 Pixmap tile; /* tile pixmap for tiling operations */
|
jpayne@69
|
192 Pixmap stipple; /* stipple 1 plane pixmap for stippling */
|
jpayne@69
|
193 int ts_x_origin; /* offset for tile or stipple operations */
|
jpayne@69
|
194 int ts_y_origin;
|
jpayne@69
|
195 Font font; /* default text font for text operations */
|
jpayne@69
|
196 int subwindow_mode; /* ClipByChildren, IncludeInferiors */
|
jpayne@69
|
197 Bool graphics_exposures;/* boolean, should exposures be generated */
|
jpayne@69
|
198 int clip_x_origin; /* origin for clipping */
|
jpayne@69
|
199 int clip_y_origin;
|
jpayne@69
|
200 Pixmap clip_mask; /* bitmap clipping; other calls for rects */
|
jpayne@69
|
201 int dash_offset; /* patterned/dashed line information */
|
jpayne@69
|
202 char dashes;
|
jpayne@69
|
203 } XGCValues;
|
jpayne@69
|
204
|
jpayne@69
|
205 /*
|
jpayne@69
|
206 * Graphics context. The contents of this structure are implementation
|
jpayne@69
|
207 * dependent. A GC should be treated as opaque by application code.
|
jpayne@69
|
208 */
|
jpayne@69
|
209
|
jpayne@69
|
210 typedef struct _XGC
|
jpayne@69
|
211 #ifdef XLIB_ILLEGAL_ACCESS
|
jpayne@69
|
212 {
|
jpayne@69
|
213 XExtData *ext_data; /* hook for extension to hang data */
|
jpayne@69
|
214 GContext gid; /* protocol ID for graphics context */
|
jpayne@69
|
215 /* there is more to this structure, but it is private to Xlib */
|
jpayne@69
|
216 }
|
jpayne@69
|
217 #endif
|
jpayne@69
|
218 *GC;
|
jpayne@69
|
219
|
jpayne@69
|
220 /*
|
jpayne@69
|
221 * Visual structure; contains information about colormapping possible.
|
jpayne@69
|
222 */
|
jpayne@69
|
223 typedef struct {
|
jpayne@69
|
224 XExtData *ext_data; /* hook for extension to hang data */
|
jpayne@69
|
225 VisualID visualid; /* visual id of this visual */
|
jpayne@69
|
226 #if defined(__cplusplus) || defined(c_plusplus)
|
jpayne@69
|
227 int c_class; /* C++ class of screen (monochrome, etc.) */
|
jpayne@69
|
228 #else
|
jpayne@69
|
229 int class; /* class of screen (monochrome, etc.) */
|
jpayne@69
|
230 #endif
|
jpayne@69
|
231 unsigned long red_mask, green_mask, blue_mask; /* mask values */
|
jpayne@69
|
232 int bits_per_rgb; /* log base 2 of distinct color values */
|
jpayne@69
|
233 int map_entries; /* color map entries */
|
jpayne@69
|
234 } Visual;
|
jpayne@69
|
235
|
jpayne@69
|
236 /*
|
jpayne@69
|
237 * Depth structure; contains information for each possible depth.
|
jpayne@69
|
238 */
|
jpayne@69
|
239 typedef struct {
|
jpayne@69
|
240 int depth; /* this depth (Z) of the depth */
|
jpayne@69
|
241 int nvisuals; /* number of Visual types at this depth */
|
jpayne@69
|
242 Visual *visuals; /* list of visuals possible at this depth */
|
jpayne@69
|
243 } Depth;
|
jpayne@69
|
244
|
jpayne@69
|
245 /*
|
jpayne@69
|
246 * Information about the screen. The contents of this structure are
|
jpayne@69
|
247 * implementation dependent. A Screen should be treated as opaque
|
jpayne@69
|
248 * by application code.
|
jpayne@69
|
249 */
|
jpayne@69
|
250
|
jpayne@69
|
251 struct _XDisplay; /* Forward declare before use for C++ */
|
jpayne@69
|
252
|
jpayne@69
|
253 typedef struct {
|
jpayne@69
|
254 XExtData *ext_data; /* hook for extension to hang data */
|
jpayne@69
|
255 struct _XDisplay *display;/* back pointer to display structure */
|
jpayne@69
|
256 Window root; /* Root window id. */
|
jpayne@69
|
257 int width, height; /* width and height of screen */
|
jpayne@69
|
258 int mwidth, mheight; /* width and height of in millimeters */
|
jpayne@69
|
259 int ndepths; /* number of depths possible */
|
jpayne@69
|
260 Depth *depths; /* list of allowable depths on the screen */
|
jpayne@69
|
261 int root_depth; /* bits per pixel */
|
jpayne@69
|
262 Visual *root_visual; /* root visual */
|
jpayne@69
|
263 GC default_gc; /* GC for the root root visual */
|
jpayne@69
|
264 Colormap cmap; /* default color map */
|
jpayne@69
|
265 unsigned long white_pixel;
|
jpayne@69
|
266 unsigned long black_pixel; /* White and Black pixel values */
|
jpayne@69
|
267 int max_maps, min_maps; /* max and min color maps */
|
jpayne@69
|
268 int backing_store; /* Never, WhenMapped, Always */
|
jpayne@69
|
269 Bool save_unders;
|
jpayne@69
|
270 long root_input_mask; /* initial root input mask */
|
jpayne@69
|
271 } Screen;
|
jpayne@69
|
272
|
jpayne@69
|
273 /*
|
jpayne@69
|
274 * Format structure; describes ZFormat data the screen will understand.
|
jpayne@69
|
275 */
|
jpayne@69
|
276 typedef struct {
|
jpayne@69
|
277 XExtData *ext_data; /* hook for extension to hang data */
|
jpayne@69
|
278 int depth; /* depth of this image format */
|
jpayne@69
|
279 int bits_per_pixel; /* bits/pixel at this depth */
|
jpayne@69
|
280 int scanline_pad; /* scanline must padded to this multiple */
|
jpayne@69
|
281 } ScreenFormat;
|
jpayne@69
|
282
|
jpayne@69
|
283 /*
|
jpayne@69
|
284 * Data structure for setting window attributes.
|
jpayne@69
|
285 */
|
jpayne@69
|
286 typedef struct {
|
jpayne@69
|
287 Pixmap background_pixmap; /* background or None or ParentRelative */
|
jpayne@69
|
288 unsigned long background_pixel; /* background pixel */
|
jpayne@69
|
289 Pixmap border_pixmap; /* border of the window */
|
jpayne@69
|
290 unsigned long border_pixel; /* border pixel value */
|
jpayne@69
|
291 int bit_gravity; /* one of bit gravity values */
|
jpayne@69
|
292 int win_gravity; /* one of the window gravity values */
|
jpayne@69
|
293 int backing_store; /* NotUseful, WhenMapped, Always */
|
jpayne@69
|
294 unsigned long backing_planes;/* planes to be preserved if possible */
|
jpayne@69
|
295 unsigned long backing_pixel;/* value to use in restoring planes */
|
jpayne@69
|
296 Bool save_under; /* should bits under be saved? (popups) */
|
jpayne@69
|
297 long event_mask; /* set of events that should be saved */
|
jpayne@69
|
298 long do_not_propagate_mask; /* set of events that should not propagate */
|
jpayne@69
|
299 Bool override_redirect; /* boolean value for override-redirect */
|
jpayne@69
|
300 Colormap colormap; /* color map to be associated with window */
|
jpayne@69
|
301 Cursor cursor; /* cursor to be displayed (or None) */
|
jpayne@69
|
302 } XSetWindowAttributes;
|
jpayne@69
|
303
|
jpayne@69
|
304 typedef struct {
|
jpayne@69
|
305 int x, y; /* location of window */
|
jpayne@69
|
306 int width, height; /* width and height of window */
|
jpayne@69
|
307 int border_width; /* border width of window */
|
jpayne@69
|
308 int depth; /* depth of window */
|
jpayne@69
|
309 Visual *visual; /* the associated visual structure */
|
jpayne@69
|
310 Window root; /* root of screen containing window */
|
jpayne@69
|
311 #if defined(__cplusplus) || defined(c_plusplus)
|
jpayne@69
|
312 int c_class; /* C++ InputOutput, InputOnly*/
|
jpayne@69
|
313 #else
|
jpayne@69
|
314 int class; /* InputOutput, InputOnly*/
|
jpayne@69
|
315 #endif
|
jpayne@69
|
316 int bit_gravity; /* one of bit gravity values */
|
jpayne@69
|
317 int win_gravity; /* one of the window gravity values */
|
jpayne@69
|
318 int backing_store; /* NotUseful, WhenMapped, Always */
|
jpayne@69
|
319 unsigned long backing_planes;/* planes to be preserved if possible */
|
jpayne@69
|
320 unsigned long backing_pixel;/* value to be used when restoring planes */
|
jpayne@69
|
321 Bool save_under; /* boolean, should bits under be saved? */
|
jpayne@69
|
322 Colormap colormap; /* color map to be associated with window */
|
jpayne@69
|
323 Bool map_installed; /* boolean, is color map currently installed*/
|
jpayne@69
|
324 int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
|
jpayne@69
|
325 long all_event_masks; /* set of events all people have interest in*/
|
jpayne@69
|
326 long your_event_mask; /* my event mask */
|
jpayne@69
|
327 long do_not_propagate_mask; /* set of events that should not propagate */
|
jpayne@69
|
328 Bool override_redirect; /* boolean value for override-redirect */
|
jpayne@69
|
329 Screen *screen; /* back pointer to correct screen */
|
jpayne@69
|
330 } XWindowAttributes;
|
jpayne@69
|
331
|
jpayne@69
|
332 /*
|
jpayne@69
|
333 * Data structure for host setting; getting routines.
|
jpayne@69
|
334 *
|
jpayne@69
|
335 */
|
jpayne@69
|
336
|
jpayne@69
|
337 typedef struct {
|
jpayne@69
|
338 int family; /* for example FamilyInternet */
|
jpayne@69
|
339 int length; /* length of address, in bytes */
|
jpayne@69
|
340 char *address; /* pointer to where to find the bytes */
|
jpayne@69
|
341 } XHostAddress;
|
jpayne@69
|
342
|
jpayne@69
|
343 /*
|
jpayne@69
|
344 * Data structure for ServerFamilyInterpreted addresses in host routines
|
jpayne@69
|
345 */
|
jpayne@69
|
346 typedef struct {
|
jpayne@69
|
347 int typelength; /* length of type string, in bytes */
|
jpayne@69
|
348 int valuelength; /* length of value string, in bytes */
|
jpayne@69
|
349 char *type; /* pointer to where to find the type string */
|
jpayne@69
|
350 char *value; /* pointer to where to find the address */
|
jpayne@69
|
351 } XServerInterpretedAddress;
|
jpayne@69
|
352
|
jpayne@69
|
353 /*
|
jpayne@69
|
354 * Data structure for "image" data, used by image manipulation routines.
|
jpayne@69
|
355 */
|
jpayne@69
|
356 typedef struct _XImage {
|
jpayne@69
|
357 int width, height; /* size of image */
|
jpayne@69
|
358 int xoffset; /* number of pixels offset in X direction */
|
jpayne@69
|
359 int format; /* XYBitmap, XYPixmap, ZPixmap */
|
jpayne@69
|
360 char *data; /* pointer to image data */
|
jpayne@69
|
361 int byte_order; /* data byte order, LSBFirst, MSBFirst */
|
jpayne@69
|
362 int bitmap_unit; /* quant. of scanline 8, 16, 32 */
|
jpayne@69
|
363 int bitmap_bit_order; /* LSBFirst, MSBFirst */
|
jpayne@69
|
364 int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */
|
jpayne@69
|
365 int depth; /* depth of image */
|
jpayne@69
|
366 int bytes_per_line; /* accelerator to next line */
|
jpayne@69
|
367 int bits_per_pixel; /* bits per pixel (ZPixmap) */
|
jpayne@69
|
368 unsigned long red_mask; /* bits in z arrangement */
|
jpayne@69
|
369 unsigned long green_mask;
|
jpayne@69
|
370 unsigned long blue_mask;
|
jpayne@69
|
371 XPointer obdata; /* hook for the object routines to hang on */
|
jpayne@69
|
372 struct funcs { /* image manipulation routines */
|
jpayne@69
|
373 struct _XImage *(*create_image)(
|
jpayne@69
|
374 struct _XDisplay* /* display */,
|
jpayne@69
|
375 Visual* /* visual */,
|
jpayne@69
|
376 unsigned int /* depth */,
|
jpayne@69
|
377 int /* format */,
|
jpayne@69
|
378 int /* offset */,
|
jpayne@69
|
379 char* /* data */,
|
jpayne@69
|
380 unsigned int /* width */,
|
jpayne@69
|
381 unsigned int /* height */,
|
jpayne@69
|
382 int /* bitmap_pad */,
|
jpayne@69
|
383 int /* bytes_per_line */);
|
jpayne@69
|
384 int (*destroy_image) (struct _XImage *);
|
jpayne@69
|
385 unsigned long (*get_pixel) (struct _XImage *, int, int);
|
jpayne@69
|
386 int (*put_pixel) (struct _XImage *, int, int, unsigned long);
|
jpayne@69
|
387 struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int);
|
jpayne@69
|
388 int (*add_pixel) (struct _XImage *, long);
|
jpayne@69
|
389 } f;
|
jpayne@69
|
390 } XImage;
|
jpayne@69
|
391
|
jpayne@69
|
392 /*
|
jpayne@69
|
393 * Data structure for XReconfigureWindow
|
jpayne@69
|
394 */
|
jpayne@69
|
395 typedef struct {
|
jpayne@69
|
396 int x, y;
|
jpayne@69
|
397 int width, height;
|
jpayne@69
|
398 int border_width;
|
jpayne@69
|
399 Window sibling;
|
jpayne@69
|
400 int stack_mode;
|
jpayne@69
|
401 } XWindowChanges;
|
jpayne@69
|
402
|
jpayne@69
|
403 /*
|
jpayne@69
|
404 * Data structure used by color operations
|
jpayne@69
|
405 */
|
jpayne@69
|
406 typedef struct {
|
jpayne@69
|
407 unsigned long pixel;
|
jpayne@69
|
408 unsigned short red, green, blue;
|
jpayne@69
|
409 char flags; /* do_red, do_green, do_blue */
|
jpayne@69
|
410 char pad;
|
jpayne@69
|
411 } XColor;
|
jpayne@69
|
412
|
jpayne@69
|
413 /*
|
jpayne@69
|
414 * Data structures for graphics operations. On most machines, these are
|
jpayne@69
|
415 * congruent with the wire protocol structures, so reformatting the data
|
jpayne@69
|
416 * can be avoided on these architectures.
|
jpayne@69
|
417 */
|
jpayne@69
|
418 typedef struct {
|
jpayne@69
|
419 short x1, y1, x2, y2;
|
jpayne@69
|
420 } XSegment;
|
jpayne@69
|
421
|
jpayne@69
|
422 typedef struct {
|
jpayne@69
|
423 short x, y;
|
jpayne@69
|
424 } XPoint;
|
jpayne@69
|
425
|
jpayne@69
|
426 typedef struct {
|
jpayne@69
|
427 short x, y;
|
jpayne@69
|
428 unsigned short width, height;
|
jpayne@69
|
429 } XRectangle;
|
jpayne@69
|
430
|
jpayne@69
|
431 typedef struct {
|
jpayne@69
|
432 short x, y;
|
jpayne@69
|
433 unsigned short width, height;
|
jpayne@69
|
434 short angle1, angle2;
|
jpayne@69
|
435 } XArc;
|
jpayne@69
|
436
|
jpayne@69
|
437
|
jpayne@69
|
438 /* Data structure for XChangeKeyboardControl */
|
jpayne@69
|
439
|
jpayne@69
|
440 typedef struct {
|
jpayne@69
|
441 int key_click_percent;
|
jpayne@69
|
442 int bell_percent;
|
jpayne@69
|
443 int bell_pitch;
|
jpayne@69
|
444 int bell_duration;
|
jpayne@69
|
445 int led;
|
jpayne@69
|
446 int led_mode;
|
jpayne@69
|
447 int key;
|
jpayne@69
|
448 int auto_repeat_mode; /* On, Off, Default */
|
jpayne@69
|
449 } XKeyboardControl;
|
jpayne@69
|
450
|
jpayne@69
|
451 /* Data structure for XGetKeyboardControl */
|
jpayne@69
|
452
|
jpayne@69
|
453 typedef struct {
|
jpayne@69
|
454 int key_click_percent;
|
jpayne@69
|
455 int bell_percent;
|
jpayne@69
|
456 unsigned int bell_pitch, bell_duration;
|
jpayne@69
|
457 unsigned long led_mask;
|
jpayne@69
|
458 int global_auto_repeat;
|
jpayne@69
|
459 char auto_repeats[32];
|
jpayne@69
|
460 } XKeyboardState;
|
jpayne@69
|
461
|
jpayne@69
|
462 /* Data structure for XGetMotionEvents. */
|
jpayne@69
|
463
|
jpayne@69
|
464 typedef struct {
|
jpayne@69
|
465 Time time;
|
jpayne@69
|
466 short x, y;
|
jpayne@69
|
467 } XTimeCoord;
|
jpayne@69
|
468
|
jpayne@69
|
469 /* Data structure for X{Set,Get}ModifierMapping */
|
jpayne@69
|
470
|
jpayne@69
|
471 typedef struct {
|
jpayne@69
|
472 int max_keypermod; /* The server's max # of keys per modifier */
|
jpayne@69
|
473 KeyCode *modifiermap; /* An 8 by max_keypermod array of modifiers */
|
jpayne@69
|
474 } XModifierKeymap;
|
jpayne@69
|
475
|
jpayne@69
|
476
|
jpayne@69
|
477 /*
|
jpayne@69
|
478 * Display datatype maintaining display specific data.
|
jpayne@69
|
479 * The contents of this structure are implementation dependent.
|
jpayne@69
|
480 * A Display should be treated as opaque by application code.
|
jpayne@69
|
481 */
|
jpayne@69
|
482 #ifndef XLIB_ILLEGAL_ACCESS
|
jpayne@69
|
483 typedef struct _XDisplay Display;
|
jpayne@69
|
484 #endif
|
jpayne@69
|
485
|
jpayne@69
|
486 struct _XPrivate; /* Forward declare before use for C++ */
|
jpayne@69
|
487 struct _XrmHashBucketRec;
|
jpayne@69
|
488
|
jpayne@69
|
489 typedef struct
|
jpayne@69
|
490 #ifdef XLIB_ILLEGAL_ACCESS
|
jpayne@69
|
491 _XDisplay
|
jpayne@69
|
492 #endif
|
jpayne@69
|
493 {
|
jpayne@69
|
494 XExtData *ext_data; /* hook for extension to hang data */
|
jpayne@69
|
495 struct _XPrivate *private1;
|
jpayne@69
|
496 int fd; /* Network socket. */
|
jpayne@69
|
497 int private2;
|
jpayne@69
|
498 int proto_major_version;/* major version of server's X protocol */
|
jpayne@69
|
499 int proto_minor_version;/* minor version of servers X protocol */
|
jpayne@69
|
500 char *vendor; /* vendor of the server hardware */
|
jpayne@69
|
501 XID private3;
|
jpayne@69
|
502 XID private4;
|
jpayne@69
|
503 XID private5;
|
jpayne@69
|
504 int private6;
|
jpayne@69
|
505 XID (*resource_alloc)( /* allocator function */
|
jpayne@69
|
506 struct _XDisplay*
|
jpayne@69
|
507 );
|
jpayne@69
|
508 int byte_order; /* screen byte order, LSBFirst, MSBFirst */
|
jpayne@69
|
509 int bitmap_unit; /* padding and data requirements */
|
jpayne@69
|
510 int bitmap_pad; /* padding requirements on bitmaps */
|
jpayne@69
|
511 int bitmap_bit_order; /* LeastSignificant or MostSignificant */
|
jpayne@69
|
512 int nformats; /* number of pixmap formats in list */
|
jpayne@69
|
513 ScreenFormat *pixmap_format; /* pixmap format list */
|
jpayne@69
|
514 int private8;
|
jpayne@69
|
515 int release; /* release of the server */
|
jpayne@69
|
516 struct _XPrivate *private9, *private10;
|
jpayne@69
|
517 int qlen; /* Length of input event queue */
|
jpayne@69
|
518 unsigned long last_request_read; /* seq number of last event read */
|
jpayne@69
|
519 unsigned long request; /* sequence number of last request. */
|
jpayne@69
|
520 XPointer private11;
|
jpayne@69
|
521 XPointer private12;
|
jpayne@69
|
522 XPointer private13;
|
jpayne@69
|
523 XPointer private14;
|
jpayne@69
|
524 unsigned max_request_size; /* maximum number 32 bit words in request*/
|
jpayne@69
|
525 struct _XrmHashBucketRec *db;
|
jpayne@69
|
526 int (*private15)(
|
jpayne@69
|
527 struct _XDisplay*
|
jpayne@69
|
528 );
|
jpayne@69
|
529 char *display_name; /* "host:display" string used on this connect*/
|
jpayne@69
|
530 int default_screen; /* default screen for operations */
|
jpayne@69
|
531 int nscreens; /* number of screens on this server*/
|
jpayne@69
|
532 Screen *screens; /* pointer to list of screens */
|
jpayne@69
|
533 unsigned long motion_buffer; /* size of motion buffer */
|
jpayne@69
|
534 unsigned long private16;
|
jpayne@69
|
535 int min_keycode; /* minimum defined keycode */
|
jpayne@69
|
536 int max_keycode; /* maximum defined keycode */
|
jpayne@69
|
537 XPointer private17;
|
jpayne@69
|
538 XPointer private18;
|
jpayne@69
|
539 int private19;
|
jpayne@69
|
540 char *xdefaults; /* contents of defaults from server */
|
jpayne@69
|
541 /* there is more to this structure, but it is private to Xlib */
|
jpayne@69
|
542 }
|
jpayne@69
|
543 #ifdef XLIB_ILLEGAL_ACCESS
|
jpayne@69
|
544 Display,
|
jpayne@69
|
545 #endif
|
jpayne@69
|
546 *_XPrivDisplay;
|
jpayne@69
|
547
|
jpayne@69
|
548 #undef _XEVENT_
|
jpayne@69
|
549 #ifndef _XEVENT_
|
jpayne@69
|
550 /*
|
jpayne@69
|
551 * Definitions of specific events.
|
jpayne@69
|
552 */
|
jpayne@69
|
553 typedef struct {
|
jpayne@69
|
554 int type; /* of event */
|
jpayne@69
|
555 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
556 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
557 Display *display; /* Display the event was read from */
|
jpayne@69
|
558 Window window; /* "event" window it is reported relative to */
|
jpayne@69
|
559 Window root; /* root window that the event occurred on */
|
jpayne@69
|
560 Window subwindow; /* child window */
|
jpayne@69
|
561 Time time; /* milliseconds */
|
jpayne@69
|
562 int x, y; /* pointer x, y coordinates in event window */
|
jpayne@69
|
563 int x_root, y_root; /* coordinates relative to root */
|
jpayne@69
|
564 unsigned int state; /* key or button mask */
|
jpayne@69
|
565 unsigned int keycode; /* detail */
|
jpayne@69
|
566 Bool same_screen; /* same screen flag */
|
jpayne@69
|
567 } XKeyEvent;
|
jpayne@69
|
568 typedef XKeyEvent XKeyPressedEvent;
|
jpayne@69
|
569 typedef XKeyEvent XKeyReleasedEvent;
|
jpayne@69
|
570
|
jpayne@69
|
571 typedef struct {
|
jpayne@69
|
572 int type; /* of event */
|
jpayne@69
|
573 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
574 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
575 Display *display; /* Display the event was read from */
|
jpayne@69
|
576 Window window; /* "event" window it is reported relative to */
|
jpayne@69
|
577 Window root; /* root window that the event occurred on */
|
jpayne@69
|
578 Window subwindow; /* child window */
|
jpayne@69
|
579 Time time; /* milliseconds */
|
jpayne@69
|
580 int x, y; /* pointer x, y coordinates in event window */
|
jpayne@69
|
581 int x_root, y_root; /* coordinates relative to root */
|
jpayne@69
|
582 unsigned int state; /* key or button mask */
|
jpayne@69
|
583 unsigned int button; /* detail */
|
jpayne@69
|
584 Bool same_screen; /* same screen flag */
|
jpayne@69
|
585 } XButtonEvent;
|
jpayne@69
|
586 typedef XButtonEvent XButtonPressedEvent;
|
jpayne@69
|
587 typedef XButtonEvent XButtonReleasedEvent;
|
jpayne@69
|
588
|
jpayne@69
|
589 typedef struct {
|
jpayne@69
|
590 int type; /* of event */
|
jpayne@69
|
591 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
592 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
593 Display *display; /* Display the event was read from */
|
jpayne@69
|
594 Window window; /* "event" window reported relative to */
|
jpayne@69
|
595 Window root; /* root window that the event occurred on */
|
jpayne@69
|
596 Window subwindow; /* child window */
|
jpayne@69
|
597 Time time; /* milliseconds */
|
jpayne@69
|
598 int x, y; /* pointer x, y coordinates in event window */
|
jpayne@69
|
599 int x_root, y_root; /* coordinates relative to root */
|
jpayne@69
|
600 unsigned int state; /* key or button mask */
|
jpayne@69
|
601 char is_hint; /* detail */
|
jpayne@69
|
602 Bool same_screen; /* same screen flag */
|
jpayne@69
|
603 } XMotionEvent;
|
jpayne@69
|
604 typedef XMotionEvent XPointerMovedEvent;
|
jpayne@69
|
605
|
jpayne@69
|
606 typedef struct {
|
jpayne@69
|
607 int type; /* of event */
|
jpayne@69
|
608 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
609 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
610 Display *display; /* Display the event was read from */
|
jpayne@69
|
611 Window window; /* "event" window reported relative to */
|
jpayne@69
|
612 Window root; /* root window that the event occurred on */
|
jpayne@69
|
613 Window subwindow; /* child window */
|
jpayne@69
|
614 Time time; /* milliseconds */
|
jpayne@69
|
615 int x, y; /* pointer x, y coordinates in event window */
|
jpayne@69
|
616 int x_root, y_root; /* coordinates relative to root */
|
jpayne@69
|
617 int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */
|
jpayne@69
|
618 int detail;
|
jpayne@69
|
619 /*
|
jpayne@69
|
620 * NotifyAncestor, NotifyVirtual, NotifyInferior,
|
jpayne@69
|
621 * NotifyNonlinear,NotifyNonlinearVirtual
|
jpayne@69
|
622 */
|
jpayne@69
|
623 Bool same_screen; /* same screen flag */
|
jpayne@69
|
624 Bool focus; /* boolean focus */
|
jpayne@69
|
625 unsigned int state; /* key or button mask */
|
jpayne@69
|
626 } XCrossingEvent;
|
jpayne@69
|
627 typedef XCrossingEvent XEnterWindowEvent;
|
jpayne@69
|
628 typedef XCrossingEvent XLeaveWindowEvent;
|
jpayne@69
|
629
|
jpayne@69
|
630 typedef struct {
|
jpayne@69
|
631 int type; /* FocusIn or FocusOut */
|
jpayne@69
|
632 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
633 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
634 Display *display; /* Display the event was read from */
|
jpayne@69
|
635 Window window; /* window of event */
|
jpayne@69
|
636 int mode; /* NotifyNormal, NotifyWhileGrabbed,
|
jpayne@69
|
637 NotifyGrab, NotifyUngrab */
|
jpayne@69
|
638 int detail;
|
jpayne@69
|
639 /*
|
jpayne@69
|
640 * NotifyAncestor, NotifyVirtual, NotifyInferior,
|
jpayne@69
|
641 * NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer,
|
jpayne@69
|
642 * NotifyPointerRoot, NotifyDetailNone
|
jpayne@69
|
643 */
|
jpayne@69
|
644 } XFocusChangeEvent;
|
jpayne@69
|
645 typedef XFocusChangeEvent XFocusInEvent;
|
jpayne@69
|
646 typedef XFocusChangeEvent XFocusOutEvent;
|
jpayne@69
|
647
|
jpayne@69
|
648 /* generated on EnterWindow and FocusIn when KeyMapState selected */
|
jpayne@69
|
649 typedef struct {
|
jpayne@69
|
650 int type;
|
jpayne@69
|
651 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
652 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
653 Display *display; /* Display the event was read from */
|
jpayne@69
|
654 Window window;
|
jpayne@69
|
655 char key_vector[32];
|
jpayne@69
|
656 } XKeymapEvent;
|
jpayne@69
|
657
|
jpayne@69
|
658 typedef struct {
|
jpayne@69
|
659 int type;
|
jpayne@69
|
660 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
661 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
662 Display *display; /* Display the event was read from */
|
jpayne@69
|
663 Window window;
|
jpayne@69
|
664 int x, y;
|
jpayne@69
|
665 int width, height;
|
jpayne@69
|
666 int count; /* if non-zero, at least this many more */
|
jpayne@69
|
667 } XExposeEvent;
|
jpayne@69
|
668
|
jpayne@69
|
669 typedef struct {
|
jpayne@69
|
670 int type;
|
jpayne@69
|
671 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
672 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
673 Display *display; /* Display the event was read from */
|
jpayne@69
|
674 Drawable drawable;
|
jpayne@69
|
675 int x, y;
|
jpayne@69
|
676 int width, height;
|
jpayne@69
|
677 int count; /* if non-zero, at least this many more */
|
jpayne@69
|
678 int major_code; /* core is CopyArea or CopyPlane */
|
jpayne@69
|
679 int minor_code; /* not defined in the core */
|
jpayne@69
|
680 } XGraphicsExposeEvent;
|
jpayne@69
|
681
|
jpayne@69
|
682 typedef struct {
|
jpayne@69
|
683 int type;
|
jpayne@69
|
684 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
685 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
686 Display *display; /* Display the event was read from */
|
jpayne@69
|
687 Drawable drawable;
|
jpayne@69
|
688 int major_code; /* core is CopyArea or CopyPlane */
|
jpayne@69
|
689 int minor_code; /* not defined in the core */
|
jpayne@69
|
690 } XNoExposeEvent;
|
jpayne@69
|
691
|
jpayne@69
|
692 typedef struct {
|
jpayne@69
|
693 int type;
|
jpayne@69
|
694 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
695 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
696 Display *display; /* Display the event was read from */
|
jpayne@69
|
697 Window window;
|
jpayne@69
|
698 int state; /* Visibility state */
|
jpayne@69
|
699 } XVisibilityEvent;
|
jpayne@69
|
700
|
jpayne@69
|
701 typedef struct {
|
jpayne@69
|
702 int type;
|
jpayne@69
|
703 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
704 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
705 Display *display; /* Display the event was read from */
|
jpayne@69
|
706 Window parent; /* parent of the window */
|
jpayne@69
|
707 Window window; /* window id of window created */
|
jpayne@69
|
708 int x, y; /* window location */
|
jpayne@69
|
709 int width, height; /* size of window */
|
jpayne@69
|
710 int border_width; /* border width */
|
jpayne@69
|
711 Bool override_redirect; /* creation should be overridden */
|
jpayne@69
|
712 } XCreateWindowEvent;
|
jpayne@69
|
713
|
jpayne@69
|
714 typedef struct {
|
jpayne@69
|
715 int type;
|
jpayne@69
|
716 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
717 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
718 Display *display; /* Display the event was read from */
|
jpayne@69
|
719 Window event;
|
jpayne@69
|
720 Window window;
|
jpayne@69
|
721 } XDestroyWindowEvent;
|
jpayne@69
|
722
|
jpayne@69
|
723 typedef struct {
|
jpayne@69
|
724 int type;
|
jpayne@69
|
725 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
726 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
727 Display *display; /* Display the event was read from */
|
jpayne@69
|
728 Window event;
|
jpayne@69
|
729 Window window;
|
jpayne@69
|
730 Bool from_configure;
|
jpayne@69
|
731 } XUnmapEvent;
|
jpayne@69
|
732
|
jpayne@69
|
733 typedef struct {
|
jpayne@69
|
734 int type;
|
jpayne@69
|
735 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
736 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
737 Display *display; /* Display the event was read from */
|
jpayne@69
|
738 Window event;
|
jpayne@69
|
739 Window window;
|
jpayne@69
|
740 Bool override_redirect; /* boolean, is override set... */
|
jpayne@69
|
741 } XMapEvent;
|
jpayne@69
|
742
|
jpayne@69
|
743 typedef struct {
|
jpayne@69
|
744 int type;
|
jpayne@69
|
745 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
746 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
747 Display *display; /* Display the event was read from */
|
jpayne@69
|
748 Window parent;
|
jpayne@69
|
749 Window window;
|
jpayne@69
|
750 } XMapRequestEvent;
|
jpayne@69
|
751
|
jpayne@69
|
752 typedef struct {
|
jpayne@69
|
753 int type;
|
jpayne@69
|
754 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
755 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
756 Display *display; /* Display the event was read from */
|
jpayne@69
|
757 Window event;
|
jpayne@69
|
758 Window window;
|
jpayne@69
|
759 Window parent;
|
jpayne@69
|
760 int x, y;
|
jpayne@69
|
761 Bool override_redirect;
|
jpayne@69
|
762 } XReparentEvent;
|
jpayne@69
|
763
|
jpayne@69
|
764 typedef struct {
|
jpayne@69
|
765 int type;
|
jpayne@69
|
766 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
767 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
768 Display *display; /* Display the event was read from */
|
jpayne@69
|
769 Window event;
|
jpayne@69
|
770 Window window;
|
jpayne@69
|
771 int x, y;
|
jpayne@69
|
772 int width, height;
|
jpayne@69
|
773 int border_width;
|
jpayne@69
|
774 Window above;
|
jpayne@69
|
775 Bool override_redirect;
|
jpayne@69
|
776 } XConfigureEvent;
|
jpayne@69
|
777
|
jpayne@69
|
778 typedef struct {
|
jpayne@69
|
779 int type;
|
jpayne@69
|
780 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
781 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
782 Display *display; /* Display the event was read from */
|
jpayne@69
|
783 Window event;
|
jpayne@69
|
784 Window window;
|
jpayne@69
|
785 int x, y;
|
jpayne@69
|
786 } XGravityEvent;
|
jpayne@69
|
787
|
jpayne@69
|
788 typedef struct {
|
jpayne@69
|
789 int type;
|
jpayne@69
|
790 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
791 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
792 Display *display; /* Display the event was read from */
|
jpayne@69
|
793 Window window;
|
jpayne@69
|
794 int width, height;
|
jpayne@69
|
795 } XResizeRequestEvent;
|
jpayne@69
|
796
|
jpayne@69
|
797 typedef struct {
|
jpayne@69
|
798 int type;
|
jpayne@69
|
799 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
800 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
801 Display *display; /* Display the event was read from */
|
jpayne@69
|
802 Window parent;
|
jpayne@69
|
803 Window window;
|
jpayne@69
|
804 int x, y;
|
jpayne@69
|
805 int width, height;
|
jpayne@69
|
806 int border_width;
|
jpayne@69
|
807 Window above;
|
jpayne@69
|
808 int detail; /* Above, Below, TopIf, BottomIf, Opposite */
|
jpayne@69
|
809 unsigned long value_mask;
|
jpayne@69
|
810 } XConfigureRequestEvent;
|
jpayne@69
|
811
|
jpayne@69
|
812 typedef struct {
|
jpayne@69
|
813 int type;
|
jpayne@69
|
814 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
815 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
816 Display *display; /* Display the event was read from */
|
jpayne@69
|
817 Window event;
|
jpayne@69
|
818 Window window;
|
jpayne@69
|
819 int place; /* PlaceOnTop, PlaceOnBottom */
|
jpayne@69
|
820 } XCirculateEvent;
|
jpayne@69
|
821
|
jpayne@69
|
822 typedef struct {
|
jpayne@69
|
823 int type;
|
jpayne@69
|
824 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
825 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
826 Display *display; /* Display the event was read from */
|
jpayne@69
|
827 Window parent;
|
jpayne@69
|
828 Window window;
|
jpayne@69
|
829 int place; /* PlaceOnTop, PlaceOnBottom */
|
jpayne@69
|
830 } XCirculateRequestEvent;
|
jpayne@69
|
831
|
jpayne@69
|
832 typedef struct {
|
jpayne@69
|
833 int type;
|
jpayne@69
|
834 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
835 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
836 Display *display; /* Display the event was read from */
|
jpayne@69
|
837 Window window;
|
jpayne@69
|
838 Atom atom;
|
jpayne@69
|
839 Time time;
|
jpayne@69
|
840 int state; /* NewValue, Deleted */
|
jpayne@69
|
841 } XPropertyEvent;
|
jpayne@69
|
842
|
jpayne@69
|
843 typedef struct {
|
jpayne@69
|
844 int type;
|
jpayne@69
|
845 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
846 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
847 Display *display; /* Display the event was read from */
|
jpayne@69
|
848 Window window;
|
jpayne@69
|
849 Atom selection;
|
jpayne@69
|
850 Time time;
|
jpayne@69
|
851 } XSelectionClearEvent;
|
jpayne@69
|
852
|
jpayne@69
|
853 typedef struct {
|
jpayne@69
|
854 int type;
|
jpayne@69
|
855 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
856 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
857 Display *display; /* Display the event was read from */
|
jpayne@69
|
858 Window owner;
|
jpayne@69
|
859 Window requestor;
|
jpayne@69
|
860 Atom selection;
|
jpayne@69
|
861 Atom target;
|
jpayne@69
|
862 Atom property;
|
jpayne@69
|
863 Time time;
|
jpayne@69
|
864 } XSelectionRequestEvent;
|
jpayne@69
|
865
|
jpayne@69
|
866 typedef struct {
|
jpayne@69
|
867 int type;
|
jpayne@69
|
868 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
869 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
870 Display *display; /* Display the event was read from */
|
jpayne@69
|
871 Window requestor;
|
jpayne@69
|
872 Atom selection;
|
jpayne@69
|
873 Atom target;
|
jpayne@69
|
874 Atom property; /* ATOM or None */
|
jpayne@69
|
875 Time time;
|
jpayne@69
|
876 } XSelectionEvent;
|
jpayne@69
|
877
|
jpayne@69
|
878 typedef struct {
|
jpayne@69
|
879 int type;
|
jpayne@69
|
880 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
881 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
882 Display *display; /* Display the event was read from */
|
jpayne@69
|
883 Window window;
|
jpayne@69
|
884 Colormap colormap; /* COLORMAP or None */
|
jpayne@69
|
885 #if defined(__cplusplus) || defined(c_plusplus)
|
jpayne@69
|
886 Bool c_new; /* C++ */
|
jpayne@69
|
887 #else
|
jpayne@69
|
888 Bool new;
|
jpayne@69
|
889 #endif
|
jpayne@69
|
890 int state; /* ColormapInstalled, ColormapUninstalled */
|
jpayne@69
|
891 } XColormapEvent;
|
jpayne@69
|
892
|
jpayne@69
|
893 typedef struct {
|
jpayne@69
|
894 int type;
|
jpayne@69
|
895 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
896 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
897 Display *display; /* Display the event was read from */
|
jpayne@69
|
898 Window window;
|
jpayne@69
|
899 Atom message_type;
|
jpayne@69
|
900 int format;
|
jpayne@69
|
901 union {
|
jpayne@69
|
902 char b[20];
|
jpayne@69
|
903 short s[10];
|
jpayne@69
|
904 long l[5];
|
jpayne@69
|
905 } data;
|
jpayne@69
|
906 } XClientMessageEvent;
|
jpayne@69
|
907
|
jpayne@69
|
908 typedef struct {
|
jpayne@69
|
909 int type;
|
jpayne@69
|
910 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
911 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
912 Display *display; /* Display the event was read from */
|
jpayne@69
|
913 Window window; /* unused */
|
jpayne@69
|
914 int request; /* one of MappingModifier, MappingKeyboard,
|
jpayne@69
|
915 MappingPointer */
|
jpayne@69
|
916 int first_keycode; /* first keycode */
|
jpayne@69
|
917 int count; /* defines range of change w. first_keycode*/
|
jpayne@69
|
918 } XMappingEvent;
|
jpayne@69
|
919
|
jpayne@69
|
920 typedef struct {
|
jpayne@69
|
921 int type;
|
jpayne@69
|
922 Display *display; /* Display the event was read from */
|
jpayne@69
|
923 XID resourceid; /* resource id */
|
jpayne@69
|
924 unsigned long serial; /* serial number of failed request */
|
jpayne@69
|
925 unsigned char error_code; /* error code of failed request */
|
jpayne@69
|
926 unsigned char request_code; /* Major op-code of failed request */
|
jpayne@69
|
927 unsigned char minor_code; /* Minor op-code of failed request */
|
jpayne@69
|
928 } XErrorEvent;
|
jpayne@69
|
929
|
jpayne@69
|
930 typedef struct {
|
jpayne@69
|
931 int type;
|
jpayne@69
|
932 unsigned long serial; /* # of last request processed by server */
|
jpayne@69
|
933 Bool send_event; /* true if this came from a SendEvent request */
|
jpayne@69
|
934 Display *display;/* Display the event was read from */
|
jpayne@69
|
935 Window window; /* window on which event was requested in event mask */
|
jpayne@69
|
936 } XAnyEvent;
|
jpayne@69
|
937
|
jpayne@69
|
938
|
jpayne@69
|
939 /***************************************************************
|
jpayne@69
|
940 *
|
jpayne@69
|
941 * GenericEvent. This event is the standard event for all newer extensions.
|
jpayne@69
|
942 */
|
jpayne@69
|
943
|
jpayne@69
|
944 typedef struct
|
jpayne@69
|
945 {
|
jpayne@69
|
946 int type; /* of event. Always GenericEvent */
|
jpayne@69
|
947 unsigned long serial; /* # of last request processed */
|
jpayne@69
|
948 Bool send_event; /* true if from SendEvent request */
|
jpayne@69
|
949 Display *display; /* Display the event was read from */
|
jpayne@69
|
950 int extension; /* major opcode of extension that caused the event */
|
jpayne@69
|
951 int evtype; /* actual event type. */
|
jpayne@69
|
952 } XGenericEvent;
|
jpayne@69
|
953
|
jpayne@69
|
954 typedef struct {
|
jpayne@69
|
955 int type; /* of event. Always GenericEvent */
|
jpayne@69
|
956 unsigned long serial; /* # of last request processed */
|
jpayne@69
|
957 Bool send_event; /* true if from SendEvent request */
|
jpayne@69
|
958 Display *display; /* Display the event was read from */
|
jpayne@69
|
959 int extension; /* major opcode of extension that caused the event */
|
jpayne@69
|
960 int evtype; /* actual event type. */
|
jpayne@69
|
961 unsigned int cookie;
|
jpayne@69
|
962 void *data;
|
jpayne@69
|
963 } XGenericEventCookie;
|
jpayne@69
|
964
|
jpayne@69
|
965 /*
|
jpayne@69
|
966 * this union is defined so Xlib can always use the same sized
|
jpayne@69
|
967 * event structure internally, to avoid memory fragmentation.
|
jpayne@69
|
968 */
|
jpayne@69
|
969 typedef union _XEvent {
|
jpayne@69
|
970 int type; /* must not be changed; first element */
|
jpayne@69
|
971 XAnyEvent xany;
|
jpayne@69
|
972 XKeyEvent xkey;
|
jpayne@69
|
973 XButtonEvent xbutton;
|
jpayne@69
|
974 XMotionEvent xmotion;
|
jpayne@69
|
975 XCrossingEvent xcrossing;
|
jpayne@69
|
976 XFocusChangeEvent xfocus;
|
jpayne@69
|
977 XExposeEvent xexpose;
|
jpayne@69
|
978 XGraphicsExposeEvent xgraphicsexpose;
|
jpayne@69
|
979 XNoExposeEvent xnoexpose;
|
jpayne@69
|
980 XVisibilityEvent xvisibility;
|
jpayne@69
|
981 XCreateWindowEvent xcreatewindow;
|
jpayne@69
|
982 XDestroyWindowEvent xdestroywindow;
|
jpayne@69
|
983 XUnmapEvent xunmap;
|
jpayne@69
|
984 XMapEvent xmap;
|
jpayne@69
|
985 XMapRequestEvent xmaprequest;
|
jpayne@69
|
986 XReparentEvent xreparent;
|
jpayne@69
|
987 XConfigureEvent xconfigure;
|
jpayne@69
|
988 XGravityEvent xgravity;
|
jpayne@69
|
989 XResizeRequestEvent xresizerequest;
|
jpayne@69
|
990 XConfigureRequestEvent xconfigurerequest;
|
jpayne@69
|
991 XCirculateEvent xcirculate;
|
jpayne@69
|
992 XCirculateRequestEvent xcirculaterequest;
|
jpayne@69
|
993 XPropertyEvent xproperty;
|
jpayne@69
|
994 XSelectionClearEvent xselectionclear;
|
jpayne@69
|
995 XSelectionRequestEvent xselectionrequest;
|
jpayne@69
|
996 XSelectionEvent xselection;
|
jpayne@69
|
997 XColormapEvent xcolormap;
|
jpayne@69
|
998 XClientMessageEvent xclient;
|
jpayne@69
|
999 XMappingEvent xmapping;
|
jpayne@69
|
1000 XErrorEvent xerror;
|
jpayne@69
|
1001 XKeymapEvent xkeymap;
|
jpayne@69
|
1002 XGenericEvent xgeneric;
|
jpayne@69
|
1003 XGenericEventCookie xcookie;
|
jpayne@69
|
1004 long pad[24];
|
jpayne@69
|
1005 } XEvent;
|
jpayne@69
|
1006 #endif
|
jpayne@69
|
1007
|
jpayne@69
|
1008 #define XAllocID(dpy) ((*((_XPrivDisplay)(dpy))->resource_alloc)((dpy)))
|
jpayne@69
|
1009
|
jpayne@69
|
1010 /*
|
jpayne@69
|
1011 * per character font metric information.
|
jpayne@69
|
1012 */
|
jpayne@69
|
1013 typedef struct {
|
jpayne@69
|
1014 short lbearing; /* origin to left edge of raster */
|
jpayne@69
|
1015 short rbearing; /* origin to right edge of raster */
|
jpayne@69
|
1016 short width; /* advance to next char's origin */
|
jpayne@69
|
1017 short ascent; /* baseline to top edge of raster */
|
jpayne@69
|
1018 short descent; /* baseline to bottom edge of raster */
|
jpayne@69
|
1019 unsigned short attributes; /* per char flags (not predefined) */
|
jpayne@69
|
1020 } XCharStruct;
|
jpayne@69
|
1021
|
jpayne@69
|
1022 /*
|
jpayne@69
|
1023 * To allow arbitrary information with fonts, there are additional properties
|
jpayne@69
|
1024 * returned.
|
jpayne@69
|
1025 */
|
jpayne@69
|
1026 typedef struct {
|
jpayne@69
|
1027 Atom name;
|
jpayne@69
|
1028 unsigned long card32;
|
jpayne@69
|
1029 } XFontProp;
|
jpayne@69
|
1030
|
jpayne@69
|
1031 typedef struct {
|
jpayne@69
|
1032 XExtData *ext_data; /* hook for extension to hang data */
|
jpayne@69
|
1033 Font fid; /* Font id for this font */
|
jpayne@69
|
1034 unsigned direction; /* hint about direction the font is painted */
|
jpayne@69
|
1035 unsigned min_char_or_byte2;/* first character */
|
jpayne@69
|
1036 unsigned max_char_or_byte2;/* last character */
|
jpayne@69
|
1037 unsigned min_byte1; /* first row that exists */
|
jpayne@69
|
1038 unsigned max_byte1; /* last row that exists */
|
jpayne@69
|
1039 Bool all_chars_exist;/* flag if all characters have non-zero size*/
|
jpayne@69
|
1040 unsigned default_char; /* char to print for undefined character */
|
jpayne@69
|
1041 int n_properties; /* how many properties there are */
|
jpayne@69
|
1042 XFontProp *properties; /* pointer to array of additional properties*/
|
jpayne@69
|
1043 XCharStruct min_bounds; /* minimum bounds over all existing char*/
|
jpayne@69
|
1044 XCharStruct max_bounds; /* maximum bounds over all existing char*/
|
jpayne@69
|
1045 XCharStruct *per_char; /* first_char to last_char information */
|
jpayne@69
|
1046 int ascent; /* log. extent above baseline for spacing */
|
jpayne@69
|
1047 int descent; /* log. descent below baseline for spacing */
|
jpayne@69
|
1048 } XFontStruct;
|
jpayne@69
|
1049
|
jpayne@69
|
1050 /*
|
jpayne@69
|
1051 * PolyText routines take these as arguments.
|
jpayne@69
|
1052 */
|
jpayne@69
|
1053 typedef struct {
|
jpayne@69
|
1054 char *chars; /* pointer to string */
|
jpayne@69
|
1055 int nchars; /* number of characters */
|
jpayne@69
|
1056 int delta; /* delta between strings */
|
jpayne@69
|
1057 Font font; /* font to print it in, None don't change */
|
jpayne@69
|
1058 } XTextItem;
|
jpayne@69
|
1059
|
jpayne@69
|
1060 typedef struct { /* normal 16 bit characters are two bytes */
|
jpayne@69
|
1061 unsigned char byte1;
|
jpayne@69
|
1062 unsigned char byte2;
|
jpayne@69
|
1063 } XChar2b;
|
jpayne@69
|
1064
|
jpayne@69
|
1065 typedef struct {
|
jpayne@69
|
1066 XChar2b *chars; /* two byte characters */
|
jpayne@69
|
1067 int nchars; /* number of characters */
|
jpayne@69
|
1068 int delta; /* delta between strings */
|
jpayne@69
|
1069 Font font; /* font to print it in, None don't change */
|
jpayne@69
|
1070 } XTextItem16;
|
jpayne@69
|
1071
|
jpayne@69
|
1072
|
jpayne@69
|
1073 typedef union { Display *display;
|
jpayne@69
|
1074 GC gc;
|
jpayne@69
|
1075 Visual *visual;
|
jpayne@69
|
1076 Screen *screen;
|
jpayne@69
|
1077 ScreenFormat *pixmap_format;
|
jpayne@69
|
1078 XFontStruct *font; } XEDataObject;
|
jpayne@69
|
1079
|
jpayne@69
|
1080 typedef struct {
|
jpayne@69
|
1081 XRectangle max_ink_extent;
|
jpayne@69
|
1082 XRectangle max_logical_extent;
|
jpayne@69
|
1083 } XFontSetExtents;
|
jpayne@69
|
1084
|
jpayne@69
|
1085 /* unused:
|
jpayne@69
|
1086 typedef void (*XOMProc)();
|
jpayne@69
|
1087 */
|
jpayne@69
|
1088
|
jpayne@69
|
1089 typedef struct _XOM *XOM;
|
jpayne@69
|
1090 typedef struct _XOC *XOC, *XFontSet;
|
jpayne@69
|
1091
|
jpayne@69
|
1092 typedef struct {
|
jpayne@69
|
1093 char *chars;
|
jpayne@69
|
1094 int nchars;
|
jpayne@69
|
1095 int delta;
|
jpayne@69
|
1096 XFontSet font_set;
|
jpayne@69
|
1097 } XmbTextItem;
|
jpayne@69
|
1098
|
jpayne@69
|
1099 typedef struct {
|
jpayne@69
|
1100 wchar_t *chars;
|
jpayne@69
|
1101 int nchars;
|
jpayne@69
|
1102 int delta;
|
jpayne@69
|
1103 XFontSet font_set;
|
jpayne@69
|
1104 } XwcTextItem;
|
jpayne@69
|
1105
|
jpayne@69
|
1106 #define XNRequiredCharSet "requiredCharSet"
|
jpayne@69
|
1107 #define XNQueryOrientation "queryOrientation"
|
jpayne@69
|
1108 #define XNBaseFontName "baseFontName"
|
jpayne@69
|
1109 #define XNOMAutomatic "omAutomatic"
|
jpayne@69
|
1110 #define XNMissingCharSet "missingCharSet"
|
jpayne@69
|
1111 #define XNDefaultString "defaultString"
|
jpayne@69
|
1112 #define XNOrientation "orientation"
|
jpayne@69
|
1113 #define XNDirectionalDependentDrawing "directionalDependentDrawing"
|
jpayne@69
|
1114 #define XNContextualDrawing "contextualDrawing"
|
jpayne@69
|
1115 #define XNFontInfo "fontInfo"
|
jpayne@69
|
1116
|
jpayne@69
|
1117 typedef struct {
|
jpayne@69
|
1118 int charset_count;
|
jpayne@69
|
1119 char **charset_list;
|
jpayne@69
|
1120 } XOMCharSetList;
|
jpayne@69
|
1121
|
jpayne@69
|
1122 typedef enum {
|
jpayne@69
|
1123 XOMOrientation_LTR_TTB,
|
jpayne@69
|
1124 XOMOrientation_RTL_TTB,
|
jpayne@69
|
1125 XOMOrientation_TTB_LTR,
|
jpayne@69
|
1126 XOMOrientation_TTB_RTL,
|
jpayne@69
|
1127 XOMOrientation_Context
|
jpayne@69
|
1128 } XOrientation;
|
jpayne@69
|
1129
|
jpayne@69
|
1130 typedef struct {
|
jpayne@69
|
1131 int num_orientation;
|
jpayne@69
|
1132 XOrientation *orientation; /* Input Text description */
|
jpayne@69
|
1133 } XOMOrientation;
|
jpayne@69
|
1134
|
jpayne@69
|
1135 typedef struct {
|
jpayne@69
|
1136 int num_font;
|
jpayne@69
|
1137 XFontStruct **font_struct_list;
|
jpayne@69
|
1138 char **font_name_list;
|
jpayne@69
|
1139 } XOMFontInfo;
|
jpayne@69
|
1140
|
jpayne@69
|
1141 typedef struct _XIM *XIM;
|
jpayne@69
|
1142 typedef struct _XIC *XIC;
|
jpayne@69
|
1143
|
jpayne@69
|
1144 typedef void (*XIMProc)(
|
jpayne@69
|
1145 XIM,
|
jpayne@69
|
1146 XPointer,
|
jpayne@69
|
1147 XPointer
|
jpayne@69
|
1148 );
|
jpayne@69
|
1149
|
jpayne@69
|
1150 typedef Bool (*XICProc)(
|
jpayne@69
|
1151 XIC,
|
jpayne@69
|
1152 XPointer,
|
jpayne@69
|
1153 XPointer
|
jpayne@69
|
1154 );
|
jpayne@69
|
1155
|
jpayne@69
|
1156 typedef void (*XIDProc)(
|
jpayne@69
|
1157 Display*,
|
jpayne@69
|
1158 XPointer,
|
jpayne@69
|
1159 XPointer
|
jpayne@69
|
1160 );
|
jpayne@69
|
1161
|
jpayne@69
|
1162 typedef unsigned long XIMStyle;
|
jpayne@69
|
1163
|
jpayne@69
|
1164 typedef struct {
|
jpayne@69
|
1165 unsigned short count_styles;
|
jpayne@69
|
1166 XIMStyle *supported_styles;
|
jpayne@69
|
1167 } XIMStyles;
|
jpayne@69
|
1168
|
jpayne@69
|
1169 #define XIMPreeditArea 0x0001L
|
jpayne@69
|
1170 #define XIMPreeditCallbacks 0x0002L
|
jpayne@69
|
1171 #define XIMPreeditPosition 0x0004L
|
jpayne@69
|
1172 #define XIMPreeditNothing 0x0008L
|
jpayne@69
|
1173 #define XIMPreeditNone 0x0010L
|
jpayne@69
|
1174 #define XIMStatusArea 0x0100L
|
jpayne@69
|
1175 #define XIMStatusCallbacks 0x0200L
|
jpayne@69
|
1176 #define XIMStatusNothing 0x0400L
|
jpayne@69
|
1177 #define XIMStatusNone 0x0800L
|
jpayne@69
|
1178
|
jpayne@69
|
1179 #define XNVaNestedList "XNVaNestedList"
|
jpayne@69
|
1180 #define XNQueryInputStyle "queryInputStyle"
|
jpayne@69
|
1181 #define XNClientWindow "clientWindow"
|
jpayne@69
|
1182 #define XNInputStyle "inputStyle"
|
jpayne@69
|
1183 #define XNFocusWindow "focusWindow"
|
jpayne@69
|
1184 #define XNResourceName "resourceName"
|
jpayne@69
|
1185 #define XNResourceClass "resourceClass"
|
jpayne@69
|
1186 #define XNGeometryCallback "geometryCallback"
|
jpayne@69
|
1187 #define XNDestroyCallback "destroyCallback"
|
jpayne@69
|
1188 #define XNFilterEvents "filterEvents"
|
jpayne@69
|
1189 #define XNPreeditStartCallback "preeditStartCallback"
|
jpayne@69
|
1190 #define XNPreeditDoneCallback "preeditDoneCallback"
|
jpayne@69
|
1191 #define XNPreeditDrawCallback "preeditDrawCallback"
|
jpayne@69
|
1192 #define XNPreeditCaretCallback "preeditCaretCallback"
|
jpayne@69
|
1193 #define XNPreeditStateNotifyCallback "preeditStateNotifyCallback"
|
jpayne@69
|
1194 #define XNPreeditAttributes "preeditAttributes"
|
jpayne@69
|
1195 #define XNStatusStartCallback "statusStartCallback"
|
jpayne@69
|
1196 #define XNStatusDoneCallback "statusDoneCallback"
|
jpayne@69
|
1197 #define XNStatusDrawCallback "statusDrawCallback"
|
jpayne@69
|
1198 #define XNStatusAttributes "statusAttributes"
|
jpayne@69
|
1199 #define XNArea "area"
|
jpayne@69
|
1200 #define XNAreaNeeded "areaNeeded"
|
jpayne@69
|
1201 #define XNSpotLocation "spotLocation"
|
jpayne@69
|
1202 #define XNColormap "colorMap"
|
jpayne@69
|
1203 #define XNStdColormap "stdColorMap"
|
jpayne@69
|
1204 #define XNForeground "foreground"
|
jpayne@69
|
1205 #define XNBackground "background"
|
jpayne@69
|
1206 #define XNBackgroundPixmap "backgroundPixmap"
|
jpayne@69
|
1207 #define XNFontSet "fontSet"
|
jpayne@69
|
1208 #define XNLineSpace "lineSpace"
|
jpayne@69
|
1209 #define XNCursor "cursor"
|
jpayne@69
|
1210
|
jpayne@69
|
1211 #define XNQueryIMValuesList "queryIMValuesList"
|
jpayne@69
|
1212 #define XNQueryICValuesList "queryICValuesList"
|
jpayne@69
|
1213 #define XNVisiblePosition "visiblePosition"
|
jpayne@69
|
1214 #define XNR6PreeditCallback "r6PreeditCallback"
|
jpayne@69
|
1215 #define XNStringConversionCallback "stringConversionCallback"
|
jpayne@69
|
1216 #define XNStringConversion "stringConversion"
|
jpayne@69
|
1217 #define XNResetState "resetState"
|
jpayne@69
|
1218 #define XNHotKey "hotKey"
|
jpayne@69
|
1219 #define XNHotKeyState "hotKeyState"
|
jpayne@69
|
1220 #define XNPreeditState "preeditState"
|
jpayne@69
|
1221 #define XNSeparatorofNestedList "separatorofNestedList"
|
jpayne@69
|
1222
|
jpayne@69
|
1223 #define XBufferOverflow -1
|
jpayne@69
|
1224 #define XLookupNone 1
|
jpayne@69
|
1225 #define XLookupChars 2
|
jpayne@69
|
1226 #define XLookupKeySym 3
|
jpayne@69
|
1227 #define XLookupBoth 4
|
jpayne@69
|
1228
|
jpayne@69
|
1229 typedef void *XVaNestedList;
|
jpayne@69
|
1230
|
jpayne@69
|
1231 typedef struct {
|
jpayne@69
|
1232 XPointer client_data;
|
jpayne@69
|
1233 XIMProc callback;
|
jpayne@69
|
1234 } XIMCallback;
|
jpayne@69
|
1235
|
jpayne@69
|
1236 typedef struct {
|
jpayne@69
|
1237 XPointer client_data;
|
jpayne@69
|
1238 XICProc callback;
|
jpayne@69
|
1239 } XICCallback;
|
jpayne@69
|
1240
|
jpayne@69
|
1241 typedef unsigned long XIMFeedback;
|
jpayne@69
|
1242
|
jpayne@69
|
1243 #define XIMReverse 1L
|
jpayne@69
|
1244 #define XIMUnderline (1L<<1)
|
jpayne@69
|
1245 #define XIMHighlight (1L<<2)
|
jpayne@69
|
1246 #define XIMPrimary (1L<<5)
|
jpayne@69
|
1247 #define XIMSecondary (1L<<6)
|
jpayne@69
|
1248 #define XIMTertiary (1L<<7)
|
jpayne@69
|
1249 #define XIMVisibleToForward (1L<<8)
|
jpayne@69
|
1250 #define XIMVisibleToBackword (1L<<9)
|
jpayne@69
|
1251 #define XIMVisibleToCenter (1L<<10)
|
jpayne@69
|
1252
|
jpayne@69
|
1253 typedef struct _XIMText {
|
jpayne@69
|
1254 unsigned short length;
|
jpayne@69
|
1255 XIMFeedback *feedback;
|
jpayne@69
|
1256 Bool encoding_is_wchar;
|
jpayne@69
|
1257 union {
|
jpayne@69
|
1258 char *multi_byte;
|
jpayne@69
|
1259 wchar_t *wide_char;
|
jpayne@69
|
1260 } string;
|
jpayne@69
|
1261 } XIMText;
|
jpayne@69
|
1262
|
jpayne@69
|
1263 typedef unsigned long XIMPreeditState;
|
jpayne@69
|
1264
|
jpayne@69
|
1265 #define XIMPreeditUnKnown 0L
|
jpayne@69
|
1266 #define XIMPreeditEnable 1L
|
jpayne@69
|
1267 #define XIMPreeditDisable (1L<<1)
|
jpayne@69
|
1268
|
jpayne@69
|
1269 typedef struct _XIMPreeditStateNotifyCallbackStruct {
|
jpayne@69
|
1270 XIMPreeditState state;
|
jpayne@69
|
1271 } XIMPreeditStateNotifyCallbackStruct;
|
jpayne@69
|
1272
|
jpayne@69
|
1273 typedef unsigned long XIMResetState;
|
jpayne@69
|
1274
|
jpayne@69
|
1275 #define XIMInitialState 1L
|
jpayne@69
|
1276 #define XIMPreserveState (1L<<1)
|
jpayne@69
|
1277
|
jpayne@69
|
1278 typedef unsigned long XIMStringConversionFeedback;
|
jpayne@69
|
1279
|
jpayne@69
|
1280 #define XIMStringConversionLeftEdge (0x00000001)
|
jpayne@69
|
1281 #define XIMStringConversionRightEdge (0x00000002)
|
jpayne@69
|
1282 #define XIMStringConversionTopEdge (0x00000004)
|
jpayne@69
|
1283 #define XIMStringConversionBottomEdge (0x00000008)
|
jpayne@69
|
1284 #define XIMStringConversionConcealed (0x00000010)
|
jpayne@69
|
1285 #define XIMStringConversionWrapped (0x00000020)
|
jpayne@69
|
1286
|
jpayne@69
|
1287 typedef struct _XIMStringConversionText {
|
jpayne@69
|
1288 unsigned short length;
|
jpayne@69
|
1289 XIMStringConversionFeedback *feedback;
|
jpayne@69
|
1290 Bool encoding_is_wchar;
|
jpayne@69
|
1291 union {
|
jpayne@69
|
1292 char *mbs;
|
jpayne@69
|
1293 wchar_t *wcs;
|
jpayne@69
|
1294 } string;
|
jpayne@69
|
1295 } XIMStringConversionText;
|
jpayne@69
|
1296
|
jpayne@69
|
1297 typedef unsigned short XIMStringConversionPosition;
|
jpayne@69
|
1298
|
jpayne@69
|
1299 typedef unsigned short XIMStringConversionType;
|
jpayne@69
|
1300
|
jpayne@69
|
1301 #define XIMStringConversionBuffer (0x0001)
|
jpayne@69
|
1302 #define XIMStringConversionLine (0x0002)
|
jpayne@69
|
1303 #define XIMStringConversionWord (0x0003)
|
jpayne@69
|
1304 #define XIMStringConversionChar (0x0004)
|
jpayne@69
|
1305
|
jpayne@69
|
1306 typedef unsigned short XIMStringConversionOperation;
|
jpayne@69
|
1307
|
jpayne@69
|
1308 #define XIMStringConversionSubstitution (0x0001)
|
jpayne@69
|
1309 #define XIMStringConversionRetrieval (0x0002)
|
jpayne@69
|
1310
|
jpayne@69
|
1311 typedef enum {
|
jpayne@69
|
1312 XIMForwardChar, XIMBackwardChar,
|
jpayne@69
|
1313 XIMForwardWord, XIMBackwardWord,
|
jpayne@69
|
1314 XIMCaretUp, XIMCaretDown,
|
jpayne@69
|
1315 XIMNextLine, XIMPreviousLine,
|
jpayne@69
|
1316 XIMLineStart, XIMLineEnd,
|
jpayne@69
|
1317 XIMAbsolutePosition,
|
jpayne@69
|
1318 XIMDontChange
|
jpayne@69
|
1319 } XIMCaretDirection;
|
jpayne@69
|
1320
|
jpayne@69
|
1321 typedef struct _XIMStringConversionCallbackStruct {
|
jpayne@69
|
1322 XIMStringConversionPosition position;
|
jpayne@69
|
1323 XIMCaretDirection direction;
|
jpayne@69
|
1324 XIMStringConversionOperation operation;
|
jpayne@69
|
1325 unsigned short factor;
|
jpayne@69
|
1326 XIMStringConversionText *text;
|
jpayne@69
|
1327 } XIMStringConversionCallbackStruct;
|
jpayne@69
|
1328
|
jpayne@69
|
1329 typedef struct _XIMPreeditDrawCallbackStruct {
|
jpayne@69
|
1330 int caret; /* Cursor offset within pre-edit string */
|
jpayne@69
|
1331 int chg_first; /* Starting change position */
|
jpayne@69
|
1332 int chg_length; /* Length of the change in character count */
|
jpayne@69
|
1333 XIMText *text;
|
jpayne@69
|
1334 } XIMPreeditDrawCallbackStruct;
|
jpayne@69
|
1335
|
jpayne@69
|
1336 typedef enum {
|
jpayne@69
|
1337 XIMIsInvisible, /* Disable caret feedback */
|
jpayne@69
|
1338 XIMIsPrimary, /* UI defined caret feedback */
|
jpayne@69
|
1339 XIMIsSecondary /* UI defined caret feedback */
|
jpayne@69
|
1340 } XIMCaretStyle;
|
jpayne@69
|
1341
|
jpayne@69
|
1342 typedef struct _XIMPreeditCaretCallbackStruct {
|
jpayne@69
|
1343 int position; /* Caret offset within pre-edit string */
|
jpayne@69
|
1344 XIMCaretDirection direction; /* Caret moves direction */
|
jpayne@69
|
1345 XIMCaretStyle style; /* Feedback of the caret */
|
jpayne@69
|
1346 } XIMPreeditCaretCallbackStruct;
|
jpayne@69
|
1347
|
jpayne@69
|
1348 typedef enum {
|
jpayne@69
|
1349 XIMTextType,
|
jpayne@69
|
1350 XIMBitmapType
|
jpayne@69
|
1351 } XIMStatusDataType;
|
jpayne@69
|
1352
|
jpayne@69
|
1353 typedef struct _XIMStatusDrawCallbackStruct {
|
jpayne@69
|
1354 XIMStatusDataType type;
|
jpayne@69
|
1355 union {
|
jpayne@69
|
1356 XIMText *text;
|
jpayne@69
|
1357 Pixmap bitmap;
|
jpayne@69
|
1358 } data;
|
jpayne@69
|
1359 } XIMStatusDrawCallbackStruct;
|
jpayne@69
|
1360
|
jpayne@69
|
1361 typedef struct _XIMHotKeyTrigger {
|
jpayne@69
|
1362 KeySym keysym;
|
jpayne@69
|
1363 int modifier;
|
jpayne@69
|
1364 int modifier_mask;
|
jpayne@69
|
1365 } XIMHotKeyTrigger;
|
jpayne@69
|
1366
|
jpayne@69
|
1367 typedef struct _XIMHotKeyTriggers {
|
jpayne@69
|
1368 int num_hot_key;
|
jpayne@69
|
1369 XIMHotKeyTrigger *key;
|
jpayne@69
|
1370 } XIMHotKeyTriggers;
|
jpayne@69
|
1371
|
jpayne@69
|
1372 typedef unsigned long XIMHotKeyState;
|
jpayne@69
|
1373
|
jpayne@69
|
1374 #define XIMHotKeyStateON (0x0001L)
|
jpayne@69
|
1375 #define XIMHotKeyStateOFF (0x0002L)
|
jpayne@69
|
1376
|
jpayne@69
|
1377 typedef struct {
|
jpayne@69
|
1378 unsigned short count_values;
|
jpayne@69
|
1379 char **supported_values;
|
jpayne@69
|
1380 } XIMValuesList;
|
jpayne@69
|
1381
|
jpayne@69
|
1382 _XFUNCPROTOBEGIN
|
jpayne@69
|
1383
|
jpayne@69
|
1384 #if defined(WIN32) && !defined(_XLIBINT_)
|
jpayne@69
|
1385 #define _Xdebug (*_Xdebug_p)
|
jpayne@69
|
1386 #endif
|
jpayne@69
|
1387
|
jpayne@69
|
1388 extern int _Xdebug;
|
jpayne@69
|
1389
|
jpayne@69
|
1390 extern XFontStruct *XLoadQueryFont(
|
jpayne@69
|
1391 Display* /* display */,
|
jpayne@69
|
1392 _Xconst char* /* name */
|
jpayne@69
|
1393 );
|
jpayne@69
|
1394
|
jpayne@69
|
1395 extern XFontStruct *XQueryFont(
|
jpayne@69
|
1396 Display* /* display */,
|
jpayne@69
|
1397 XID /* font_ID */
|
jpayne@69
|
1398 );
|
jpayne@69
|
1399
|
jpayne@69
|
1400
|
jpayne@69
|
1401 extern XTimeCoord *XGetMotionEvents(
|
jpayne@69
|
1402 Display* /* display */,
|
jpayne@69
|
1403 Window /* w */,
|
jpayne@69
|
1404 Time /* start */,
|
jpayne@69
|
1405 Time /* stop */,
|
jpayne@69
|
1406 int* /* nevents_return */
|
jpayne@69
|
1407 );
|
jpayne@69
|
1408
|
jpayne@69
|
1409 extern XModifierKeymap *XDeleteModifiermapEntry(
|
jpayne@69
|
1410 XModifierKeymap* /* modmap */,
|
jpayne@69
|
1411 #if NeedWidePrototypes
|
jpayne@69
|
1412 unsigned int /* keycode_entry */,
|
jpayne@69
|
1413 #else
|
jpayne@69
|
1414 KeyCode /* keycode_entry */,
|
jpayne@69
|
1415 #endif
|
jpayne@69
|
1416 int /* modifier */
|
jpayne@69
|
1417 );
|
jpayne@69
|
1418
|
jpayne@69
|
1419 extern XModifierKeymap *XGetModifierMapping(
|
jpayne@69
|
1420 Display* /* display */
|
jpayne@69
|
1421 );
|
jpayne@69
|
1422
|
jpayne@69
|
1423 extern XModifierKeymap *XInsertModifiermapEntry(
|
jpayne@69
|
1424 XModifierKeymap* /* modmap */,
|
jpayne@69
|
1425 #if NeedWidePrototypes
|
jpayne@69
|
1426 unsigned int /* keycode_entry */,
|
jpayne@69
|
1427 #else
|
jpayne@69
|
1428 KeyCode /* keycode_entry */,
|
jpayne@69
|
1429 #endif
|
jpayne@69
|
1430 int /* modifier */
|
jpayne@69
|
1431 );
|
jpayne@69
|
1432
|
jpayne@69
|
1433 extern XModifierKeymap *XNewModifiermap(
|
jpayne@69
|
1434 int /* max_keys_per_mod */
|
jpayne@69
|
1435 );
|
jpayne@69
|
1436
|
jpayne@69
|
1437 extern XImage *XCreateImage(
|
jpayne@69
|
1438 Display* /* display */,
|
jpayne@69
|
1439 Visual* /* visual */,
|
jpayne@69
|
1440 unsigned int /* depth */,
|
jpayne@69
|
1441 int /* format */,
|
jpayne@69
|
1442 int /* offset */,
|
jpayne@69
|
1443 char* /* data */,
|
jpayne@69
|
1444 unsigned int /* width */,
|
jpayne@69
|
1445 unsigned int /* height */,
|
jpayne@69
|
1446 int /* bitmap_pad */,
|
jpayne@69
|
1447 int /* bytes_per_line */
|
jpayne@69
|
1448 );
|
jpayne@69
|
1449 extern Status XInitImage(
|
jpayne@69
|
1450 XImage* /* image */
|
jpayne@69
|
1451 );
|
jpayne@69
|
1452 extern XImage *XGetImage(
|
jpayne@69
|
1453 Display* /* display */,
|
jpayne@69
|
1454 Drawable /* d */,
|
jpayne@69
|
1455 int /* x */,
|
jpayne@69
|
1456 int /* y */,
|
jpayne@69
|
1457 unsigned int /* width */,
|
jpayne@69
|
1458 unsigned int /* height */,
|
jpayne@69
|
1459 unsigned long /* plane_mask */,
|
jpayne@69
|
1460 int /* format */
|
jpayne@69
|
1461 );
|
jpayne@69
|
1462 extern XImage *XGetSubImage(
|
jpayne@69
|
1463 Display* /* display */,
|
jpayne@69
|
1464 Drawable /* d */,
|
jpayne@69
|
1465 int /* x */,
|
jpayne@69
|
1466 int /* y */,
|
jpayne@69
|
1467 unsigned int /* width */,
|
jpayne@69
|
1468 unsigned int /* height */,
|
jpayne@69
|
1469 unsigned long /* plane_mask */,
|
jpayne@69
|
1470 int /* format */,
|
jpayne@69
|
1471 XImage* /* dest_image */,
|
jpayne@69
|
1472 int /* dest_x */,
|
jpayne@69
|
1473 int /* dest_y */
|
jpayne@69
|
1474 );
|
jpayne@69
|
1475
|
jpayne@69
|
1476 /*
|
jpayne@69
|
1477 * X function declarations.
|
jpayne@69
|
1478 */
|
jpayne@69
|
1479 extern Display *XOpenDisplay(
|
jpayne@69
|
1480 _Xconst char* /* display_name */
|
jpayne@69
|
1481 );
|
jpayne@69
|
1482
|
jpayne@69
|
1483 extern void XrmInitialize(
|
jpayne@69
|
1484 void
|
jpayne@69
|
1485 );
|
jpayne@69
|
1486
|
jpayne@69
|
1487 extern char *XFetchBytes(
|
jpayne@69
|
1488 Display* /* display */,
|
jpayne@69
|
1489 int* /* nbytes_return */
|
jpayne@69
|
1490 );
|
jpayne@69
|
1491 extern char *XFetchBuffer(
|
jpayne@69
|
1492 Display* /* display */,
|
jpayne@69
|
1493 int* /* nbytes_return */,
|
jpayne@69
|
1494 int /* buffer */
|
jpayne@69
|
1495 );
|
jpayne@69
|
1496 extern char *XGetAtomName(
|
jpayne@69
|
1497 Display* /* display */,
|
jpayne@69
|
1498 Atom /* atom */
|
jpayne@69
|
1499 );
|
jpayne@69
|
1500 extern Status XGetAtomNames(
|
jpayne@69
|
1501 Display* /* dpy */,
|
jpayne@69
|
1502 Atom* /* atoms */,
|
jpayne@69
|
1503 int /* count */,
|
jpayne@69
|
1504 char** /* names_return */
|
jpayne@69
|
1505 );
|
jpayne@69
|
1506 extern char *XGetDefault(
|
jpayne@69
|
1507 Display* /* display */,
|
jpayne@69
|
1508 _Xconst char* /* program */,
|
jpayne@69
|
1509 _Xconst char* /* option */
|
jpayne@69
|
1510 );
|
jpayne@69
|
1511 extern char *XDisplayName(
|
jpayne@69
|
1512 _Xconst char* /* string */
|
jpayne@69
|
1513 );
|
jpayne@69
|
1514 extern char *XKeysymToString(
|
jpayne@69
|
1515 KeySym /* keysym */
|
jpayne@69
|
1516 );
|
jpayne@69
|
1517
|
jpayne@69
|
1518 extern int (*XSynchronize(
|
jpayne@69
|
1519 Display* /* display */,
|
jpayne@69
|
1520 Bool /* onoff */
|
jpayne@69
|
1521 ))(
|
jpayne@69
|
1522 Display* /* display */
|
jpayne@69
|
1523 );
|
jpayne@69
|
1524 extern int (*XSetAfterFunction(
|
jpayne@69
|
1525 Display* /* display */,
|
jpayne@69
|
1526 int (*) (
|
jpayne@69
|
1527 Display* /* display */
|
jpayne@69
|
1528 ) /* procedure */
|
jpayne@69
|
1529 ))(
|
jpayne@69
|
1530 Display* /* display */
|
jpayne@69
|
1531 );
|
jpayne@69
|
1532 extern Atom XInternAtom(
|
jpayne@69
|
1533 Display* /* display */,
|
jpayne@69
|
1534 _Xconst char* /* atom_name */,
|
jpayne@69
|
1535 Bool /* only_if_exists */
|
jpayne@69
|
1536 );
|
jpayne@69
|
1537 extern Status XInternAtoms(
|
jpayne@69
|
1538 Display* /* dpy */,
|
jpayne@69
|
1539 char** /* names */,
|
jpayne@69
|
1540 int /* count */,
|
jpayne@69
|
1541 Bool /* onlyIfExists */,
|
jpayne@69
|
1542 Atom* /* atoms_return */
|
jpayne@69
|
1543 );
|
jpayne@69
|
1544 extern Colormap XCopyColormapAndFree(
|
jpayne@69
|
1545 Display* /* display */,
|
jpayne@69
|
1546 Colormap /* colormap */
|
jpayne@69
|
1547 );
|
jpayne@69
|
1548 extern Colormap XCreateColormap(
|
jpayne@69
|
1549 Display* /* display */,
|
jpayne@69
|
1550 Window /* w */,
|
jpayne@69
|
1551 Visual* /* visual */,
|
jpayne@69
|
1552 int /* alloc */
|
jpayne@69
|
1553 );
|
jpayne@69
|
1554 extern Cursor XCreatePixmapCursor(
|
jpayne@69
|
1555 Display* /* display */,
|
jpayne@69
|
1556 Pixmap /* source */,
|
jpayne@69
|
1557 Pixmap /* mask */,
|
jpayne@69
|
1558 XColor* /* foreground_color */,
|
jpayne@69
|
1559 XColor* /* background_color */,
|
jpayne@69
|
1560 unsigned int /* x */,
|
jpayne@69
|
1561 unsigned int /* y */
|
jpayne@69
|
1562 );
|
jpayne@69
|
1563 extern Cursor XCreateGlyphCursor(
|
jpayne@69
|
1564 Display* /* display */,
|
jpayne@69
|
1565 Font /* source_font */,
|
jpayne@69
|
1566 Font /* mask_font */,
|
jpayne@69
|
1567 unsigned int /* source_char */,
|
jpayne@69
|
1568 unsigned int /* mask_char */,
|
jpayne@69
|
1569 XColor _Xconst * /* foreground_color */,
|
jpayne@69
|
1570 XColor _Xconst * /* background_color */
|
jpayne@69
|
1571 );
|
jpayne@69
|
1572 extern Cursor XCreateFontCursor(
|
jpayne@69
|
1573 Display* /* display */,
|
jpayne@69
|
1574 unsigned int /* shape */
|
jpayne@69
|
1575 );
|
jpayne@69
|
1576 extern Font XLoadFont(
|
jpayne@69
|
1577 Display* /* display */,
|
jpayne@69
|
1578 _Xconst char* /* name */
|
jpayne@69
|
1579 );
|
jpayne@69
|
1580 extern GC XCreateGC(
|
jpayne@69
|
1581 Display* /* display */,
|
jpayne@69
|
1582 Drawable /* d */,
|
jpayne@69
|
1583 unsigned long /* valuemask */,
|
jpayne@69
|
1584 XGCValues* /* values */
|
jpayne@69
|
1585 );
|
jpayne@69
|
1586 extern GContext XGContextFromGC(
|
jpayne@69
|
1587 GC /* gc */
|
jpayne@69
|
1588 );
|
jpayne@69
|
1589 extern void XFlushGC(
|
jpayne@69
|
1590 Display* /* display */,
|
jpayne@69
|
1591 GC /* gc */
|
jpayne@69
|
1592 );
|
jpayne@69
|
1593 extern Pixmap XCreatePixmap(
|
jpayne@69
|
1594 Display* /* display */,
|
jpayne@69
|
1595 Drawable /* d */,
|
jpayne@69
|
1596 unsigned int /* width */,
|
jpayne@69
|
1597 unsigned int /* height */,
|
jpayne@69
|
1598 unsigned int /* depth */
|
jpayne@69
|
1599 );
|
jpayne@69
|
1600 extern Pixmap XCreateBitmapFromData(
|
jpayne@69
|
1601 Display* /* display */,
|
jpayne@69
|
1602 Drawable /* d */,
|
jpayne@69
|
1603 _Xconst char* /* data */,
|
jpayne@69
|
1604 unsigned int /* width */,
|
jpayne@69
|
1605 unsigned int /* height */
|
jpayne@69
|
1606 );
|
jpayne@69
|
1607 extern Pixmap XCreatePixmapFromBitmapData(
|
jpayne@69
|
1608 Display* /* display */,
|
jpayne@69
|
1609 Drawable /* d */,
|
jpayne@69
|
1610 char* /* data */,
|
jpayne@69
|
1611 unsigned int /* width */,
|
jpayne@69
|
1612 unsigned int /* height */,
|
jpayne@69
|
1613 unsigned long /* fg */,
|
jpayne@69
|
1614 unsigned long /* bg */,
|
jpayne@69
|
1615 unsigned int /* depth */
|
jpayne@69
|
1616 );
|
jpayne@69
|
1617 extern Window XCreateSimpleWindow(
|
jpayne@69
|
1618 Display* /* display */,
|
jpayne@69
|
1619 Window /* parent */,
|
jpayne@69
|
1620 int /* x */,
|
jpayne@69
|
1621 int /* y */,
|
jpayne@69
|
1622 unsigned int /* width */,
|
jpayne@69
|
1623 unsigned int /* height */,
|
jpayne@69
|
1624 unsigned int /* border_width */,
|
jpayne@69
|
1625 unsigned long /* border */,
|
jpayne@69
|
1626 unsigned long /* background */
|
jpayne@69
|
1627 );
|
jpayne@69
|
1628 extern Window XGetSelectionOwner(
|
jpayne@69
|
1629 Display* /* display */,
|
jpayne@69
|
1630 Atom /* selection */
|
jpayne@69
|
1631 );
|
jpayne@69
|
1632 extern Window XCreateWindow(
|
jpayne@69
|
1633 Display* /* display */,
|
jpayne@69
|
1634 Window /* parent */,
|
jpayne@69
|
1635 int /* x */,
|
jpayne@69
|
1636 int /* y */,
|
jpayne@69
|
1637 unsigned int /* width */,
|
jpayne@69
|
1638 unsigned int /* height */,
|
jpayne@69
|
1639 unsigned int /* border_width */,
|
jpayne@69
|
1640 int /* depth */,
|
jpayne@69
|
1641 unsigned int /* class */,
|
jpayne@69
|
1642 Visual* /* visual */,
|
jpayne@69
|
1643 unsigned long /* valuemask */,
|
jpayne@69
|
1644 XSetWindowAttributes* /* attributes */
|
jpayne@69
|
1645 );
|
jpayne@69
|
1646 extern Colormap *XListInstalledColormaps(
|
jpayne@69
|
1647 Display* /* display */,
|
jpayne@69
|
1648 Window /* w */,
|
jpayne@69
|
1649 int* /* num_return */
|
jpayne@69
|
1650 );
|
jpayne@69
|
1651 extern char **XListFonts(
|
jpayne@69
|
1652 Display* /* display */,
|
jpayne@69
|
1653 _Xconst char* /* pattern */,
|
jpayne@69
|
1654 int /* maxnames */,
|
jpayne@69
|
1655 int* /* actual_count_return */
|
jpayne@69
|
1656 );
|
jpayne@69
|
1657 extern char **XListFontsWithInfo(
|
jpayne@69
|
1658 Display* /* display */,
|
jpayne@69
|
1659 _Xconst char* /* pattern */,
|
jpayne@69
|
1660 int /* maxnames */,
|
jpayne@69
|
1661 int* /* count_return */,
|
jpayne@69
|
1662 XFontStruct** /* info_return */
|
jpayne@69
|
1663 );
|
jpayne@69
|
1664 extern char **XGetFontPath(
|
jpayne@69
|
1665 Display* /* display */,
|
jpayne@69
|
1666 int* /* npaths_return */
|
jpayne@69
|
1667 );
|
jpayne@69
|
1668 extern char **XListExtensions(
|
jpayne@69
|
1669 Display* /* display */,
|
jpayne@69
|
1670 int* /* nextensions_return */
|
jpayne@69
|
1671 );
|
jpayne@69
|
1672 extern Atom *XListProperties(
|
jpayne@69
|
1673 Display* /* display */,
|
jpayne@69
|
1674 Window /* w */,
|
jpayne@69
|
1675 int* /* num_prop_return */
|
jpayne@69
|
1676 );
|
jpayne@69
|
1677 extern XHostAddress *XListHosts(
|
jpayne@69
|
1678 Display* /* display */,
|
jpayne@69
|
1679 int* /* nhosts_return */,
|
jpayne@69
|
1680 Bool* /* state_return */
|
jpayne@69
|
1681 );
|
jpayne@69
|
1682 _X_DEPRECATED
|
jpayne@69
|
1683 extern KeySym XKeycodeToKeysym(
|
jpayne@69
|
1684 Display* /* display */,
|
jpayne@69
|
1685 #if NeedWidePrototypes
|
jpayne@69
|
1686 unsigned int /* keycode */,
|
jpayne@69
|
1687 #else
|
jpayne@69
|
1688 KeyCode /* keycode */,
|
jpayne@69
|
1689 #endif
|
jpayne@69
|
1690 int /* index */
|
jpayne@69
|
1691 );
|
jpayne@69
|
1692 extern KeySym XLookupKeysym(
|
jpayne@69
|
1693 XKeyEvent* /* key_event */,
|
jpayne@69
|
1694 int /* index */
|
jpayne@69
|
1695 );
|
jpayne@69
|
1696 extern KeySym *XGetKeyboardMapping(
|
jpayne@69
|
1697 Display* /* display */,
|
jpayne@69
|
1698 #if NeedWidePrototypes
|
jpayne@69
|
1699 unsigned int /* first_keycode */,
|
jpayne@69
|
1700 #else
|
jpayne@69
|
1701 KeyCode /* first_keycode */,
|
jpayne@69
|
1702 #endif
|
jpayne@69
|
1703 int /* keycode_count */,
|
jpayne@69
|
1704 int* /* keysyms_per_keycode_return */
|
jpayne@69
|
1705 );
|
jpayne@69
|
1706 extern KeySym XStringToKeysym(
|
jpayne@69
|
1707 _Xconst char* /* string */
|
jpayne@69
|
1708 );
|
jpayne@69
|
1709 extern long XMaxRequestSize(
|
jpayne@69
|
1710 Display* /* display */
|
jpayne@69
|
1711 );
|
jpayne@69
|
1712 extern long XExtendedMaxRequestSize(
|
jpayne@69
|
1713 Display* /* display */
|
jpayne@69
|
1714 );
|
jpayne@69
|
1715 extern char *XResourceManagerString(
|
jpayne@69
|
1716 Display* /* display */
|
jpayne@69
|
1717 );
|
jpayne@69
|
1718 extern char *XScreenResourceString(
|
jpayne@69
|
1719 Screen* /* screen */
|
jpayne@69
|
1720 );
|
jpayne@69
|
1721 extern unsigned long XDisplayMotionBufferSize(
|
jpayne@69
|
1722 Display* /* display */
|
jpayne@69
|
1723 );
|
jpayne@69
|
1724 extern VisualID XVisualIDFromVisual(
|
jpayne@69
|
1725 Visual* /* visual */
|
jpayne@69
|
1726 );
|
jpayne@69
|
1727
|
jpayne@69
|
1728 /* multithread routines */
|
jpayne@69
|
1729
|
jpayne@69
|
1730 extern Status XInitThreads(
|
jpayne@69
|
1731 void
|
jpayne@69
|
1732 );
|
jpayne@69
|
1733
|
jpayne@69
|
1734 extern Status XFreeThreads(
|
jpayne@69
|
1735 void
|
jpayne@69
|
1736 );
|
jpayne@69
|
1737
|
jpayne@69
|
1738 extern void XLockDisplay(
|
jpayne@69
|
1739 Display* /* display */
|
jpayne@69
|
1740 );
|
jpayne@69
|
1741
|
jpayne@69
|
1742 extern void XUnlockDisplay(
|
jpayne@69
|
1743 Display* /* display */
|
jpayne@69
|
1744 );
|
jpayne@69
|
1745
|
jpayne@69
|
1746 /* routines for dealing with extensions */
|
jpayne@69
|
1747
|
jpayne@69
|
1748 extern XExtCodes *XInitExtension(
|
jpayne@69
|
1749 Display* /* display */,
|
jpayne@69
|
1750 _Xconst char* /* name */
|
jpayne@69
|
1751 );
|
jpayne@69
|
1752
|
jpayne@69
|
1753 extern XExtCodes *XAddExtension(
|
jpayne@69
|
1754 Display* /* display */
|
jpayne@69
|
1755 );
|
jpayne@69
|
1756 extern XExtData *XFindOnExtensionList(
|
jpayne@69
|
1757 XExtData** /* structure */,
|
jpayne@69
|
1758 int /* number */
|
jpayne@69
|
1759 );
|
jpayne@69
|
1760 extern XExtData **XEHeadOfExtensionList(
|
jpayne@69
|
1761 XEDataObject /* object */
|
jpayne@69
|
1762 );
|
jpayne@69
|
1763
|
jpayne@69
|
1764 /* these are routines for which there are also macros */
|
jpayne@69
|
1765 extern Window XRootWindow(
|
jpayne@69
|
1766 Display* /* display */,
|
jpayne@69
|
1767 int /* screen_number */
|
jpayne@69
|
1768 );
|
jpayne@69
|
1769 extern Window XDefaultRootWindow(
|
jpayne@69
|
1770 Display* /* display */
|
jpayne@69
|
1771 );
|
jpayne@69
|
1772 extern Window XRootWindowOfScreen(
|
jpayne@69
|
1773 Screen* /* screen */
|
jpayne@69
|
1774 );
|
jpayne@69
|
1775 extern Visual *XDefaultVisual(
|
jpayne@69
|
1776 Display* /* display */,
|
jpayne@69
|
1777 int /* screen_number */
|
jpayne@69
|
1778 );
|
jpayne@69
|
1779 extern Visual *XDefaultVisualOfScreen(
|
jpayne@69
|
1780 Screen* /* screen */
|
jpayne@69
|
1781 );
|
jpayne@69
|
1782 extern GC XDefaultGC(
|
jpayne@69
|
1783 Display* /* display */,
|
jpayne@69
|
1784 int /* screen_number */
|
jpayne@69
|
1785 );
|
jpayne@69
|
1786 extern GC XDefaultGCOfScreen(
|
jpayne@69
|
1787 Screen* /* screen */
|
jpayne@69
|
1788 );
|
jpayne@69
|
1789 extern unsigned long XBlackPixel(
|
jpayne@69
|
1790 Display* /* display */,
|
jpayne@69
|
1791 int /* screen_number */
|
jpayne@69
|
1792 );
|
jpayne@69
|
1793 extern unsigned long XWhitePixel(
|
jpayne@69
|
1794 Display* /* display */,
|
jpayne@69
|
1795 int /* screen_number */
|
jpayne@69
|
1796 );
|
jpayne@69
|
1797 extern unsigned long XAllPlanes(
|
jpayne@69
|
1798 void
|
jpayne@69
|
1799 );
|
jpayne@69
|
1800 extern unsigned long XBlackPixelOfScreen(
|
jpayne@69
|
1801 Screen* /* screen */
|
jpayne@69
|
1802 );
|
jpayne@69
|
1803 extern unsigned long XWhitePixelOfScreen(
|
jpayne@69
|
1804 Screen* /* screen */
|
jpayne@69
|
1805 );
|
jpayne@69
|
1806 extern unsigned long XNextRequest(
|
jpayne@69
|
1807 Display* /* display */
|
jpayne@69
|
1808 );
|
jpayne@69
|
1809 extern unsigned long XLastKnownRequestProcessed(
|
jpayne@69
|
1810 Display* /* display */
|
jpayne@69
|
1811 );
|
jpayne@69
|
1812 extern char *XServerVendor(
|
jpayne@69
|
1813 Display* /* display */
|
jpayne@69
|
1814 );
|
jpayne@69
|
1815 extern char *XDisplayString(
|
jpayne@69
|
1816 Display* /* display */
|
jpayne@69
|
1817 );
|
jpayne@69
|
1818 extern Colormap XDefaultColormap(
|
jpayne@69
|
1819 Display* /* display */,
|
jpayne@69
|
1820 int /* screen_number */
|
jpayne@69
|
1821 );
|
jpayne@69
|
1822 extern Colormap XDefaultColormapOfScreen(
|
jpayne@69
|
1823 Screen* /* screen */
|
jpayne@69
|
1824 );
|
jpayne@69
|
1825 extern Display *XDisplayOfScreen(
|
jpayne@69
|
1826 Screen* /* screen */
|
jpayne@69
|
1827 );
|
jpayne@69
|
1828 extern Screen *XScreenOfDisplay(
|
jpayne@69
|
1829 Display* /* display */,
|
jpayne@69
|
1830 int /* screen_number */
|
jpayne@69
|
1831 );
|
jpayne@69
|
1832 extern Screen *XDefaultScreenOfDisplay(
|
jpayne@69
|
1833 Display* /* display */
|
jpayne@69
|
1834 );
|
jpayne@69
|
1835 extern long XEventMaskOfScreen(
|
jpayne@69
|
1836 Screen* /* screen */
|
jpayne@69
|
1837 );
|
jpayne@69
|
1838
|
jpayne@69
|
1839 extern int XScreenNumberOfScreen(
|
jpayne@69
|
1840 Screen* /* screen */
|
jpayne@69
|
1841 );
|
jpayne@69
|
1842
|
jpayne@69
|
1843 typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */
|
jpayne@69
|
1844 Display* /* display */,
|
jpayne@69
|
1845 XErrorEvent* /* error_event */
|
jpayne@69
|
1846 );
|
jpayne@69
|
1847
|
jpayne@69
|
1848 extern XErrorHandler XSetErrorHandler (
|
jpayne@69
|
1849 XErrorHandler /* handler */
|
jpayne@69
|
1850 );
|
jpayne@69
|
1851
|
jpayne@69
|
1852
|
jpayne@69
|
1853 typedef int (*XIOErrorHandler) ( /* WARNING, this type not in Xlib spec */
|
jpayne@69
|
1854 Display* /* display */
|
jpayne@69
|
1855 );
|
jpayne@69
|
1856
|
jpayne@69
|
1857 extern XIOErrorHandler XSetIOErrorHandler (
|
jpayne@69
|
1858 XIOErrorHandler /* handler */
|
jpayne@69
|
1859 );
|
jpayne@69
|
1860
|
jpayne@69
|
1861 typedef void (*XIOErrorExitHandler) ( /* WARNING, this type not in Xlib spec */
|
jpayne@69
|
1862 Display*, /* display */
|
jpayne@69
|
1863 void* /* user_data */
|
jpayne@69
|
1864 );
|
jpayne@69
|
1865
|
jpayne@69
|
1866 extern void XSetIOErrorExitHandler (
|
jpayne@69
|
1867 Display*, /* display */
|
jpayne@69
|
1868 XIOErrorExitHandler, /* handler */
|
jpayne@69
|
1869 void* /* user_data */
|
jpayne@69
|
1870 );
|
jpayne@69
|
1871
|
jpayne@69
|
1872 extern XPixmapFormatValues *XListPixmapFormats(
|
jpayne@69
|
1873 Display* /* display */,
|
jpayne@69
|
1874 int* /* count_return */
|
jpayne@69
|
1875 );
|
jpayne@69
|
1876 extern int *XListDepths(
|
jpayne@69
|
1877 Display* /* display */,
|
jpayne@69
|
1878 int /* screen_number */,
|
jpayne@69
|
1879 int* /* count_return */
|
jpayne@69
|
1880 );
|
jpayne@69
|
1881
|
jpayne@69
|
1882 /* ICCCM routines for things that don't require special include files; */
|
jpayne@69
|
1883 /* other declarations are given in Xutil.h */
|
jpayne@69
|
1884 extern Status XReconfigureWMWindow(
|
jpayne@69
|
1885 Display* /* display */,
|
jpayne@69
|
1886 Window /* w */,
|
jpayne@69
|
1887 int /* screen_number */,
|
jpayne@69
|
1888 unsigned int /* mask */,
|
jpayne@69
|
1889 XWindowChanges* /* changes */
|
jpayne@69
|
1890 );
|
jpayne@69
|
1891
|
jpayne@69
|
1892 extern Status XGetWMProtocols(
|
jpayne@69
|
1893 Display* /* display */,
|
jpayne@69
|
1894 Window /* w */,
|
jpayne@69
|
1895 Atom** /* protocols_return */,
|
jpayne@69
|
1896 int* /* count_return */
|
jpayne@69
|
1897 );
|
jpayne@69
|
1898 extern Status XSetWMProtocols(
|
jpayne@69
|
1899 Display* /* display */,
|
jpayne@69
|
1900 Window /* w */,
|
jpayne@69
|
1901 Atom* /* protocols */,
|
jpayne@69
|
1902 int /* count */
|
jpayne@69
|
1903 );
|
jpayne@69
|
1904 extern Status XIconifyWindow(
|
jpayne@69
|
1905 Display* /* display */,
|
jpayne@69
|
1906 Window /* w */,
|
jpayne@69
|
1907 int /* screen_number */
|
jpayne@69
|
1908 );
|
jpayne@69
|
1909 extern Status XWithdrawWindow(
|
jpayne@69
|
1910 Display* /* display */,
|
jpayne@69
|
1911 Window /* w */,
|
jpayne@69
|
1912 int /* screen_number */
|
jpayne@69
|
1913 );
|
jpayne@69
|
1914 extern Status XGetCommand(
|
jpayne@69
|
1915 Display* /* display */,
|
jpayne@69
|
1916 Window /* w */,
|
jpayne@69
|
1917 char*** /* argv_return */,
|
jpayne@69
|
1918 int* /* argc_return */
|
jpayne@69
|
1919 );
|
jpayne@69
|
1920 extern Status XGetWMColormapWindows(
|
jpayne@69
|
1921 Display* /* display */,
|
jpayne@69
|
1922 Window /* w */,
|
jpayne@69
|
1923 Window** /* windows_return */,
|
jpayne@69
|
1924 int* /* count_return */
|
jpayne@69
|
1925 );
|
jpayne@69
|
1926 extern Status XSetWMColormapWindows(
|
jpayne@69
|
1927 Display* /* display */,
|
jpayne@69
|
1928 Window /* w */,
|
jpayne@69
|
1929 Window* /* colormap_windows */,
|
jpayne@69
|
1930 int /* count */
|
jpayne@69
|
1931 );
|
jpayne@69
|
1932 extern void XFreeStringList(
|
jpayne@69
|
1933 char** /* list */
|
jpayne@69
|
1934 );
|
jpayne@69
|
1935 extern int XSetTransientForHint(
|
jpayne@69
|
1936 Display* /* display */,
|
jpayne@69
|
1937 Window /* w */,
|
jpayne@69
|
1938 Window /* prop_window */
|
jpayne@69
|
1939 );
|
jpayne@69
|
1940
|
jpayne@69
|
1941 /* The following are given in alphabetical order */
|
jpayne@69
|
1942
|
jpayne@69
|
1943 extern int XActivateScreenSaver(
|
jpayne@69
|
1944 Display* /* display */
|
jpayne@69
|
1945 );
|
jpayne@69
|
1946
|
jpayne@69
|
1947 extern int XAddHost(
|
jpayne@69
|
1948 Display* /* display */,
|
jpayne@69
|
1949 XHostAddress* /* host */
|
jpayne@69
|
1950 );
|
jpayne@69
|
1951
|
jpayne@69
|
1952 extern int XAddHosts(
|
jpayne@69
|
1953 Display* /* display */,
|
jpayne@69
|
1954 XHostAddress* /* hosts */,
|
jpayne@69
|
1955 int /* num_hosts */
|
jpayne@69
|
1956 );
|
jpayne@69
|
1957
|
jpayne@69
|
1958 extern int XAddToExtensionList(
|
jpayne@69
|
1959 struct _XExtData** /* structure */,
|
jpayne@69
|
1960 XExtData* /* ext_data */
|
jpayne@69
|
1961 );
|
jpayne@69
|
1962
|
jpayne@69
|
1963 extern int XAddToSaveSet(
|
jpayne@69
|
1964 Display* /* display */,
|
jpayne@69
|
1965 Window /* w */
|
jpayne@69
|
1966 );
|
jpayne@69
|
1967
|
jpayne@69
|
1968 extern Status XAllocColor(
|
jpayne@69
|
1969 Display* /* display */,
|
jpayne@69
|
1970 Colormap /* colormap */,
|
jpayne@69
|
1971 XColor* /* screen_in_out */
|
jpayne@69
|
1972 );
|
jpayne@69
|
1973
|
jpayne@69
|
1974 extern Status XAllocColorCells(
|
jpayne@69
|
1975 Display* /* display */,
|
jpayne@69
|
1976 Colormap /* colormap */,
|
jpayne@69
|
1977 Bool /* contig */,
|
jpayne@69
|
1978 unsigned long* /* plane_masks_return */,
|
jpayne@69
|
1979 unsigned int /* nplanes */,
|
jpayne@69
|
1980 unsigned long* /* pixels_return */,
|
jpayne@69
|
1981 unsigned int /* npixels */
|
jpayne@69
|
1982 );
|
jpayne@69
|
1983
|
jpayne@69
|
1984 extern Status XAllocColorPlanes(
|
jpayne@69
|
1985 Display* /* display */,
|
jpayne@69
|
1986 Colormap /* colormap */,
|
jpayne@69
|
1987 Bool /* contig */,
|
jpayne@69
|
1988 unsigned long* /* pixels_return */,
|
jpayne@69
|
1989 int /* ncolors */,
|
jpayne@69
|
1990 int /* nreds */,
|
jpayne@69
|
1991 int /* ngreens */,
|
jpayne@69
|
1992 int /* nblues */,
|
jpayne@69
|
1993 unsigned long* /* rmask_return */,
|
jpayne@69
|
1994 unsigned long* /* gmask_return */,
|
jpayne@69
|
1995 unsigned long* /* bmask_return */
|
jpayne@69
|
1996 );
|
jpayne@69
|
1997
|
jpayne@69
|
1998 extern Status XAllocNamedColor(
|
jpayne@69
|
1999 Display* /* display */,
|
jpayne@69
|
2000 Colormap /* colormap */,
|
jpayne@69
|
2001 _Xconst char* /* color_name */,
|
jpayne@69
|
2002 XColor* /* screen_def_return */,
|
jpayne@69
|
2003 XColor* /* exact_def_return */
|
jpayne@69
|
2004 );
|
jpayne@69
|
2005
|
jpayne@69
|
2006 extern int XAllowEvents(
|
jpayne@69
|
2007 Display* /* display */,
|
jpayne@69
|
2008 int /* event_mode */,
|
jpayne@69
|
2009 Time /* time */
|
jpayne@69
|
2010 );
|
jpayne@69
|
2011
|
jpayne@69
|
2012 extern int XAutoRepeatOff(
|
jpayne@69
|
2013 Display* /* display */
|
jpayne@69
|
2014 );
|
jpayne@69
|
2015
|
jpayne@69
|
2016 extern int XAutoRepeatOn(
|
jpayne@69
|
2017 Display* /* display */
|
jpayne@69
|
2018 );
|
jpayne@69
|
2019
|
jpayne@69
|
2020 extern int XBell(
|
jpayne@69
|
2021 Display* /* display */,
|
jpayne@69
|
2022 int /* percent */
|
jpayne@69
|
2023 );
|
jpayne@69
|
2024
|
jpayne@69
|
2025 extern int XBitmapBitOrder(
|
jpayne@69
|
2026 Display* /* display */
|
jpayne@69
|
2027 );
|
jpayne@69
|
2028
|
jpayne@69
|
2029 extern int XBitmapPad(
|
jpayne@69
|
2030 Display* /* display */
|
jpayne@69
|
2031 );
|
jpayne@69
|
2032
|
jpayne@69
|
2033 extern int XBitmapUnit(
|
jpayne@69
|
2034 Display* /* display */
|
jpayne@69
|
2035 );
|
jpayne@69
|
2036
|
jpayne@69
|
2037 extern int XCellsOfScreen(
|
jpayne@69
|
2038 Screen* /* screen */
|
jpayne@69
|
2039 );
|
jpayne@69
|
2040
|
jpayne@69
|
2041 extern int XChangeActivePointerGrab(
|
jpayne@69
|
2042 Display* /* display */,
|
jpayne@69
|
2043 unsigned int /* event_mask */,
|
jpayne@69
|
2044 Cursor /* cursor */,
|
jpayne@69
|
2045 Time /* time */
|
jpayne@69
|
2046 );
|
jpayne@69
|
2047
|
jpayne@69
|
2048 extern int XChangeGC(
|
jpayne@69
|
2049 Display* /* display */,
|
jpayne@69
|
2050 GC /* gc */,
|
jpayne@69
|
2051 unsigned long /* valuemask */,
|
jpayne@69
|
2052 XGCValues* /* values */
|
jpayne@69
|
2053 );
|
jpayne@69
|
2054
|
jpayne@69
|
2055 extern int XChangeKeyboardControl(
|
jpayne@69
|
2056 Display* /* display */,
|
jpayne@69
|
2057 unsigned long /* value_mask */,
|
jpayne@69
|
2058 XKeyboardControl* /* values */
|
jpayne@69
|
2059 );
|
jpayne@69
|
2060
|
jpayne@69
|
2061 extern int XChangeKeyboardMapping(
|
jpayne@69
|
2062 Display* /* display */,
|
jpayne@69
|
2063 int /* first_keycode */,
|
jpayne@69
|
2064 int /* keysyms_per_keycode */,
|
jpayne@69
|
2065 KeySym* /* keysyms */,
|
jpayne@69
|
2066 int /* num_codes */
|
jpayne@69
|
2067 );
|
jpayne@69
|
2068
|
jpayne@69
|
2069 extern int XChangePointerControl(
|
jpayne@69
|
2070 Display* /* display */,
|
jpayne@69
|
2071 Bool /* do_accel */,
|
jpayne@69
|
2072 Bool /* do_threshold */,
|
jpayne@69
|
2073 int /* accel_numerator */,
|
jpayne@69
|
2074 int /* accel_denominator */,
|
jpayne@69
|
2075 int /* threshold */
|
jpayne@69
|
2076 );
|
jpayne@69
|
2077
|
jpayne@69
|
2078 extern int XChangeProperty(
|
jpayne@69
|
2079 Display* /* display */,
|
jpayne@69
|
2080 Window /* w */,
|
jpayne@69
|
2081 Atom /* property */,
|
jpayne@69
|
2082 Atom /* type */,
|
jpayne@69
|
2083 int /* format */,
|
jpayne@69
|
2084 int /* mode */,
|
jpayne@69
|
2085 _Xconst unsigned char* /* data */,
|
jpayne@69
|
2086 int /* nelements */
|
jpayne@69
|
2087 );
|
jpayne@69
|
2088
|
jpayne@69
|
2089 extern int XChangeSaveSet(
|
jpayne@69
|
2090 Display* /* display */,
|
jpayne@69
|
2091 Window /* w */,
|
jpayne@69
|
2092 int /* change_mode */
|
jpayne@69
|
2093 );
|
jpayne@69
|
2094
|
jpayne@69
|
2095 extern int XChangeWindowAttributes(
|
jpayne@69
|
2096 Display* /* display */,
|
jpayne@69
|
2097 Window /* w */,
|
jpayne@69
|
2098 unsigned long /* valuemask */,
|
jpayne@69
|
2099 XSetWindowAttributes* /* attributes */
|
jpayne@69
|
2100 );
|
jpayne@69
|
2101
|
jpayne@69
|
2102 extern Bool XCheckIfEvent(
|
jpayne@69
|
2103 Display* /* display */,
|
jpayne@69
|
2104 XEvent* /* event_return */,
|
jpayne@69
|
2105 Bool (*) (
|
jpayne@69
|
2106 Display* /* display */,
|
jpayne@69
|
2107 XEvent* /* event */,
|
jpayne@69
|
2108 XPointer /* arg */
|
jpayne@69
|
2109 ) /* predicate */,
|
jpayne@69
|
2110 XPointer /* arg */
|
jpayne@69
|
2111 );
|
jpayne@69
|
2112
|
jpayne@69
|
2113 extern Bool XCheckMaskEvent(
|
jpayne@69
|
2114 Display* /* display */,
|
jpayne@69
|
2115 long /* event_mask */,
|
jpayne@69
|
2116 XEvent* /* event_return */
|
jpayne@69
|
2117 );
|
jpayne@69
|
2118
|
jpayne@69
|
2119 extern Bool XCheckTypedEvent(
|
jpayne@69
|
2120 Display* /* display */,
|
jpayne@69
|
2121 int /* event_type */,
|
jpayne@69
|
2122 XEvent* /* event_return */
|
jpayne@69
|
2123 );
|
jpayne@69
|
2124
|
jpayne@69
|
2125 extern Bool XCheckTypedWindowEvent(
|
jpayne@69
|
2126 Display* /* display */,
|
jpayne@69
|
2127 Window /* w */,
|
jpayne@69
|
2128 int /* event_type */,
|
jpayne@69
|
2129 XEvent* /* event_return */
|
jpayne@69
|
2130 );
|
jpayne@69
|
2131
|
jpayne@69
|
2132 extern Bool XCheckWindowEvent(
|
jpayne@69
|
2133 Display* /* display */,
|
jpayne@69
|
2134 Window /* w */,
|
jpayne@69
|
2135 long /* event_mask */,
|
jpayne@69
|
2136 XEvent* /* event_return */
|
jpayne@69
|
2137 );
|
jpayne@69
|
2138
|
jpayne@69
|
2139 extern int XCirculateSubwindows(
|
jpayne@69
|
2140 Display* /* display */,
|
jpayne@69
|
2141 Window /* w */,
|
jpayne@69
|
2142 int /* direction */
|
jpayne@69
|
2143 );
|
jpayne@69
|
2144
|
jpayne@69
|
2145 extern int XCirculateSubwindowsDown(
|
jpayne@69
|
2146 Display* /* display */,
|
jpayne@69
|
2147 Window /* w */
|
jpayne@69
|
2148 );
|
jpayne@69
|
2149
|
jpayne@69
|
2150 extern int XCirculateSubwindowsUp(
|
jpayne@69
|
2151 Display* /* display */,
|
jpayne@69
|
2152 Window /* w */
|
jpayne@69
|
2153 );
|
jpayne@69
|
2154
|
jpayne@69
|
2155 extern int XClearArea(
|
jpayne@69
|
2156 Display* /* display */,
|
jpayne@69
|
2157 Window /* w */,
|
jpayne@69
|
2158 int /* x */,
|
jpayne@69
|
2159 int /* y */,
|
jpayne@69
|
2160 unsigned int /* width */,
|
jpayne@69
|
2161 unsigned int /* height */,
|
jpayne@69
|
2162 Bool /* exposures */
|
jpayne@69
|
2163 );
|
jpayne@69
|
2164
|
jpayne@69
|
2165 extern int XClearWindow(
|
jpayne@69
|
2166 Display* /* display */,
|
jpayne@69
|
2167 Window /* w */
|
jpayne@69
|
2168 );
|
jpayne@69
|
2169
|
jpayne@69
|
2170 extern int XCloseDisplay(
|
jpayne@69
|
2171 Display* /* display */
|
jpayne@69
|
2172 );
|
jpayne@69
|
2173
|
jpayne@69
|
2174 extern int XConfigureWindow(
|
jpayne@69
|
2175 Display* /* display */,
|
jpayne@69
|
2176 Window /* w */,
|
jpayne@69
|
2177 unsigned int /* value_mask */,
|
jpayne@69
|
2178 XWindowChanges* /* values */
|
jpayne@69
|
2179 );
|
jpayne@69
|
2180
|
jpayne@69
|
2181 extern int XConnectionNumber(
|
jpayne@69
|
2182 Display* /* display */
|
jpayne@69
|
2183 );
|
jpayne@69
|
2184
|
jpayne@69
|
2185 extern int XConvertSelection(
|
jpayne@69
|
2186 Display* /* display */,
|
jpayne@69
|
2187 Atom /* selection */,
|
jpayne@69
|
2188 Atom /* target */,
|
jpayne@69
|
2189 Atom /* property */,
|
jpayne@69
|
2190 Window /* requestor */,
|
jpayne@69
|
2191 Time /* time */
|
jpayne@69
|
2192 );
|
jpayne@69
|
2193
|
jpayne@69
|
2194 extern int XCopyArea(
|
jpayne@69
|
2195 Display* /* display */,
|
jpayne@69
|
2196 Drawable /* src */,
|
jpayne@69
|
2197 Drawable /* dest */,
|
jpayne@69
|
2198 GC /* gc */,
|
jpayne@69
|
2199 int /* src_x */,
|
jpayne@69
|
2200 int /* src_y */,
|
jpayne@69
|
2201 unsigned int /* width */,
|
jpayne@69
|
2202 unsigned int /* height */,
|
jpayne@69
|
2203 int /* dest_x */,
|
jpayne@69
|
2204 int /* dest_y */
|
jpayne@69
|
2205 );
|
jpayne@69
|
2206
|
jpayne@69
|
2207 extern int XCopyGC(
|
jpayne@69
|
2208 Display* /* display */,
|
jpayne@69
|
2209 GC /* src */,
|
jpayne@69
|
2210 unsigned long /* valuemask */,
|
jpayne@69
|
2211 GC /* dest */
|
jpayne@69
|
2212 );
|
jpayne@69
|
2213
|
jpayne@69
|
2214 extern int XCopyPlane(
|
jpayne@69
|
2215 Display* /* display */,
|
jpayne@69
|
2216 Drawable /* src */,
|
jpayne@69
|
2217 Drawable /* dest */,
|
jpayne@69
|
2218 GC /* gc */,
|
jpayne@69
|
2219 int /* src_x */,
|
jpayne@69
|
2220 int /* src_y */,
|
jpayne@69
|
2221 unsigned int /* width */,
|
jpayne@69
|
2222 unsigned int /* height */,
|
jpayne@69
|
2223 int /* dest_x */,
|
jpayne@69
|
2224 int /* dest_y */,
|
jpayne@69
|
2225 unsigned long /* plane */
|
jpayne@69
|
2226 );
|
jpayne@69
|
2227
|
jpayne@69
|
2228 extern int XDefaultDepth(
|
jpayne@69
|
2229 Display* /* display */,
|
jpayne@69
|
2230 int /* screen_number */
|
jpayne@69
|
2231 );
|
jpayne@69
|
2232
|
jpayne@69
|
2233 extern int XDefaultDepthOfScreen(
|
jpayne@69
|
2234 Screen* /* screen */
|
jpayne@69
|
2235 );
|
jpayne@69
|
2236
|
jpayne@69
|
2237 extern int XDefaultScreen(
|
jpayne@69
|
2238 Display* /* display */
|
jpayne@69
|
2239 );
|
jpayne@69
|
2240
|
jpayne@69
|
2241 extern int XDefineCursor(
|
jpayne@69
|
2242 Display* /* display */,
|
jpayne@69
|
2243 Window /* w */,
|
jpayne@69
|
2244 Cursor /* cursor */
|
jpayne@69
|
2245 );
|
jpayne@69
|
2246
|
jpayne@69
|
2247 extern int XDeleteProperty(
|
jpayne@69
|
2248 Display* /* display */,
|
jpayne@69
|
2249 Window /* w */,
|
jpayne@69
|
2250 Atom /* property */
|
jpayne@69
|
2251 );
|
jpayne@69
|
2252
|
jpayne@69
|
2253 extern int XDestroyWindow(
|
jpayne@69
|
2254 Display* /* display */,
|
jpayne@69
|
2255 Window /* w */
|
jpayne@69
|
2256 );
|
jpayne@69
|
2257
|
jpayne@69
|
2258 extern int XDestroySubwindows(
|
jpayne@69
|
2259 Display* /* display */,
|
jpayne@69
|
2260 Window /* w */
|
jpayne@69
|
2261 );
|
jpayne@69
|
2262
|
jpayne@69
|
2263 extern int XDoesBackingStore(
|
jpayne@69
|
2264 Screen* /* screen */
|
jpayne@69
|
2265 );
|
jpayne@69
|
2266
|
jpayne@69
|
2267 extern Bool XDoesSaveUnders(
|
jpayne@69
|
2268 Screen* /* screen */
|
jpayne@69
|
2269 );
|
jpayne@69
|
2270
|
jpayne@69
|
2271 extern int XDisableAccessControl(
|
jpayne@69
|
2272 Display* /* display */
|
jpayne@69
|
2273 );
|
jpayne@69
|
2274
|
jpayne@69
|
2275
|
jpayne@69
|
2276 extern int XDisplayCells(
|
jpayne@69
|
2277 Display* /* display */,
|
jpayne@69
|
2278 int /* screen_number */
|
jpayne@69
|
2279 );
|
jpayne@69
|
2280
|
jpayne@69
|
2281 extern int XDisplayHeight(
|
jpayne@69
|
2282 Display* /* display */,
|
jpayne@69
|
2283 int /* screen_number */
|
jpayne@69
|
2284 );
|
jpayne@69
|
2285
|
jpayne@69
|
2286 extern int XDisplayHeightMM(
|
jpayne@69
|
2287 Display* /* display */,
|
jpayne@69
|
2288 int /* screen_number */
|
jpayne@69
|
2289 );
|
jpayne@69
|
2290
|
jpayne@69
|
2291 extern int XDisplayKeycodes(
|
jpayne@69
|
2292 Display* /* display */,
|
jpayne@69
|
2293 int* /* min_keycodes_return */,
|
jpayne@69
|
2294 int* /* max_keycodes_return */
|
jpayne@69
|
2295 );
|
jpayne@69
|
2296
|
jpayne@69
|
2297 extern int XDisplayPlanes(
|
jpayne@69
|
2298 Display* /* display */,
|
jpayne@69
|
2299 int /* screen_number */
|
jpayne@69
|
2300 );
|
jpayne@69
|
2301
|
jpayne@69
|
2302 extern int XDisplayWidth(
|
jpayne@69
|
2303 Display* /* display */,
|
jpayne@69
|
2304 int /* screen_number */
|
jpayne@69
|
2305 );
|
jpayne@69
|
2306
|
jpayne@69
|
2307 extern int XDisplayWidthMM(
|
jpayne@69
|
2308 Display* /* display */,
|
jpayne@69
|
2309 int /* screen_number */
|
jpayne@69
|
2310 );
|
jpayne@69
|
2311
|
jpayne@69
|
2312 extern int XDrawArc(
|
jpayne@69
|
2313 Display* /* display */,
|
jpayne@69
|
2314 Drawable /* d */,
|
jpayne@69
|
2315 GC /* gc */,
|
jpayne@69
|
2316 int /* x */,
|
jpayne@69
|
2317 int /* y */,
|
jpayne@69
|
2318 unsigned int /* width */,
|
jpayne@69
|
2319 unsigned int /* height */,
|
jpayne@69
|
2320 int /* angle1 */,
|
jpayne@69
|
2321 int /* angle2 */
|
jpayne@69
|
2322 );
|
jpayne@69
|
2323
|
jpayne@69
|
2324 extern int XDrawArcs(
|
jpayne@69
|
2325 Display* /* display */,
|
jpayne@69
|
2326 Drawable /* d */,
|
jpayne@69
|
2327 GC /* gc */,
|
jpayne@69
|
2328 XArc* /* arcs */,
|
jpayne@69
|
2329 int /* narcs */
|
jpayne@69
|
2330 );
|
jpayne@69
|
2331
|
jpayne@69
|
2332 extern int XDrawImageString(
|
jpayne@69
|
2333 Display* /* display */,
|
jpayne@69
|
2334 Drawable /* d */,
|
jpayne@69
|
2335 GC /* gc */,
|
jpayne@69
|
2336 int /* x */,
|
jpayne@69
|
2337 int /* y */,
|
jpayne@69
|
2338 _Xconst char* /* string */,
|
jpayne@69
|
2339 int /* length */
|
jpayne@69
|
2340 );
|
jpayne@69
|
2341
|
jpayne@69
|
2342 extern int XDrawImageString16(
|
jpayne@69
|
2343 Display* /* display */,
|
jpayne@69
|
2344 Drawable /* d */,
|
jpayne@69
|
2345 GC /* gc */,
|
jpayne@69
|
2346 int /* x */,
|
jpayne@69
|
2347 int /* y */,
|
jpayne@69
|
2348 _Xconst XChar2b* /* string */,
|
jpayne@69
|
2349 int /* length */
|
jpayne@69
|
2350 );
|
jpayne@69
|
2351
|
jpayne@69
|
2352 extern int XDrawLine(
|
jpayne@69
|
2353 Display* /* display */,
|
jpayne@69
|
2354 Drawable /* d */,
|
jpayne@69
|
2355 GC /* gc */,
|
jpayne@69
|
2356 int /* x1 */,
|
jpayne@69
|
2357 int /* y1 */,
|
jpayne@69
|
2358 int /* x2 */,
|
jpayne@69
|
2359 int /* y2 */
|
jpayne@69
|
2360 );
|
jpayne@69
|
2361
|
jpayne@69
|
2362 extern int XDrawLines(
|
jpayne@69
|
2363 Display* /* display */,
|
jpayne@69
|
2364 Drawable /* d */,
|
jpayne@69
|
2365 GC /* gc */,
|
jpayne@69
|
2366 XPoint* /* points */,
|
jpayne@69
|
2367 int /* npoints */,
|
jpayne@69
|
2368 int /* mode */
|
jpayne@69
|
2369 );
|
jpayne@69
|
2370
|
jpayne@69
|
2371 extern int XDrawPoint(
|
jpayne@69
|
2372 Display* /* display */,
|
jpayne@69
|
2373 Drawable /* d */,
|
jpayne@69
|
2374 GC /* gc */,
|
jpayne@69
|
2375 int /* x */,
|
jpayne@69
|
2376 int /* y */
|
jpayne@69
|
2377 );
|
jpayne@69
|
2378
|
jpayne@69
|
2379 extern int XDrawPoints(
|
jpayne@69
|
2380 Display* /* display */,
|
jpayne@69
|
2381 Drawable /* d */,
|
jpayne@69
|
2382 GC /* gc */,
|
jpayne@69
|
2383 XPoint* /* points */,
|
jpayne@69
|
2384 int /* npoints */,
|
jpayne@69
|
2385 int /* mode */
|
jpayne@69
|
2386 );
|
jpayne@69
|
2387
|
jpayne@69
|
2388 extern int XDrawRectangle(
|
jpayne@69
|
2389 Display* /* display */,
|
jpayne@69
|
2390 Drawable /* d */,
|
jpayne@69
|
2391 GC /* gc */,
|
jpayne@69
|
2392 int /* x */,
|
jpayne@69
|
2393 int /* y */,
|
jpayne@69
|
2394 unsigned int /* width */,
|
jpayne@69
|
2395 unsigned int /* height */
|
jpayne@69
|
2396 );
|
jpayne@69
|
2397
|
jpayne@69
|
2398 extern int XDrawRectangles(
|
jpayne@69
|
2399 Display* /* display */,
|
jpayne@69
|
2400 Drawable /* d */,
|
jpayne@69
|
2401 GC /* gc */,
|
jpayne@69
|
2402 XRectangle* /* rectangles */,
|
jpayne@69
|
2403 int /* nrectangles */
|
jpayne@69
|
2404 );
|
jpayne@69
|
2405
|
jpayne@69
|
2406 extern int XDrawSegments(
|
jpayne@69
|
2407 Display* /* display */,
|
jpayne@69
|
2408 Drawable /* d */,
|
jpayne@69
|
2409 GC /* gc */,
|
jpayne@69
|
2410 XSegment* /* segments */,
|
jpayne@69
|
2411 int /* nsegments */
|
jpayne@69
|
2412 );
|
jpayne@69
|
2413
|
jpayne@69
|
2414 extern int XDrawString(
|
jpayne@69
|
2415 Display* /* display */,
|
jpayne@69
|
2416 Drawable /* d */,
|
jpayne@69
|
2417 GC /* gc */,
|
jpayne@69
|
2418 int /* x */,
|
jpayne@69
|
2419 int /* y */,
|
jpayne@69
|
2420 _Xconst char* /* string */,
|
jpayne@69
|
2421 int /* length */
|
jpayne@69
|
2422 );
|
jpayne@69
|
2423
|
jpayne@69
|
2424 extern int XDrawString16(
|
jpayne@69
|
2425 Display* /* display */,
|
jpayne@69
|
2426 Drawable /* d */,
|
jpayne@69
|
2427 GC /* gc */,
|
jpayne@69
|
2428 int /* x */,
|
jpayne@69
|
2429 int /* y */,
|
jpayne@69
|
2430 _Xconst XChar2b* /* string */,
|
jpayne@69
|
2431 int /* length */
|
jpayne@69
|
2432 );
|
jpayne@69
|
2433
|
jpayne@69
|
2434 extern int XDrawText(
|
jpayne@69
|
2435 Display* /* display */,
|
jpayne@69
|
2436 Drawable /* d */,
|
jpayne@69
|
2437 GC /* gc */,
|
jpayne@69
|
2438 int /* x */,
|
jpayne@69
|
2439 int /* y */,
|
jpayne@69
|
2440 XTextItem* /* items */,
|
jpayne@69
|
2441 int /* nitems */
|
jpayne@69
|
2442 );
|
jpayne@69
|
2443
|
jpayne@69
|
2444 extern int XDrawText16(
|
jpayne@69
|
2445 Display* /* display */,
|
jpayne@69
|
2446 Drawable /* d */,
|
jpayne@69
|
2447 GC /* gc */,
|
jpayne@69
|
2448 int /* x */,
|
jpayne@69
|
2449 int /* y */,
|
jpayne@69
|
2450 XTextItem16* /* items */,
|
jpayne@69
|
2451 int /* nitems */
|
jpayne@69
|
2452 );
|
jpayne@69
|
2453
|
jpayne@69
|
2454 extern int XEnableAccessControl(
|
jpayne@69
|
2455 Display* /* display */
|
jpayne@69
|
2456 );
|
jpayne@69
|
2457
|
jpayne@69
|
2458 extern int XEventsQueued(
|
jpayne@69
|
2459 Display* /* display */,
|
jpayne@69
|
2460 int /* mode */
|
jpayne@69
|
2461 );
|
jpayne@69
|
2462
|
jpayne@69
|
2463 extern Status XFetchName(
|
jpayne@69
|
2464 Display* /* display */,
|
jpayne@69
|
2465 Window /* w */,
|
jpayne@69
|
2466 char** /* window_name_return */
|
jpayne@69
|
2467 );
|
jpayne@69
|
2468
|
jpayne@69
|
2469 extern int XFillArc(
|
jpayne@69
|
2470 Display* /* display */,
|
jpayne@69
|
2471 Drawable /* d */,
|
jpayne@69
|
2472 GC /* gc */,
|
jpayne@69
|
2473 int /* x */,
|
jpayne@69
|
2474 int /* y */,
|
jpayne@69
|
2475 unsigned int /* width */,
|
jpayne@69
|
2476 unsigned int /* height */,
|
jpayne@69
|
2477 int /* angle1 */,
|
jpayne@69
|
2478 int /* angle2 */
|
jpayne@69
|
2479 );
|
jpayne@69
|
2480
|
jpayne@69
|
2481 extern int XFillArcs(
|
jpayne@69
|
2482 Display* /* display */,
|
jpayne@69
|
2483 Drawable /* d */,
|
jpayne@69
|
2484 GC /* gc */,
|
jpayne@69
|
2485 XArc* /* arcs */,
|
jpayne@69
|
2486 int /* narcs */
|
jpayne@69
|
2487 );
|
jpayne@69
|
2488
|
jpayne@69
|
2489 extern int XFillPolygon(
|
jpayne@69
|
2490 Display* /* display */,
|
jpayne@69
|
2491 Drawable /* d */,
|
jpayne@69
|
2492 GC /* gc */,
|
jpayne@69
|
2493 XPoint* /* points */,
|
jpayne@69
|
2494 int /* npoints */,
|
jpayne@69
|
2495 int /* shape */,
|
jpayne@69
|
2496 int /* mode */
|
jpayne@69
|
2497 );
|
jpayne@69
|
2498
|
jpayne@69
|
2499 extern int XFillRectangle(
|
jpayne@69
|
2500 Display* /* display */,
|
jpayne@69
|
2501 Drawable /* d */,
|
jpayne@69
|
2502 GC /* gc */,
|
jpayne@69
|
2503 int /* x */,
|
jpayne@69
|
2504 int /* y */,
|
jpayne@69
|
2505 unsigned int /* width */,
|
jpayne@69
|
2506 unsigned int /* height */
|
jpayne@69
|
2507 );
|
jpayne@69
|
2508
|
jpayne@69
|
2509 extern int XFillRectangles(
|
jpayne@69
|
2510 Display* /* display */,
|
jpayne@69
|
2511 Drawable /* d */,
|
jpayne@69
|
2512 GC /* gc */,
|
jpayne@69
|
2513 XRectangle* /* rectangles */,
|
jpayne@69
|
2514 int /* nrectangles */
|
jpayne@69
|
2515 );
|
jpayne@69
|
2516
|
jpayne@69
|
2517 extern int XFlush(
|
jpayne@69
|
2518 Display* /* display */
|
jpayne@69
|
2519 );
|
jpayne@69
|
2520
|
jpayne@69
|
2521 extern int XForceScreenSaver(
|
jpayne@69
|
2522 Display* /* display */,
|
jpayne@69
|
2523 int /* mode */
|
jpayne@69
|
2524 );
|
jpayne@69
|
2525
|
jpayne@69
|
2526 extern int XFree(
|
jpayne@69
|
2527 void* /* data */
|
jpayne@69
|
2528 );
|
jpayne@69
|
2529
|
jpayne@69
|
2530 extern int XFreeColormap(
|
jpayne@69
|
2531 Display* /* display */,
|
jpayne@69
|
2532 Colormap /* colormap */
|
jpayne@69
|
2533 );
|
jpayne@69
|
2534
|
jpayne@69
|
2535 extern int XFreeColors(
|
jpayne@69
|
2536 Display* /* display */,
|
jpayne@69
|
2537 Colormap /* colormap */,
|
jpayne@69
|
2538 unsigned long* /* pixels */,
|
jpayne@69
|
2539 int /* npixels */,
|
jpayne@69
|
2540 unsigned long /* planes */
|
jpayne@69
|
2541 );
|
jpayne@69
|
2542
|
jpayne@69
|
2543 extern int XFreeCursor(
|
jpayne@69
|
2544 Display* /* display */,
|
jpayne@69
|
2545 Cursor /* cursor */
|
jpayne@69
|
2546 );
|
jpayne@69
|
2547
|
jpayne@69
|
2548 extern int XFreeExtensionList(
|
jpayne@69
|
2549 char** /* list */
|
jpayne@69
|
2550 );
|
jpayne@69
|
2551
|
jpayne@69
|
2552 extern int XFreeFont(
|
jpayne@69
|
2553 Display* /* display */,
|
jpayne@69
|
2554 XFontStruct* /* font_struct */
|
jpayne@69
|
2555 );
|
jpayne@69
|
2556
|
jpayne@69
|
2557 extern int XFreeFontInfo(
|
jpayne@69
|
2558 char** /* names */,
|
jpayne@69
|
2559 XFontStruct* /* free_info */,
|
jpayne@69
|
2560 int /* actual_count */
|
jpayne@69
|
2561 );
|
jpayne@69
|
2562
|
jpayne@69
|
2563 extern int XFreeFontNames(
|
jpayne@69
|
2564 char** /* list */
|
jpayne@69
|
2565 );
|
jpayne@69
|
2566
|
jpayne@69
|
2567 extern int XFreeFontPath(
|
jpayne@69
|
2568 char** /* list */
|
jpayne@69
|
2569 );
|
jpayne@69
|
2570
|
jpayne@69
|
2571 extern int XFreeGC(
|
jpayne@69
|
2572 Display* /* display */,
|
jpayne@69
|
2573 GC /* gc */
|
jpayne@69
|
2574 );
|
jpayne@69
|
2575
|
jpayne@69
|
2576 extern int XFreeModifiermap(
|
jpayne@69
|
2577 XModifierKeymap* /* modmap */
|
jpayne@69
|
2578 );
|
jpayne@69
|
2579
|
jpayne@69
|
2580 extern int XFreePixmap(
|
jpayne@69
|
2581 Display* /* display */,
|
jpayne@69
|
2582 Pixmap /* pixmap */
|
jpayne@69
|
2583 );
|
jpayne@69
|
2584
|
jpayne@69
|
2585 extern int XGeometry(
|
jpayne@69
|
2586 Display* /* display */,
|
jpayne@69
|
2587 int /* screen */,
|
jpayne@69
|
2588 _Xconst char* /* position */,
|
jpayne@69
|
2589 _Xconst char* /* default_position */,
|
jpayne@69
|
2590 unsigned int /* bwidth */,
|
jpayne@69
|
2591 unsigned int /* fwidth */,
|
jpayne@69
|
2592 unsigned int /* fheight */,
|
jpayne@69
|
2593 int /* xadder */,
|
jpayne@69
|
2594 int /* yadder */,
|
jpayne@69
|
2595 int* /* x_return */,
|
jpayne@69
|
2596 int* /* y_return */,
|
jpayne@69
|
2597 int* /* width_return */,
|
jpayne@69
|
2598 int* /* height_return */
|
jpayne@69
|
2599 );
|
jpayne@69
|
2600
|
jpayne@69
|
2601 extern int XGetErrorDatabaseText(
|
jpayne@69
|
2602 Display* /* display */,
|
jpayne@69
|
2603 _Xconst char* /* name */,
|
jpayne@69
|
2604 _Xconst char* /* message */,
|
jpayne@69
|
2605 _Xconst char* /* default_string */,
|
jpayne@69
|
2606 char* /* buffer_return */,
|
jpayne@69
|
2607 int /* length */
|
jpayne@69
|
2608 );
|
jpayne@69
|
2609
|
jpayne@69
|
2610 extern int XGetErrorText(
|
jpayne@69
|
2611 Display* /* display */,
|
jpayne@69
|
2612 int /* code */,
|
jpayne@69
|
2613 char* /* buffer_return */,
|
jpayne@69
|
2614 int /* length */
|
jpayne@69
|
2615 );
|
jpayne@69
|
2616
|
jpayne@69
|
2617 extern Bool XGetFontProperty(
|
jpayne@69
|
2618 XFontStruct* /* font_struct */,
|
jpayne@69
|
2619 Atom /* atom */,
|
jpayne@69
|
2620 unsigned long* /* value_return */
|
jpayne@69
|
2621 );
|
jpayne@69
|
2622
|
jpayne@69
|
2623 extern Status XGetGCValues(
|
jpayne@69
|
2624 Display* /* display */,
|
jpayne@69
|
2625 GC /* gc */,
|
jpayne@69
|
2626 unsigned long /* valuemask */,
|
jpayne@69
|
2627 XGCValues* /* values_return */
|
jpayne@69
|
2628 );
|
jpayne@69
|
2629
|
jpayne@69
|
2630 extern Status XGetGeometry(
|
jpayne@69
|
2631 Display* /* display */,
|
jpayne@69
|
2632 Drawable /* d */,
|
jpayne@69
|
2633 Window* /* root_return */,
|
jpayne@69
|
2634 int* /* x_return */,
|
jpayne@69
|
2635 int* /* y_return */,
|
jpayne@69
|
2636 unsigned int* /* width_return */,
|
jpayne@69
|
2637 unsigned int* /* height_return */,
|
jpayne@69
|
2638 unsigned int* /* border_width_return */,
|
jpayne@69
|
2639 unsigned int* /* depth_return */
|
jpayne@69
|
2640 );
|
jpayne@69
|
2641
|
jpayne@69
|
2642 extern Status XGetIconName(
|
jpayne@69
|
2643 Display* /* display */,
|
jpayne@69
|
2644 Window /* w */,
|
jpayne@69
|
2645 char** /* icon_name_return */
|
jpayne@69
|
2646 );
|
jpayne@69
|
2647
|
jpayne@69
|
2648 extern int XGetInputFocus(
|
jpayne@69
|
2649 Display* /* display */,
|
jpayne@69
|
2650 Window* /* focus_return */,
|
jpayne@69
|
2651 int* /* revert_to_return */
|
jpayne@69
|
2652 );
|
jpayne@69
|
2653
|
jpayne@69
|
2654 extern int XGetKeyboardControl(
|
jpayne@69
|
2655 Display* /* display */,
|
jpayne@69
|
2656 XKeyboardState* /* values_return */
|
jpayne@69
|
2657 );
|
jpayne@69
|
2658
|
jpayne@69
|
2659 extern int XGetPointerControl(
|
jpayne@69
|
2660 Display* /* display */,
|
jpayne@69
|
2661 int* /* accel_numerator_return */,
|
jpayne@69
|
2662 int* /* accel_denominator_return */,
|
jpayne@69
|
2663 int* /* threshold_return */
|
jpayne@69
|
2664 );
|
jpayne@69
|
2665
|
jpayne@69
|
2666 extern int XGetPointerMapping(
|
jpayne@69
|
2667 Display* /* display */,
|
jpayne@69
|
2668 unsigned char* /* map_return */,
|
jpayne@69
|
2669 int /* nmap */
|
jpayne@69
|
2670 );
|
jpayne@69
|
2671
|
jpayne@69
|
2672 extern int XGetScreenSaver(
|
jpayne@69
|
2673 Display* /* display */,
|
jpayne@69
|
2674 int* /* timeout_return */,
|
jpayne@69
|
2675 int* /* interval_return */,
|
jpayne@69
|
2676 int* /* prefer_blanking_return */,
|
jpayne@69
|
2677 int* /* allow_exposures_return */
|
jpayne@69
|
2678 );
|
jpayne@69
|
2679
|
jpayne@69
|
2680 extern Status XGetTransientForHint(
|
jpayne@69
|
2681 Display* /* display */,
|
jpayne@69
|
2682 Window /* w */,
|
jpayne@69
|
2683 Window* /* prop_window_return */
|
jpayne@69
|
2684 );
|
jpayne@69
|
2685
|
jpayne@69
|
2686 extern int XGetWindowProperty(
|
jpayne@69
|
2687 Display* /* display */,
|
jpayne@69
|
2688 Window /* w */,
|
jpayne@69
|
2689 Atom /* property */,
|
jpayne@69
|
2690 long /* long_offset */,
|
jpayne@69
|
2691 long /* long_length */,
|
jpayne@69
|
2692 Bool /* delete */,
|
jpayne@69
|
2693 Atom /* req_type */,
|
jpayne@69
|
2694 Atom* /* actual_type_return */,
|
jpayne@69
|
2695 int* /* actual_format_return */,
|
jpayne@69
|
2696 unsigned long* /* nitems_return */,
|
jpayne@69
|
2697 unsigned long* /* bytes_after_return */,
|
jpayne@69
|
2698 unsigned char** /* prop_return */
|
jpayne@69
|
2699 );
|
jpayne@69
|
2700
|
jpayne@69
|
2701 extern Status XGetWindowAttributes(
|
jpayne@69
|
2702 Display* /* display */,
|
jpayne@69
|
2703 Window /* w */,
|
jpayne@69
|
2704 XWindowAttributes* /* window_attributes_return */
|
jpayne@69
|
2705 );
|
jpayne@69
|
2706
|
jpayne@69
|
2707 extern int XGrabButton(
|
jpayne@69
|
2708 Display* /* display */,
|
jpayne@69
|
2709 unsigned int /* button */,
|
jpayne@69
|
2710 unsigned int /* modifiers */,
|
jpayne@69
|
2711 Window /* grab_window */,
|
jpayne@69
|
2712 Bool /* owner_events */,
|
jpayne@69
|
2713 unsigned int /* event_mask */,
|
jpayne@69
|
2714 int /* pointer_mode */,
|
jpayne@69
|
2715 int /* keyboard_mode */,
|
jpayne@69
|
2716 Window /* confine_to */,
|
jpayne@69
|
2717 Cursor /* cursor */
|
jpayne@69
|
2718 );
|
jpayne@69
|
2719
|
jpayne@69
|
2720 extern int XGrabKey(
|
jpayne@69
|
2721 Display* /* display */,
|
jpayne@69
|
2722 int /* keycode */,
|
jpayne@69
|
2723 unsigned int /* modifiers */,
|
jpayne@69
|
2724 Window /* grab_window */,
|
jpayne@69
|
2725 Bool /* owner_events */,
|
jpayne@69
|
2726 int /* pointer_mode */,
|
jpayne@69
|
2727 int /* keyboard_mode */
|
jpayne@69
|
2728 );
|
jpayne@69
|
2729
|
jpayne@69
|
2730 extern int XGrabKeyboard(
|
jpayne@69
|
2731 Display* /* display */,
|
jpayne@69
|
2732 Window /* grab_window */,
|
jpayne@69
|
2733 Bool /* owner_events */,
|
jpayne@69
|
2734 int /* pointer_mode */,
|
jpayne@69
|
2735 int /* keyboard_mode */,
|
jpayne@69
|
2736 Time /* time */
|
jpayne@69
|
2737 );
|
jpayne@69
|
2738
|
jpayne@69
|
2739 extern int XGrabPointer(
|
jpayne@69
|
2740 Display* /* display */,
|
jpayne@69
|
2741 Window /* grab_window */,
|
jpayne@69
|
2742 Bool /* owner_events */,
|
jpayne@69
|
2743 unsigned int /* event_mask */,
|
jpayne@69
|
2744 int /* pointer_mode */,
|
jpayne@69
|
2745 int /* keyboard_mode */,
|
jpayne@69
|
2746 Window /* confine_to */,
|
jpayne@69
|
2747 Cursor /* cursor */,
|
jpayne@69
|
2748 Time /* time */
|
jpayne@69
|
2749 );
|
jpayne@69
|
2750
|
jpayne@69
|
2751 extern int XGrabServer(
|
jpayne@69
|
2752 Display* /* display */
|
jpayne@69
|
2753 );
|
jpayne@69
|
2754
|
jpayne@69
|
2755 extern int XHeightMMOfScreen(
|
jpayne@69
|
2756 Screen* /* screen */
|
jpayne@69
|
2757 );
|
jpayne@69
|
2758
|
jpayne@69
|
2759 extern int XHeightOfScreen(
|
jpayne@69
|
2760 Screen* /* screen */
|
jpayne@69
|
2761 );
|
jpayne@69
|
2762
|
jpayne@69
|
2763 extern int XIfEvent(
|
jpayne@69
|
2764 Display* /* display */,
|
jpayne@69
|
2765 XEvent* /* event_return */,
|
jpayne@69
|
2766 Bool (*) (
|
jpayne@69
|
2767 Display* /* display */,
|
jpayne@69
|
2768 XEvent* /* event */,
|
jpayne@69
|
2769 XPointer /* arg */
|
jpayne@69
|
2770 ) /* predicate */,
|
jpayne@69
|
2771 XPointer /* arg */
|
jpayne@69
|
2772 );
|
jpayne@69
|
2773
|
jpayne@69
|
2774 extern int XImageByteOrder(
|
jpayne@69
|
2775 Display* /* display */
|
jpayne@69
|
2776 );
|
jpayne@69
|
2777
|
jpayne@69
|
2778 extern int XInstallColormap(
|
jpayne@69
|
2779 Display* /* display */,
|
jpayne@69
|
2780 Colormap /* colormap */
|
jpayne@69
|
2781 );
|
jpayne@69
|
2782
|
jpayne@69
|
2783 extern KeyCode XKeysymToKeycode(
|
jpayne@69
|
2784 Display* /* display */,
|
jpayne@69
|
2785 KeySym /* keysym */
|
jpayne@69
|
2786 );
|
jpayne@69
|
2787
|
jpayne@69
|
2788 extern int XKillClient(
|
jpayne@69
|
2789 Display* /* display */,
|
jpayne@69
|
2790 XID /* resource */
|
jpayne@69
|
2791 );
|
jpayne@69
|
2792
|
jpayne@69
|
2793 extern Status XLookupColor(
|
jpayne@69
|
2794 Display* /* display */,
|
jpayne@69
|
2795 Colormap /* colormap */,
|
jpayne@69
|
2796 _Xconst char* /* color_name */,
|
jpayne@69
|
2797 XColor* /* exact_def_return */,
|
jpayne@69
|
2798 XColor* /* screen_def_return */
|
jpayne@69
|
2799 );
|
jpayne@69
|
2800
|
jpayne@69
|
2801 extern int XLowerWindow(
|
jpayne@69
|
2802 Display* /* display */,
|
jpayne@69
|
2803 Window /* w */
|
jpayne@69
|
2804 );
|
jpayne@69
|
2805
|
jpayne@69
|
2806 extern int XMapRaised(
|
jpayne@69
|
2807 Display* /* display */,
|
jpayne@69
|
2808 Window /* w */
|
jpayne@69
|
2809 );
|
jpayne@69
|
2810
|
jpayne@69
|
2811 extern int XMapSubwindows(
|
jpayne@69
|
2812 Display* /* display */,
|
jpayne@69
|
2813 Window /* w */
|
jpayne@69
|
2814 );
|
jpayne@69
|
2815
|
jpayne@69
|
2816 extern int XMapWindow(
|
jpayne@69
|
2817 Display* /* display */,
|
jpayne@69
|
2818 Window /* w */
|
jpayne@69
|
2819 );
|
jpayne@69
|
2820
|
jpayne@69
|
2821 extern int XMaskEvent(
|
jpayne@69
|
2822 Display* /* display */,
|
jpayne@69
|
2823 long /* event_mask */,
|
jpayne@69
|
2824 XEvent* /* event_return */
|
jpayne@69
|
2825 );
|
jpayne@69
|
2826
|
jpayne@69
|
2827 extern int XMaxCmapsOfScreen(
|
jpayne@69
|
2828 Screen* /* screen */
|
jpayne@69
|
2829 );
|
jpayne@69
|
2830
|
jpayne@69
|
2831 extern int XMinCmapsOfScreen(
|
jpayne@69
|
2832 Screen* /* screen */
|
jpayne@69
|
2833 );
|
jpayne@69
|
2834
|
jpayne@69
|
2835 extern int XMoveResizeWindow(
|
jpayne@69
|
2836 Display* /* display */,
|
jpayne@69
|
2837 Window /* w */,
|
jpayne@69
|
2838 int /* x */,
|
jpayne@69
|
2839 int /* y */,
|
jpayne@69
|
2840 unsigned int /* width */,
|
jpayne@69
|
2841 unsigned int /* height */
|
jpayne@69
|
2842 );
|
jpayne@69
|
2843
|
jpayne@69
|
2844 extern int XMoveWindow(
|
jpayne@69
|
2845 Display* /* display */,
|
jpayne@69
|
2846 Window /* w */,
|
jpayne@69
|
2847 int /* x */,
|
jpayne@69
|
2848 int /* y */
|
jpayne@69
|
2849 );
|
jpayne@69
|
2850
|
jpayne@69
|
2851 extern int XNextEvent(
|
jpayne@69
|
2852 Display* /* display */,
|
jpayne@69
|
2853 XEvent* /* event_return */
|
jpayne@69
|
2854 );
|
jpayne@69
|
2855
|
jpayne@69
|
2856 extern int XNoOp(
|
jpayne@69
|
2857 Display* /* display */
|
jpayne@69
|
2858 );
|
jpayne@69
|
2859
|
jpayne@69
|
2860 extern Status XParseColor(
|
jpayne@69
|
2861 Display* /* display */,
|
jpayne@69
|
2862 Colormap /* colormap */,
|
jpayne@69
|
2863 _Xconst char* /* spec */,
|
jpayne@69
|
2864 XColor* /* exact_def_return */
|
jpayne@69
|
2865 );
|
jpayne@69
|
2866
|
jpayne@69
|
2867 extern int XParseGeometry(
|
jpayne@69
|
2868 _Xconst char* /* parsestring */,
|
jpayne@69
|
2869 int* /* x_return */,
|
jpayne@69
|
2870 int* /* y_return */,
|
jpayne@69
|
2871 unsigned int* /* width_return */,
|
jpayne@69
|
2872 unsigned int* /* height_return */
|
jpayne@69
|
2873 );
|
jpayne@69
|
2874
|
jpayne@69
|
2875 extern int XPeekEvent(
|
jpayne@69
|
2876 Display* /* display */,
|
jpayne@69
|
2877 XEvent* /* event_return */
|
jpayne@69
|
2878 );
|
jpayne@69
|
2879
|
jpayne@69
|
2880 extern int XPeekIfEvent(
|
jpayne@69
|
2881 Display* /* display */,
|
jpayne@69
|
2882 XEvent* /* event_return */,
|
jpayne@69
|
2883 Bool (*) (
|
jpayne@69
|
2884 Display* /* display */,
|
jpayne@69
|
2885 XEvent* /* event */,
|
jpayne@69
|
2886 XPointer /* arg */
|
jpayne@69
|
2887 ) /* predicate */,
|
jpayne@69
|
2888 XPointer /* arg */
|
jpayne@69
|
2889 );
|
jpayne@69
|
2890
|
jpayne@69
|
2891 extern int XPending(
|
jpayne@69
|
2892 Display* /* display */
|
jpayne@69
|
2893 );
|
jpayne@69
|
2894
|
jpayne@69
|
2895 extern int XPlanesOfScreen(
|
jpayne@69
|
2896 Screen* /* screen */
|
jpayne@69
|
2897 );
|
jpayne@69
|
2898
|
jpayne@69
|
2899 extern int XProtocolRevision(
|
jpayne@69
|
2900 Display* /* display */
|
jpayne@69
|
2901 );
|
jpayne@69
|
2902
|
jpayne@69
|
2903 extern int XProtocolVersion(
|
jpayne@69
|
2904 Display* /* display */
|
jpayne@69
|
2905 );
|
jpayne@69
|
2906
|
jpayne@69
|
2907
|
jpayne@69
|
2908 extern int XPutBackEvent(
|
jpayne@69
|
2909 Display* /* display */,
|
jpayne@69
|
2910 XEvent* /* event */
|
jpayne@69
|
2911 );
|
jpayne@69
|
2912
|
jpayne@69
|
2913 extern int XPutImage(
|
jpayne@69
|
2914 Display* /* display */,
|
jpayne@69
|
2915 Drawable /* d */,
|
jpayne@69
|
2916 GC /* gc */,
|
jpayne@69
|
2917 XImage* /* image */,
|
jpayne@69
|
2918 int /* src_x */,
|
jpayne@69
|
2919 int /* src_y */,
|
jpayne@69
|
2920 int /* dest_x */,
|
jpayne@69
|
2921 int /* dest_y */,
|
jpayne@69
|
2922 unsigned int /* width */,
|
jpayne@69
|
2923 unsigned int /* height */
|
jpayne@69
|
2924 );
|
jpayne@69
|
2925
|
jpayne@69
|
2926 extern int XQLength(
|
jpayne@69
|
2927 Display* /* display */
|
jpayne@69
|
2928 );
|
jpayne@69
|
2929
|
jpayne@69
|
2930 extern Status XQueryBestCursor(
|
jpayne@69
|
2931 Display* /* display */,
|
jpayne@69
|
2932 Drawable /* d */,
|
jpayne@69
|
2933 unsigned int /* width */,
|
jpayne@69
|
2934 unsigned int /* height */,
|
jpayne@69
|
2935 unsigned int* /* width_return */,
|
jpayne@69
|
2936 unsigned int* /* height_return */
|
jpayne@69
|
2937 );
|
jpayne@69
|
2938
|
jpayne@69
|
2939 extern Status XQueryBestSize(
|
jpayne@69
|
2940 Display* /* display */,
|
jpayne@69
|
2941 int /* class */,
|
jpayne@69
|
2942 Drawable /* which_screen */,
|
jpayne@69
|
2943 unsigned int /* width */,
|
jpayne@69
|
2944 unsigned int /* height */,
|
jpayne@69
|
2945 unsigned int* /* width_return */,
|
jpayne@69
|
2946 unsigned int* /* height_return */
|
jpayne@69
|
2947 );
|
jpayne@69
|
2948
|
jpayne@69
|
2949 extern Status XQueryBestStipple(
|
jpayne@69
|
2950 Display* /* display */,
|
jpayne@69
|
2951 Drawable /* which_screen */,
|
jpayne@69
|
2952 unsigned int /* width */,
|
jpayne@69
|
2953 unsigned int /* height */,
|
jpayne@69
|
2954 unsigned int* /* width_return */,
|
jpayne@69
|
2955 unsigned int* /* height_return */
|
jpayne@69
|
2956 );
|
jpayne@69
|
2957
|
jpayne@69
|
2958 extern Status XQueryBestTile(
|
jpayne@69
|
2959 Display* /* display */,
|
jpayne@69
|
2960 Drawable /* which_screen */,
|
jpayne@69
|
2961 unsigned int /* width */,
|
jpayne@69
|
2962 unsigned int /* height */,
|
jpayne@69
|
2963 unsigned int* /* width_return */,
|
jpayne@69
|
2964 unsigned int* /* height_return */
|
jpayne@69
|
2965 );
|
jpayne@69
|
2966
|
jpayne@69
|
2967 extern int XQueryColor(
|
jpayne@69
|
2968 Display* /* display */,
|
jpayne@69
|
2969 Colormap /* colormap */,
|
jpayne@69
|
2970 XColor* /* def_in_out */
|
jpayne@69
|
2971 );
|
jpayne@69
|
2972
|
jpayne@69
|
2973 extern int XQueryColors(
|
jpayne@69
|
2974 Display* /* display */,
|
jpayne@69
|
2975 Colormap /* colormap */,
|
jpayne@69
|
2976 XColor* /* defs_in_out */,
|
jpayne@69
|
2977 int /* ncolors */
|
jpayne@69
|
2978 );
|
jpayne@69
|
2979
|
jpayne@69
|
2980 extern Bool XQueryExtension(
|
jpayne@69
|
2981 Display* /* display */,
|
jpayne@69
|
2982 _Xconst char* /* name */,
|
jpayne@69
|
2983 int* /* major_opcode_return */,
|
jpayne@69
|
2984 int* /* first_event_return */,
|
jpayne@69
|
2985 int* /* first_error_return */
|
jpayne@69
|
2986 );
|
jpayne@69
|
2987
|
jpayne@69
|
2988 extern int XQueryKeymap(
|
jpayne@69
|
2989 Display* /* display */,
|
jpayne@69
|
2990 char [32] /* keys_return */
|
jpayne@69
|
2991 );
|
jpayne@69
|
2992
|
jpayne@69
|
2993 extern Bool XQueryPointer(
|
jpayne@69
|
2994 Display* /* display */,
|
jpayne@69
|
2995 Window /* w */,
|
jpayne@69
|
2996 Window* /* root_return */,
|
jpayne@69
|
2997 Window* /* child_return */,
|
jpayne@69
|
2998 int* /* root_x_return */,
|
jpayne@69
|
2999 int* /* root_y_return */,
|
jpayne@69
|
3000 int* /* win_x_return */,
|
jpayne@69
|
3001 int* /* win_y_return */,
|
jpayne@69
|
3002 unsigned int* /* mask_return */
|
jpayne@69
|
3003 );
|
jpayne@69
|
3004
|
jpayne@69
|
3005 extern int XQueryTextExtents(
|
jpayne@69
|
3006 Display* /* display */,
|
jpayne@69
|
3007 XID /* font_ID */,
|
jpayne@69
|
3008 _Xconst char* /* string */,
|
jpayne@69
|
3009 int /* nchars */,
|
jpayne@69
|
3010 int* /* direction_return */,
|
jpayne@69
|
3011 int* /* font_ascent_return */,
|
jpayne@69
|
3012 int* /* font_descent_return */,
|
jpayne@69
|
3013 XCharStruct* /* overall_return */
|
jpayne@69
|
3014 );
|
jpayne@69
|
3015
|
jpayne@69
|
3016 extern int XQueryTextExtents16(
|
jpayne@69
|
3017 Display* /* display */,
|
jpayne@69
|
3018 XID /* font_ID */,
|
jpayne@69
|
3019 _Xconst XChar2b* /* string */,
|
jpayne@69
|
3020 int /* nchars */,
|
jpayne@69
|
3021 int* /* direction_return */,
|
jpayne@69
|
3022 int* /* font_ascent_return */,
|
jpayne@69
|
3023 int* /* font_descent_return */,
|
jpayne@69
|
3024 XCharStruct* /* overall_return */
|
jpayne@69
|
3025 );
|
jpayne@69
|
3026
|
jpayne@69
|
3027 extern Status XQueryTree(
|
jpayne@69
|
3028 Display* /* display */,
|
jpayne@69
|
3029 Window /* w */,
|
jpayne@69
|
3030 Window* /* root_return */,
|
jpayne@69
|
3031 Window* /* parent_return */,
|
jpayne@69
|
3032 Window** /* children_return */,
|
jpayne@69
|
3033 unsigned int* /* nchildren_return */
|
jpayne@69
|
3034 );
|
jpayne@69
|
3035
|
jpayne@69
|
3036 extern int XRaiseWindow(
|
jpayne@69
|
3037 Display* /* display */,
|
jpayne@69
|
3038 Window /* w */
|
jpayne@69
|
3039 );
|
jpayne@69
|
3040
|
jpayne@69
|
3041 extern int XReadBitmapFile(
|
jpayne@69
|
3042 Display* /* display */,
|
jpayne@69
|
3043 Drawable /* d */,
|
jpayne@69
|
3044 _Xconst char* /* filename */,
|
jpayne@69
|
3045 unsigned int* /* width_return */,
|
jpayne@69
|
3046 unsigned int* /* height_return */,
|
jpayne@69
|
3047 Pixmap* /* bitmap_return */,
|
jpayne@69
|
3048 int* /* x_hot_return */,
|
jpayne@69
|
3049 int* /* y_hot_return */
|
jpayne@69
|
3050 );
|
jpayne@69
|
3051
|
jpayne@69
|
3052 extern int XReadBitmapFileData(
|
jpayne@69
|
3053 _Xconst char* /* filename */,
|
jpayne@69
|
3054 unsigned int* /* width_return */,
|
jpayne@69
|
3055 unsigned int* /* height_return */,
|
jpayne@69
|
3056 unsigned char** /* data_return */,
|
jpayne@69
|
3057 int* /* x_hot_return */,
|
jpayne@69
|
3058 int* /* y_hot_return */
|
jpayne@69
|
3059 );
|
jpayne@69
|
3060
|
jpayne@69
|
3061 extern int XRebindKeysym(
|
jpayne@69
|
3062 Display* /* display */,
|
jpayne@69
|
3063 KeySym /* keysym */,
|
jpayne@69
|
3064 KeySym* /* list */,
|
jpayne@69
|
3065 int /* mod_count */,
|
jpayne@69
|
3066 _Xconst unsigned char* /* string */,
|
jpayne@69
|
3067 int /* bytes_string */
|
jpayne@69
|
3068 );
|
jpayne@69
|
3069
|
jpayne@69
|
3070 extern int XRecolorCursor(
|
jpayne@69
|
3071 Display* /* display */,
|
jpayne@69
|
3072 Cursor /* cursor */,
|
jpayne@69
|
3073 XColor* /* foreground_color */,
|
jpayne@69
|
3074 XColor* /* background_color */
|
jpayne@69
|
3075 );
|
jpayne@69
|
3076
|
jpayne@69
|
3077 extern int XRefreshKeyboardMapping(
|
jpayne@69
|
3078 XMappingEvent* /* event_map */
|
jpayne@69
|
3079 );
|
jpayne@69
|
3080
|
jpayne@69
|
3081 extern int XRemoveFromSaveSet(
|
jpayne@69
|
3082 Display* /* display */,
|
jpayne@69
|
3083 Window /* w */
|
jpayne@69
|
3084 );
|
jpayne@69
|
3085
|
jpayne@69
|
3086 extern int XRemoveHost(
|
jpayne@69
|
3087 Display* /* display */,
|
jpayne@69
|
3088 XHostAddress* /* host */
|
jpayne@69
|
3089 );
|
jpayne@69
|
3090
|
jpayne@69
|
3091 extern int XRemoveHosts(
|
jpayne@69
|
3092 Display* /* display */,
|
jpayne@69
|
3093 XHostAddress* /* hosts */,
|
jpayne@69
|
3094 int /* num_hosts */
|
jpayne@69
|
3095 );
|
jpayne@69
|
3096
|
jpayne@69
|
3097 extern int XReparentWindow(
|
jpayne@69
|
3098 Display* /* display */,
|
jpayne@69
|
3099 Window /* w */,
|
jpayne@69
|
3100 Window /* parent */,
|
jpayne@69
|
3101 int /* x */,
|
jpayne@69
|
3102 int /* y */
|
jpayne@69
|
3103 );
|
jpayne@69
|
3104
|
jpayne@69
|
3105 extern int XResetScreenSaver(
|
jpayne@69
|
3106 Display* /* display */
|
jpayne@69
|
3107 );
|
jpayne@69
|
3108
|
jpayne@69
|
3109 extern int XResizeWindow(
|
jpayne@69
|
3110 Display* /* display */,
|
jpayne@69
|
3111 Window /* w */,
|
jpayne@69
|
3112 unsigned int /* width */,
|
jpayne@69
|
3113 unsigned int /* height */
|
jpayne@69
|
3114 );
|
jpayne@69
|
3115
|
jpayne@69
|
3116 extern int XRestackWindows(
|
jpayne@69
|
3117 Display* /* display */,
|
jpayne@69
|
3118 Window* /* windows */,
|
jpayne@69
|
3119 int /* nwindows */
|
jpayne@69
|
3120 );
|
jpayne@69
|
3121
|
jpayne@69
|
3122 extern int XRotateBuffers(
|
jpayne@69
|
3123 Display* /* display */,
|
jpayne@69
|
3124 int /* rotate */
|
jpayne@69
|
3125 );
|
jpayne@69
|
3126
|
jpayne@69
|
3127 extern int XRotateWindowProperties(
|
jpayne@69
|
3128 Display* /* display */,
|
jpayne@69
|
3129 Window /* w */,
|
jpayne@69
|
3130 Atom* /* properties */,
|
jpayne@69
|
3131 int /* num_prop */,
|
jpayne@69
|
3132 int /* npositions */
|
jpayne@69
|
3133 );
|
jpayne@69
|
3134
|
jpayne@69
|
3135 extern int XScreenCount(
|
jpayne@69
|
3136 Display* /* display */
|
jpayne@69
|
3137 );
|
jpayne@69
|
3138
|
jpayne@69
|
3139 extern int XSelectInput(
|
jpayne@69
|
3140 Display* /* display */,
|
jpayne@69
|
3141 Window /* w */,
|
jpayne@69
|
3142 long /* event_mask */
|
jpayne@69
|
3143 );
|
jpayne@69
|
3144
|
jpayne@69
|
3145 extern Status XSendEvent(
|
jpayne@69
|
3146 Display* /* display */,
|
jpayne@69
|
3147 Window /* w */,
|
jpayne@69
|
3148 Bool /* propagate */,
|
jpayne@69
|
3149 long /* event_mask */,
|
jpayne@69
|
3150 XEvent* /* event_send */
|
jpayne@69
|
3151 );
|
jpayne@69
|
3152
|
jpayne@69
|
3153 extern int XSetAccessControl(
|
jpayne@69
|
3154 Display* /* display */,
|
jpayne@69
|
3155 int /* mode */
|
jpayne@69
|
3156 );
|
jpayne@69
|
3157
|
jpayne@69
|
3158 extern int XSetArcMode(
|
jpayne@69
|
3159 Display* /* display */,
|
jpayne@69
|
3160 GC /* gc */,
|
jpayne@69
|
3161 int /* arc_mode */
|
jpayne@69
|
3162 );
|
jpayne@69
|
3163
|
jpayne@69
|
3164 extern int XSetBackground(
|
jpayne@69
|
3165 Display* /* display */,
|
jpayne@69
|
3166 GC /* gc */,
|
jpayne@69
|
3167 unsigned long /* background */
|
jpayne@69
|
3168 );
|
jpayne@69
|
3169
|
jpayne@69
|
3170 extern int XSetClipMask(
|
jpayne@69
|
3171 Display* /* display */,
|
jpayne@69
|
3172 GC /* gc */,
|
jpayne@69
|
3173 Pixmap /* pixmap */
|
jpayne@69
|
3174 );
|
jpayne@69
|
3175
|
jpayne@69
|
3176 extern int XSetClipOrigin(
|
jpayne@69
|
3177 Display* /* display */,
|
jpayne@69
|
3178 GC /* gc */,
|
jpayne@69
|
3179 int /* clip_x_origin */,
|
jpayne@69
|
3180 int /* clip_y_origin */
|
jpayne@69
|
3181 );
|
jpayne@69
|
3182
|
jpayne@69
|
3183 extern int XSetClipRectangles(
|
jpayne@69
|
3184 Display* /* display */,
|
jpayne@69
|
3185 GC /* gc */,
|
jpayne@69
|
3186 int /* clip_x_origin */,
|
jpayne@69
|
3187 int /* clip_y_origin */,
|
jpayne@69
|
3188 XRectangle* /* rectangles */,
|
jpayne@69
|
3189 int /* n */,
|
jpayne@69
|
3190 int /* ordering */
|
jpayne@69
|
3191 );
|
jpayne@69
|
3192
|
jpayne@69
|
3193 extern int XSetCloseDownMode(
|
jpayne@69
|
3194 Display* /* display */,
|
jpayne@69
|
3195 int /* close_mode */
|
jpayne@69
|
3196 );
|
jpayne@69
|
3197
|
jpayne@69
|
3198 extern int XSetCommand(
|
jpayne@69
|
3199 Display* /* display */,
|
jpayne@69
|
3200 Window /* w */,
|
jpayne@69
|
3201 char** /* argv */,
|
jpayne@69
|
3202 int /* argc */
|
jpayne@69
|
3203 );
|
jpayne@69
|
3204
|
jpayne@69
|
3205 extern int XSetDashes(
|
jpayne@69
|
3206 Display* /* display */,
|
jpayne@69
|
3207 GC /* gc */,
|
jpayne@69
|
3208 int /* dash_offset */,
|
jpayne@69
|
3209 _Xconst char* /* dash_list */,
|
jpayne@69
|
3210 int /* n */
|
jpayne@69
|
3211 );
|
jpayne@69
|
3212
|
jpayne@69
|
3213 extern int XSetFillRule(
|
jpayne@69
|
3214 Display* /* display */,
|
jpayne@69
|
3215 GC /* gc */,
|
jpayne@69
|
3216 int /* fill_rule */
|
jpayne@69
|
3217 );
|
jpayne@69
|
3218
|
jpayne@69
|
3219 extern int XSetFillStyle(
|
jpayne@69
|
3220 Display* /* display */,
|
jpayne@69
|
3221 GC /* gc */,
|
jpayne@69
|
3222 int /* fill_style */
|
jpayne@69
|
3223 );
|
jpayne@69
|
3224
|
jpayne@69
|
3225 extern int XSetFont(
|
jpayne@69
|
3226 Display* /* display */,
|
jpayne@69
|
3227 GC /* gc */,
|
jpayne@69
|
3228 Font /* font */
|
jpayne@69
|
3229 );
|
jpayne@69
|
3230
|
jpayne@69
|
3231 extern int XSetFontPath(
|
jpayne@69
|
3232 Display* /* display */,
|
jpayne@69
|
3233 char** /* directories */,
|
jpayne@69
|
3234 int /* ndirs */
|
jpayne@69
|
3235 );
|
jpayne@69
|
3236
|
jpayne@69
|
3237 extern int XSetForeground(
|
jpayne@69
|
3238 Display* /* display */,
|
jpayne@69
|
3239 GC /* gc */,
|
jpayne@69
|
3240 unsigned long /* foreground */
|
jpayne@69
|
3241 );
|
jpayne@69
|
3242
|
jpayne@69
|
3243 extern int XSetFunction(
|
jpayne@69
|
3244 Display* /* display */,
|
jpayne@69
|
3245 GC /* gc */,
|
jpayne@69
|
3246 int /* function */
|
jpayne@69
|
3247 );
|
jpayne@69
|
3248
|
jpayne@69
|
3249 extern int XSetGraphicsExposures(
|
jpayne@69
|
3250 Display* /* display */,
|
jpayne@69
|
3251 GC /* gc */,
|
jpayne@69
|
3252 Bool /* graphics_exposures */
|
jpayne@69
|
3253 );
|
jpayne@69
|
3254
|
jpayne@69
|
3255 extern int XSetIconName(
|
jpayne@69
|
3256 Display* /* display */,
|
jpayne@69
|
3257 Window /* w */,
|
jpayne@69
|
3258 _Xconst char* /* icon_name */
|
jpayne@69
|
3259 );
|
jpayne@69
|
3260
|
jpayne@69
|
3261 extern int XSetInputFocus(
|
jpayne@69
|
3262 Display* /* display */,
|
jpayne@69
|
3263 Window /* focus */,
|
jpayne@69
|
3264 int /* revert_to */,
|
jpayne@69
|
3265 Time /* time */
|
jpayne@69
|
3266 );
|
jpayne@69
|
3267
|
jpayne@69
|
3268 extern int XSetLineAttributes(
|
jpayne@69
|
3269 Display* /* display */,
|
jpayne@69
|
3270 GC /* gc */,
|
jpayne@69
|
3271 unsigned int /* line_width */,
|
jpayne@69
|
3272 int /* line_style */,
|
jpayne@69
|
3273 int /* cap_style */,
|
jpayne@69
|
3274 int /* join_style */
|
jpayne@69
|
3275 );
|
jpayne@69
|
3276
|
jpayne@69
|
3277 extern int XSetModifierMapping(
|
jpayne@69
|
3278 Display* /* display */,
|
jpayne@69
|
3279 XModifierKeymap* /* modmap */
|
jpayne@69
|
3280 );
|
jpayne@69
|
3281
|
jpayne@69
|
3282 extern int XSetPlaneMask(
|
jpayne@69
|
3283 Display* /* display */,
|
jpayne@69
|
3284 GC /* gc */,
|
jpayne@69
|
3285 unsigned long /* plane_mask */
|
jpayne@69
|
3286 );
|
jpayne@69
|
3287
|
jpayne@69
|
3288 extern int XSetPointerMapping(
|
jpayne@69
|
3289 Display* /* display */,
|
jpayne@69
|
3290 _Xconst unsigned char* /* map */,
|
jpayne@69
|
3291 int /* nmap */
|
jpayne@69
|
3292 );
|
jpayne@69
|
3293
|
jpayne@69
|
3294 extern int XSetScreenSaver(
|
jpayne@69
|
3295 Display* /* display */,
|
jpayne@69
|
3296 int /* timeout */,
|
jpayne@69
|
3297 int /* interval */,
|
jpayne@69
|
3298 int /* prefer_blanking */,
|
jpayne@69
|
3299 int /* allow_exposures */
|
jpayne@69
|
3300 );
|
jpayne@69
|
3301
|
jpayne@69
|
3302 extern int XSetSelectionOwner(
|
jpayne@69
|
3303 Display* /* display */,
|
jpayne@69
|
3304 Atom /* selection */,
|
jpayne@69
|
3305 Window /* owner */,
|
jpayne@69
|
3306 Time /* time */
|
jpayne@69
|
3307 );
|
jpayne@69
|
3308
|
jpayne@69
|
3309 extern int XSetState(
|
jpayne@69
|
3310 Display* /* display */,
|
jpayne@69
|
3311 GC /* gc */,
|
jpayne@69
|
3312 unsigned long /* foreground */,
|
jpayne@69
|
3313 unsigned long /* background */,
|
jpayne@69
|
3314 int /* function */,
|
jpayne@69
|
3315 unsigned long /* plane_mask */
|
jpayne@69
|
3316 );
|
jpayne@69
|
3317
|
jpayne@69
|
3318 extern int XSetStipple(
|
jpayne@69
|
3319 Display* /* display */,
|
jpayne@69
|
3320 GC /* gc */,
|
jpayne@69
|
3321 Pixmap /* stipple */
|
jpayne@69
|
3322 );
|
jpayne@69
|
3323
|
jpayne@69
|
3324 extern int XSetSubwindowMode(
|
jpayne@69
|
3325 Display* /* display */,
|
jpayne@69
|
3326 GC /* gc */,
|
jpayne@69
|
3327 int /* subwindow_mode */
|
jpayne@69
|
3328 );
|
jpayne@69
|
3329
|
jpayne@69
|
3330 extern int XSetTSOrigin(
|
jpayne@69
|
3331 Display* /* display */,
|
jpayne@69
|
3332 GC /* gc */,
|
jpayne@69
|
3333 int /* ts_x_origin */,
|
jpayne@69
|
3334 int /* ts_y_origin */
|
jpayne@69
|
3335 );
|
jpayne@69
|
3336
|
jpayne@69
|
3337 extern int XSetTile(
|
jpayne@69
|
3338 Display* /* display */,
|
jpayne@69
|
3339 GC /* gc */,
|
jpayne@69
|
3340 Pixmap /* tile */
|
jpayne@69
|
3341 );
|
jpayne@69
|
3342
|
jpayne@69
|
3343 extern int XSetWindowBackground(
|
jpayne@69
|
3344 Display* /* display */,
|
jpayne@69
|
3345 Window /* w */,
|
jpayne@69
|
3346 unsigned long /* background_pixel */
|
jpayne@69
|
3347 );
|
jpayne@69
|
3348
|
jpayne@69
|
3349 extern int XSetWindowBackgroundPixmap(
|
jpayne@69
|
3350 Display* /* display */,
|
jpayne@69
|
3351 Window /* w */,
|
jpayne@69
|
3352 Pixmap /* background_pixmap */
|
jpayne@69
|
3353 );
|
jpayne@69
|
3354
|
jpayne@69
|
3355 extern int XSetWindowBorder(
|
jpayne@69
|
3356 Display* /* display */,
|
jpayne@69
|
3357 Window /* w */,
|
jpayne@69
|
3358 unsigned long /* border_pixel */
|
jpayne@69
|
3359 );
|
jpayne@69
|
3360
|
jpayne@69
|
3361 extern int XSetWindowBorderPixmap(
|
jpayne@69
|
3362 Display* /* display */,
|
jpayne@69
|
3363 Window /* w */,
|
jpayne@69
|
3364 Pixmap /* border_pixmap */
|
jpayne@69
|
3365 );
|
jpayne@69
|
3366
|
jpayne@69
|
3367 extern int XSetWindowBorderWidth(
|
jpayne@69
|
3368 Display* /* display */,
|
jpayne@69
|
3369 Window /* w */,
|
jpayne@69
|
3370 unsigned int /* width */
|
jpayne@69
|
3371 );
|
jpayne@69
|
3372
|
jpayne@69
|
3373 extern int XSetWindowColormap(
|
jpayne@69
|
3374 Display* /* display */,
|
jpayne@69
|
3375 Window /* w */,
|
jpayne@69
|
3376 Colormap /* colormap */
|
jpayne@69
|
3377 );
|
jpayne@69
|
3378
|
jpayne@69
|
3379 extern int XStoreBuffer(
|
jpayne@69
|
3380 Display* /* display */,
|
jpayne@69
|
3381 _Xconst char* /* bytes */,
|
jpayne@69
|
3382 int /* nbytes */,
|
jpayne@69
|
3383 int /* buffer */
|
jpayne@69
|
3384 );
|
jpayne@69
|
3385
|
jpayne@69
|
3386 extern int XStoreBytes(
|
jpayne@69
|
3387 Display* /* display */,
|
jpayne@69
|
3388 _Xconst char* /* bytes */,
|
jpayne@69
|
3389 int /* nbytes */
|
jpayne@69
|
3390 );
|
jpayne@69
|
3391
|
jpayne@69
|
3392 extern int XStoreColor(
|
jpayne@69
|
3393 Display* /* display */,
|
jpayne@69
|
3394 Colormap /* colormap */,
|
jpayne@69
|
3395 XColor* /* color */
|
jpayne@69
|
3396 );
|
jpayne@69
|
3397
|
jpayne@69
|
3398 extern int XStoreColors(
|
jpayne@69
|
3399 Display* /* display */,
|
jpayne@69
|
3400 Colormap /* colormap */,
|
jpayne@69
|
3401 XColor* /* color */,
|
jpayne@69
|
3402 int /* ncolors */
|
jpayne@69
|
3403 );
|
jpayne@69
|
3404
|
jpayne@69
|
3405 extern int XStoreName(
|
jpayne@69
|
3406 Display* /* display */,
|
jpayne@69
|
3407 Window /* w */,
|
jpayne@69
|
3408 _Xconst char* /* window_name */
|
jpayne@69
|
3409 );
|
jpayne@69
|
3410
|
jpayne@69
|
3411 extern int XStoreNamedColor(
|
jpayne@69
|
3412 Display* /* display */,
|
jpayne@69
|
3413 Colormap /* colormap */,
|
jpayne@69
|
3414 _Xconst char* /* color */,
|
jpayne@69
|
3415 unsigned long /* pixel */,
|
jpayne@69
|
3416 int /* flags */
|
jpayne@69
|
3417 );
|
jpayne@69
|
3418
|
jpayne@69
|
3419 extern int XSync(
|
jpayne@69
|
3420 Display* /* display */,
|
jpayne@69
|
3421 Bool /* discard */
|
jpayne@69
|
3422 );
|
jpayne@69
|
3423
|
jpayne@69
|
3424 extern int XTextExtents(
|
jpayne@69
|
3425 XFontStruct* /* font_struct */,
|
jpayne@69
|
3426 _Xconst char* /* string */,
|
jpayne@69
|
3427 int /* nchars */,
|
jpayne@69
|
3428 int* /* direction_return */,
|
jpayne@69
|
3429 int* /* font_ascent_return */,
|
jpayne@69
|
3430 int* /* font_descent_return */,
|
jpayne@69
|
3431 XCharStruct* /* overall_return */
|
jpayne@69
|
3432 );
|
jpayne@69
|
3433
|
jpayne@69
|
3434 extern int XTextExtents16(
|
jpayne@69
|
3435 XFontStruct* /* font_struct */,
|
jpayne@69
|
3436 _Xconst XChar2b* /* string */,
|
jpayne@69
|
3437 int /* nchars */,
|
jpayne@69
|
3438 int* /* direction_return */,
|
jpayne@69
|
3439 int* /* font_ascent_return */,
|
jpayne@69
|
3440 int* /* font_descent_return */,
|
jpayne@69
|
3441 XCharStruct* /* overall_return */
|
jpayne@69
|
3442 );
|
jpayne@69
|
3443
|
jpayne@69
|
3444 extern int XTextWidth(
|
jpayne@69
|
3445 XFontStruct* /* font_struct */,
|
jpayne@69
|
3446 _Xconst char* /* string */,
|
jpayne@69
|
3447 int /* count */
|
jpayne@69
|
3448 );
|
jpayne@69
|
3449
|
jpayne@69
|
3450 extern int XTextWidth16(
|
jpayne@69
|
3451 XFontStruct* /* font_struct */,
|
jpayne@69
|
3452 _Xconst XChar2b* /* string */,
|
jpayne@69
|
3453 int /* count */
|
jpayne@69
|
3454 );
|
jpayne@69
|
3455
|
jpayne@69
|
3456 extern Bool XTranslateCoordinates(
|
jpayne@69
|
3457 Display* /* display */,
|
jpayne@69
|
3458 Window /* src_w */,
|
jpayne@69
|
3459 Window /* dest_w */,
|
jpayne@69
|
3460 int /* src_x */,
|
jpayne@69
|
3461 int /* src_y */,
|
jpayne@69
|
3462 int* /* dest_x_return */,
|
jpayne@69
|
3463 int* /* dest_y_return */,
|
jpayne@69
|
3464 Window* /* child_return */
|
jpayne@69
|
3465 );
|
jpayne@69
|
3466
|
jpayne@69
|
3467 extern int XUndefineCursor(
|
jpayne@69
|
3468 Display* /* display */,
|
jpayne@69
|
3469 Window /* w */
|
jpayne@69
|
3470 );
|
jpayne@69
|
3471
|
jpayne@69
|
3472 extern int XUngrabButton(
|
jpayne@69
|
3473 Display* /* display */,
|
jpayne@69
|
3474 unsigned int /* button */,
|
jpayne@69
|
3475 unsigned int /* modifiers */,
|
jpayne@69
|
3476 Window /* grab_window */
|
jpayne@69
|
3477 );
|
jpayne@69
|
3478
|
jpayne@69
|
3479 extern int XUngrabKey(
|
jpayne@69
|
3480 Display* /* display */,
|
jpayne@69
|
3481 int /* keycode */,
|
jpayne@69
|
3482 unsigned int /* modifiers */,
|
jpayne@69
|
3483 Window /* grab_window */
|
jpayne@69
|
3484 );
|
jpayne@69
|
3485
|
jpayne@69
|
3486 extern int XUngrabKeyboard(
|
jpayne@69
|
3487 Display* /* display */,
|
jpayne@69
|
3488 Time /* time */
|
jpayne@69
|
3489 );
|
jpayne@69
|
3490
|
jpayne@69
|
3491 extern int XUngrabPointer(
|
jpayne@69
|
3492 Display* /* display */,
|
jpayne@69
|
3493 Time /* time */
|
jpayne@69
|
3494 );
|
jpayne@69
|
3495
|
jpayne@69
|
3496 extern int XUngrabServer(
|
jpayne@69
|
3497 Display* /* display */
|
jpayne@69
|
3498 );
|
jpayne@69
|
3499
|
jpayne@69
|
3500 extern int XUninstallColormap(
|
jpayne@69
|
3501 Display* /* display */,
|
jpayne@69
|
3502 Colormap /* colormap */
|
jpayne@69
|
3503 );
|
jpayne@69
|
3504
|
jpayne@69
|
3505 extern int XUnloadFont(
|
jpayne@69
|
3506 Display* /* display */,
|
jpayne@69
|
3507 Font /* font */
|
jpayne@69
|
3508 );
|
jpayne@69
|
3509
|
jpayne@69
|
3510 extern int XUnmapSubwindows(
|
jpayne@69
|
3511 Display* /* display */,
|
jpayne@69
|
3512 Window /* w */
|
jpayne@69
|
3513 );
|
jpayne@69
|
3514
|
jpayne@69
|
3515 extern int XUnmapWindow(
|
jpayne@69
|
3516 Display* /* display */,
|
jpayne@69
|
3517 Window /* w */
|
jpayne@69
|
3518 );
|
jpayne@69
|
3519
|
jpayne@69
|
3520 extern int XVendorRelease(
|
jpayne@69
|
3521 Display* /* display */
|
jpayne@69
|
3522 );
|
jpayne@69
|
3523
|
jpayne@69
|
3524 extern int XWarpPointer(
|
jpayne@69
|
3525 Display* /* display */,
|
jpayne@69
|
3526 Window /* src_w */,
|
jpayne@69
|
3527 Window /* dest_w */,
|
jpayne@69
|
3528 int /* src_x */,
|
jpayne@69
|
3529 int /* src_y */,
|
jpayne@69
|
3530 unsigned int /* src_width */,
|
jpayne@69
|
3531 unsigned int /* src_height */,
|
jpayne@69
|
3532 int /* dest_x */,
|
jpayne@69
|
3533 int /* dest_y */
|
jpayne@69
|
3534 );
|
jpayne@69
|
3535
|
jpayne@69
|
3536 extern int XWidthMMOfScreen(
|
jpayne@69
|
3537 Screen* /* screen */
|
jpayne@69
|
3538 );
|
jpayne@69
|
3539
|
jpayne@69
|
3540 extern int XWidthOfScreen(
|
jpayne@69
|
3541 Screen* /* screen */
|
jpayne@69
|
3542 );
|
jpayne@69
|
3543
|
jpayne@69
|
3544 extern int XWindowEvent(
|
jpayne@69
|
3545 Display* /* display */,
|
jpayne@69
|
3546 Window /* w */,
|
jpayne@69
|
3547 long /* event_mask */,
|
jpayne@69
|
3548 XEvent* /* event_return */
|
jpayne@69
|
3549 );
|
jpayne@69
|
3550
|
jpayne@69
|
3551 extern int XWriteBitmapFile(
|
jpayne@69
|
3552 Display* /* display */,
|
jpayne@69
|
3553 _Xconst char* /* filename */,
|
jpayne@69
|
3554 Pixmap /* bitmap */,
|
jpayne@69
|
3555 unsigned int /* width */,
|
jpayne@69
|
3556 unsigned int /* height */,
|
jpayne@69
|
3557 int /* x_hot */,
|
jpayne@69
|
3558 int /* y_hot */
|
jpayne@69
|
3559 );
|
jpayne@69
|
3560
|
jpayne@69
|
3561 extern Bool XSupportsLocale (void);
|
jpayne@69
|
3562
|
jpayne@69
|
3563 extern char *XSetLocaleModifiers(
|
jpayne@69
|
3564 const char* /* modifier_list */
|
jpayne@69
|
3565 );
|
jpayne@69
|
3566
|
jpayne@69
|
3567 extern XOM XOpenOM(
|
jpayne@69
|
3568 Display* /* display */,
|
jpayne@69
|
3569 struct _XrmHashBucketRec* /* rdb */,
|
jpayne@69
|
3570 _Xconst char* /* res_name */,
|
jpayne@69
|
3571 _Xconst char* /* res_class */
|
jpayne@69
|
3572 );
|
jpayne@69
|
3573
|
jpayne@69
|
3574 extern Status XCloseOM(
|
jpayne@69
|
3575 XOM /* om */
|
jpayne@69
|
3576 );
|
jpayne@69
|
3577
|
jpayne@69
|
3578 extern char *XSetOMValues(
|
jpayne@69
|
3579 XOM /* om */,
|
jpayne@69
|
3580 ...
|
jpayne@69
|
3581 ) _X_SENTINEL(0);
|
jpayne@69
|
3582
|
jpayne@69
|
3583 extern char *XGetOMValues(
|
jpayne@69
|
3584 XOM /* om */,
|
jpayne@69
|
3585 ...
|
jpayne@69
|
3586 ) _X_SENTINEL(0);
|
jpayne@69
|
3587
|
jpayne@69
|
3588 extern Display *XDisplayOfOM(
|
jpayne@69
|
3589 XOM /* om */
|
jpayne@69
|
3590 );
|
jpayne@69
|
3591
|
jpayne@69
|
3592 extern char *XLocaleOfOM(
|
jpayne@69
|
3593 XOM /* om */
|
jpayne@69
|
3594 );
|
jpayne@69
|
3595
|
jpayne@69
|
3596 extern XOC XCreateOC(
|
jpayne@69
|
3597 XOM /* om */,
|
jpayne@69
|
3598 ...
|
jpayne@69
|
3599 ) _X_SENTINEL(0);
|
jpayne@69
|
3600
|
jpayne@69
|
3601 extern void XDestroyOC(
|
jpayne@69
|
3602 XOC /* oc */
|
jpayne@69
|
3603 );
|
jpayne@69
|
3604
|
jpayne@69
|
3605 extern XOM XOMOfOC(
|
jpayne@69
|
3606 XOC /* oc */
|
jpayne@69
|
3607 );
|
jpayne@69
|
3608
|
jpayne@69
|
3609 extern char *XSetOCValues(
|
jpayne@69
|
3610 XOC /* oc */,
|
jpayne@69
|
3611 ...
|
jpayne@69
|
3612 ) _X_SENTINEL(0);
|
jpayne@69
|
3613
|
jpayne@69
|
3614 extern char *XGetOCValues(
|
jpayne@69
|
3615 XOC /* oc */,
|
jpayne@69
|
3616 ...
|
jpayne@69
|
3617 ) _X_SENTINEL(0);
|
jpayne@69
|
3618
|
jpayne@69
|
3619 extern XFontSet XCreateFontSet(
|
jpayne@69
|
3620 Display* /* display */,
|
jpayne@69
|
3621 _Xconst char* /* base_font_name_list */,
|
jpayne@69
|
3622 char*** /* missing_charset_list */,
|
jpayne@69
|
3623 int* /* missing_charset_count */,
|
jpayne@69
|
3624 char** /* def_string */
|
jpayne@69
|
3625 );
|
jpayne@69
|
3626
|
jpayne@69
|
3627 extern void XFreeFontSet(
|
jpayne@69
|
3628 Display* /* display */,
|
jpayne@69
|
3629 XFontSet /* font_set */
|
jpayne@69
|
3630 );
|
jpayne@69
|
3631
|
jpayne@69
|
3632 extern int XFontsOfFontSet(
|
jpayne@69
|
3633 XFontSet /* font_set */,
|
jpayne@69
|
3634 XFontStruct*** /* font_struct_list */,
|
jpayne@69
|
3635 char*** /* font_name_list */
|
jpayne@69
|
3636 );
|
jpayne@69
|
3637
|
jpayne@69
|
3638 extern char *XBaseFontNameListOfFontSet(
|
jpayne@69
|
3639 XFontSet /* font_set */
|
jpayne@69
|
3640 );
|
jpayne@69
|
3641
|
jpayne@69
|
3642 extern char *XLocaleOfFontSet(
|
jpayne@69
|
3643 XFontSet /* font_set */
|
jpayne@69
|
3644 );
|
jpayne@69
|
3645
|
jpayne@69
|
3646 extern Bool XContextDependentDrawing(
|
jpayne@69
|
3647 XFontSet /* font_set */
|
jpayne@69
|
3648 );
|
jpayne@69
|
3649
|
jpayne@69
|
3650 extern Bool XDirectionalDependentDrawing(
|
jpayne@69
|
3651 XFontSet /* font_set */
|
jpayne@69
|
3652 );
|
jpayne@69
|
3653
|
jpayne@69
|
3654 extern Bool XContextualDrawing(
|
jpayne@69
|
3655 XFontSet /* font_set */
|
jpayne@69
|
3656 );
|
jpayne@69
|
3657
|
jpayne@69
|
3658 extern XFontSetExtents *XExtentsOfFontSet(
|
jpayne@69
|
3659 XFontSet /* font_set */
|
jpayne@69
|
3660 );
|
jpayne@69
|
3661
|
jpayne@69
|
3662 extern int XmbTextEscapement(
|
jpayne@69
|
3663 XFontSet /* font_set */,
|
jpayne@69
|
3664 _Xconst char* /* text */,
|
jpayne@69
|
3665 int /* bytes_text */
|
jpayne@69
|
3666 );
|
jpayne@69
|
3667
|
jpayne@69
|
3668 extern int XwcTextEscapement(
|
jpayne@69
|
3669 XFontSet /* font_set */,
|
jpayne@69
|
3670 _Xconst wchar_t* /* text */,
|
jpayne@69
|
3671 int /* num_wchars */
|
jpayne@69
|
3672 );
|
jpayne@69
|
3673
|
jpayne@69
|
3674 extern int Xutf8TextEscapement(
|
jpayne@69
|
3675 XFontSet /* font_set */,
|
jpayne@69
|
3676 _Xconst char* /* text */,
|
jpayne@69
|
3677 int /* bytes_text */
|
jpayne@69
|
3678 );
|
jpayne@69
|
3679
|
jpayne@69
|
3680 extern int XmbTextExtents(
|
jpayne@69
|
3681 XFontSet /* font_set */,
|
jpayne@69
|
3682 _Xconst char* /* text */,
|
jpayne@69
|
3683 int /* bytes_text */,
|
jpayne@69
|
3684 XRectangle* /* overall_ink_return */,
|
jpayne@69
|
3685 XRectangle* /* overall_logical_return */
|
jpayne@69
|
3686 );
|
jpayne@69
|
3687
|
jpayne@69
|
3688 extern int XwcTextExtents(
|
jpayne@69
|
3689 XFontSet /* font_set */,
|
jpayne@69
|
3690 _Xconst wchar_t* /* text */,
|
jpayne@69
|
3691 int /* num_wchars */,
|
jpayne@69
|
3692 XRectangle* /* overall_ink_return */,
|
jpayne@69
|
3693 XRectangle* /* overall_logical_return */
|
jpayne@69
|
3694 );
|
jpayne@69
|
3695
|
jpayne@69
|
3696 extern int Xutf8TextExtents(
|
jpayne@69
|
3697 XFontSet /* font_set */,
|
jpayne@69
|
3698 _Xconst char* /* text */,
|
jpayne@69
|
3699 int /* bytes_text */,
|
jpayne@69
|
3700 XRectangle* /* overall_ink_return */,
|
jpayne@69
|
3701 XRectangle* /* overall_logical_return */
|
jpayne@69
|
3702 );
|
jpayne@69
|
3703
|
jpayne@69
|
3704 extern Status XmbTextPerCharExtents(
|
jpayne@69
|
3705 XFontSet /* font_set */,
|
jpayne@69
|
3706 _Xconst char* /* text */,
|
jpayne@69
|
3707 int /* bytes_text */,
|
jpayne@69
|
3708 XRectangle* /* ink_extents_buffer */,
|
jpayne@69
|
3709 XRectangle* /* logical_extents_buffer */,
|
jpayne@69
|
3710 int /* buffer_size */,
|
jpayne@69
|
3711 int* /* num_chars */,
|
jpayne@69
|
3712 XRectangle* /* overall_ink_return */,
|
jpayne@69
|
3713 XRectangle* /* overall_logical_return */
|
jpayne@69
|
3714 );
|
jpayne@69
|
3715
|
jpayne@69
|
3716 extern Status XwcTextPerCharExtents(
|
jpayne@69
|
3717 XFontSet /* font_set */,
|
jpayne@69
|
3718 _Xconst wchar_t* /* text */,
|
jpayne@69
|
3719 int /* num_wchars */,
|
jpayne@69
|
3720 XRectangle* /* ink_extents_buffer */,
|
jpayne@69
|
3721 XRectangle* /* logical_extents_buffer */,
|
jpayne@69
|
3722 int /* buffer_size */,
|
jpayne@69
|
3723 int* /* num_chars */,
|
jpayne@69
|
3724 XRectangle* /* overall_ink_return */,
|
jpayne@69
|
3725 XRectangle* /* overall_logical_return */
|
jpayne@69
|
3726 );
|
jpayne@69
|
3727
|
jpayne@69
|
3728 extern Status Xutf8TextPerCharExtents(
|
jpayne@69
|
3729 XFontSet /* font_set */,
|
jpayne@69
|
3730 _Xconst char* /* text */,
|
jpayne@69
|
3731 int /* bytes_text */,
|
jpayne@69
|
3732 XRectangle* /* ink_extents_buffer */,
|
jpayne@69
|
3733 XRectangle* /* logical_extents_buffer */,
|
jpayne@69
|
3734 int /* buffer_size */,
|
jpayne@69
|
3735 int* /* num_chars */,
|
jpayne@69
|
3736 XRectangle* /* overall_ink_return */,
|
jpayne@69
|
3737 XRectangle* /* overall_logical_return */
|
jpayne@69
|
3738 );
|
jpayne@69
|
3739
|
jpayne@69
|
3740 extern void XmbDrawText(
|
jpayne@69
|
3741 Display* /* display */,
|
jpayne@69
|
3742 Drawable /* d */,
|
jpayne@69
|
3743 GC /* gc */,
|
jpayne@69
|
3744 int /* x */,
|
jpayne@69
|
3745 int /* y */,
|
jpayne@69
|
3746 XmbTextItem* /* text_items */,
|
jpayne@69
|
3747 int /* nitems */
|
jpayne@69
|
3748 );
|
jpayne@69
|
3749
|
jpayne@69
|
3750 extern void XwcDrawText(
|
jpayne@69
|
3751 Display* /* display */,
|
jpayne@69
|
3752 Drawable /* d */,
|
jpayne@69
|
3753 GC /* gc */,
|
jpayne@69
|
3754 int /* x */,
|
jpayne@69
|
3755 int /* y */,
|
jpayne@69
|
3756 XwcTextItem* /* text_items */,
|
jpayne@69
|
3757 int /* nitems */
|
jpayne@69
|
3758 );
|
jpayne@69
|
3759
|
jpayne@69
|
3760 extern void Xutf8DrawText(
|
jpayne@69
|
3761 Display* /* display */,
|
jpayne@69
|
3762 Drawable /* d */,
|
jpayne@69
|
3763 GC /* gc */,
|
jpayne@69
|
3764 int /* x */,
|
jpayne@69
|
3765 int /* y */,
|
jpayne@69
|
3766 XmbTextItem* /* text_items */,
|
jpayne@69
|
3767 int /* nitems */
|
jpayne@69
|
3768 );
|
jpayne@69
|
3769
|
jpayne@69
|
3770 extern void XmbDrawString(
|
jpayne@69
|
3771 Display* /* display */,
|
jpayne@69
|
3772 Drawable /* d */,
|
jpayne@69
|
3773 XFontSet /* font_set */,
|
jpayne@69
|
3774 GC /* gc */,
|
jpayne@69
|
3775 int /* x */,
|
jpayne@69
|
3776 int /* y */,
|
jpayne@69
|
3777 _Xconst char* /* text */,
|
jpayne@69
|
3778 int /* bytes_text */
|
jpayne@69
|
3779 );
|
jpayne@69
|
3780
|
jpayne@69
|
3781 extern void XwcDrawString(
|
jpayne@69
|
3782 Display* /* display */,
|
jpayne@69
|
3783 Drawable /* d */,
|
jpayne@69
|
3784 XFontSet /* font_set */,
|
jpayne@69
|
3785 GC /* gc */,
|
jpayne@69
|
3786 int /* x */,
|
jpayne@69
|
3787 int /* y */,
|
jpayne@69
|
3788 _Xconst wchar_t* /* text */,
|
jpayne@69
|
3789 int /* num_wchars */
|
jpayne@69
|
3790 );
|
jpayne@69
|
3791
|
jpayne@69
|
3792 extern void Xutf8DrawString(
|
jpayne@69
|
3793 Display* /* display */,
|
jpayne@69
|
3794 Drawable /* d */,
|
jpayne@69
|
3795 XFontSet /* font_set */,
|
jpayne@69
|
3796 GC /* gc */,
|
jpayne@69
|
3797 int /* x */,
|
jpayne@69
|
3798 int /* y */,
|
jpayne@69
|
3799 _Xconst char* /* text */,
|
jpayne@69
|
3800 int /* bytes_text */
|
jpayne@69
|
3801 );
|
jpayne@69
|
3802
|
jpayne@69
|
3803 extern void XmbDrawImageString(
|
jpayne@69
|
3804 Display* /* display */,
|
jpayne@69
|
3805 Drawable /* d */,
|
jpayne@69
|
3806 XFontSet /* font_set */,
|
jpayne@69
|
3807 GC /* gc */,
|
jpayne@69
|
3808 int /* x */,
|
jpayne@69
|
3809 int /* y */,
|
jpayne@69
|
3810 _Xconst char* /* text */,
|
jpayne@69
|
3811 int /* bytes_text */
|
jpayne@69
|
3812 );
|
jpayne@69
|
3813
|
jpayne@69
|
3814 extern void XwcDrawImageString(
|
jpayne@69
|
3815 Display* /* display */,
|
jpayne@69
|
3816 Drawable /* d */,
|
jpayne@69
|
3817 XFontSet /* font_set */,
|
jpayne@69
|
3818 GC /* gc */,
|
jpayne@69
|
3819 int /* x */,
|
jpayne@69
|
3820 int /* y */,
|
jpayne@69
|
3821 _Xconst wchar_t* /* text */,
|
jpayne@69
|
3822 int /* num_wchars */
|
jpayne@69
|
3823 );
|
jpayne@69
|
3824
|
jpayne@69
|
3825 extern void Xutf8DrawImageString(
|
jpayne@69
|
3826 Display* /* display */,
|
jpayne@69
|
3827 Drawable /* d */,
|
jpayne@69
|
3828 XFontSet /* font_set */,
|
jpayne@69
|
3829 GC /* gc */,
|
jpayne@69
|
3830 int /* x */,
|
jpayne@69
|
3831 int /* y */,
|
jpayne@69
|
3832 _Xconst char* /* text */,
|
jpayne@69
|
3833 int /* bytes_text */
|
jpayne@69
|
3834 );
|
jpayne@69
|
3835
|
jpayne@69
|
3836 extern XIM XOpenIM(
|
jpayne@69
|
3837 Display* /* dpy */,
|
jpayne@69
|
3838 struct _XrmHashBucketRec* /* rdb */,
|
jpayne@69
|
3839 char* /* res_name */,
|
jpayne@69
|
3840 char* /* res_class */
|
jpayne@69
|
3841 );
|
jpayne@69
|
3842
|
jpayne@69
|
3843 extern Status XCloseIM(
|
jpayne@69
|
3844 XIM /* im */
|
jpayne@69
|
3845 );
|
jpayne@69
|
3846
|
jpayne@69
|
3847 extern char *XGetIMValues(
|
jpayne@69
|
3848 XIM /* im */, ...
|
jpayne@69
|
3849 ) _X_SENTINEL(0);
|
jpayne@69
|
3850
|
jpayne@69
|
3851 extern char *XSetIMValues(
|
jpayne@69
|
3852 XIM /* im */, ...
|
jpayne@69
|
3853 ) _X_SENTINEL(0);
|
jpayne@69
|
3854
|
jpayne@69
|
3855 extern Display *XDisplayOfIM(
|
jpayne@69
|
3856 XIM /* im */
|
jpayne@69
|
3857 );
|
jpayne@69
|
3858
|
jpayne@69
|
3859 extern char *XLocaleOfIM(
|
jpayne@69
|
3860 XIM /* im*/
|
jpayne@69
|
3861 );
|
jpayne@69
|
3862
|
jpayne@69
|
3863 extern XIC XCreateIC(
|
jpayne@69
|
3864 XIM /* im */, ...
|
jpayne@69
|
3865 ) _X_SENTINEL(0);
|
jpayne@69
|
3866
|
jpayne@69
|
3867 extern void XDestroyIC(
|
jpayne@69
|
3868 XIC /* ic */
|
jpayne@69
|
3869 );
|
jpayne@69
|
3870
|
jpayne@69
|
3871 extern void XSetICFocus(
|
jpayne@69
|
3872 XIC /* ic */
|
jpayne@69
|
3873 );
|
jpayne@69
|
3874
|
jpayne@69
|
3875 extern void XUnsetICFocus(
|
jpayne@69
|
3876 XIC /* ic */
|
jpayne@69
|
3877 );
|
jpayne@69
|
3878
|
jpayne@69
|
3879 extern wchar_t *XwcResetIC(
|
jpayne@69
|
3880 XIC /* ic */
|
jpayne@69
|
3881 );
|
jpayne@69
|
3882
|
jpayne@69
|
3883 extern char *XmbResetIC(
|
jpayne@69
|
3884 XIC /* ic */
|
jpayne@69
|
3885 );
|
jpayne@69
|
3886
|
jpayne@69
|
3887 extern char *Xutf8ResetIC(
|
jpayne@69
|
3888 XIC /* ic */
|
jpayne@69
|
3889 );
|
jpayne@69
|
3890
|
jpayne@69
|
3891 extern char *XSetICValues(
|
jpayne@69
|
3892 XIC /* ic */, ...
|
jpayne@69
|
3893 ) _X_SENTINEL(0);
|
jpayne@69
|
3894
|
jpayne@69
|
3895 extern char *XGetICValues(
|
jpayne@69
|
3896 XIC /* ic */, ...
|
jpayne@69
|
3897 ) _X_SENTINEL(0);
|
jpayne@69
|
3898
|
jpayne@69
|
3899 extern XIM XIMOfIC(
|
jpayne@69
|
3900 XIC /* ic */
|
jpayne@69
|
3901 );
|
jpayne@69
|
3902
|
jpayne@69
|
3903 extern Bool XFilterEvent(
|
jpayne@69
|
3904 XEvent* /* event */,
|
jpayne@69
|
3905 Window /* window */
|
jpayne@69
|
3906 );
|
jpayne@69
|
3907
|
jpayne@69
|
3908 extern int XmbLookupString(
|
jpayne@69
|
3909 XIC /* ic */,
|
jpayne@69
|
3910 XKeyPressedEvent* /* event */,
|
jpayne@69
|
3911 char* /* buffer_return */,
|
jpayne@69
|
3912 int /* bytes_buffer */,
|
jpayne@69
|
3913 KeySym* /* keysym_return */,
|
jpayne@69
|
3914 Status* /* status_return */
|
jpayne@69
|
3915 );
|
jpayne@69
|
3916
|
jpayne@69
|
3917 extern int XwcLookupString(
|
jpayne@69
|
3918 XIC /* ic */,
|
jpayne@69
|
3919 XKeyPressedEvent* /* event */,
|
jpayne@69
|
3920 wchar_t* /* buffer_return */,
|
jpayne@69
|
3921 int /* wchars_buffer */,
|
jpayne@69
|
3922 KeySym* /* keysym_return */,
|
jpayne@69
|
3923 Status* /* status_return */
|
jpayne@69
|
3924 );
|
jpayne@69
|
3925
|
jpayne@69
|
3926 extern int Xutf8LookupString(
|
jpayne@69
|
3927 XIC /* ic */,
|
jpayne@69
|
3928 XKeyPressedEvent* /* event */,
|
jpayne@69
|
3929 char* /* buffer_return */,
|
jpayne@69
|
3930 int /* bytes_buffer */,
|
jpayne@69
|
3931 KeySym* /* keysym_return */,
|
jpayne@69
|
3932 Status* /* status_return */
|
jpayne@69
|
3933 );
|
jpayne@69
|
3934
|
jpayne@69
|
3935 extern XVaNestedList XVaCreateNestedList(
|
jpayne@69
|
3936 int /*unused*/, ...
|
jpayne@69
|
3937 ) _X_SENTINEL(0);
|
jpayne@69
|
3938
|
jpayne@69
|
3939 /* internal connections for IMs */
|
jpayne@69
|
3940
|
jpayne@69
|
3941 extern Bool XRegisterIMInstantiateCallback(
|
jpayne@69
|
3942 Display* /* dpy */,
|
jpayne@69
|
3943 struct _XrmHashBucketRec* /* rdb */,
|
jpayne@69
|
3944 char* /* res_name */,
|
jpayne@69
|
3945 char* /* res_class */,
|
jpayne@69
|
3946 XIDProc /* callback */,
|
jpayne@69
|
3947 XPointer /* client_data */
|
jpayne@69
|
3948 );
|
jpayne@69
|
3949
|
jpayne@69
|
3950 extern Bool XUnregisterIMInstantiateCallback(
|
jpayne@69
|
3951 Display* /* dpy */,
|
jpayne@69
|
3952 struct _XrmHashBucketRec* /* rdb */,
|
jpayne@69
|
3953 char* /* res_name */,
|
jpayne@69
|
3954 char* /* res_class */,
|
jpayne@69
|
3955 XIDProc /* callback */,
|
jpayne@69
|
3956 XPointer /* client_data */
|
jpayne@69
|
3957 );
|
jpayne@69
|
3958
|
jpayne@69
|
3959 typedef void (*XConnectionWatchProc)(
|
jpayne@69
|
3960 Display* /* dpy */,
|
jpayne@69
|
3961 XPointer /* client_data */,
|
jpayne@69
|
3962 int /* fd */,
|
jpayne@69
|
3963 Bool /* opening */, /* open or close flag */
|
jpayne@69
|
3964 XPointer* /* watch_data */ /* open sets, close uses */
|
jpayne@69
|
3965 );
|
jpayne@69
|
3966
|
jpayne@69
|
3967
|
jpayne@69
|
3968 extern Status XInternalConnectionNumbers(
|
jpayne@69
|
3969 Display* /* dpy */,
|
jpayne@69
|
3970 int** /* fd_return */,
|
jpayne@69
|
3971 int* /* count_return */
|
jpayne@69
|
3972 );
|
jpayne@69
|
3973
|
jpayne@69
|
3974 extern void XProcessInternalConnection(
|
jpayne@69
|
3975 Display* /* dpy */,
|
jpayne@69
|
3976 int /* fd */
|
jpayne@69
|
3977 );
|
jpayne@69
|
3978
|
jpayne@69
|
3979 extern Status XAddConnectionWatch(
|
jpayne@69
|
3980 Display* /* dpy */,
|
jpayne@69
|
3981 XConnectionWatchProc /* callback */,
|
jpayne@69
|
3982 XPointer /* client_data */
|
jpayne@69
|
3983 );
|
jpayne@69
|
3984
|
jpayne@69
|
3985 extern void XRemoveConnectionWatch(
|
jpayne@69
|
3986 Display* /* dpy */,
|
jpayne@69
|
3987 XConnectionWatchProc /* callback */,
|
jpayne@69
|
3988 XPointer /* client_data */
|
jpayne@69
|
3989 );
|
jpayne@69
|
3990
|
jpayne@69
|
3991 extern void XSetAuthorization(
|
jpayne@69
|
3992 char * /* name */,
|
jpayne@69
|
3993 int /* namelen */,
|
jpayne@69
|
3994 char * /* data */,
|
jpayne@69
|
3995 int /* datalen */
|
jpayne@69
|
3996 );
|
jpayne@69
|
3997
|
jpayne@69
|
3998 extern int _Xmbtowc(
|
jpayne@69
|
3999 wchar_t * /* wstr */,
|
jpayne@69
|
4000 char * /* str */,
|
jpayne@69
|
4001 int /* len */
|
jpayne@69
|
4002 );
|
jpayne@69
|
4003
|
jpayne@69
|
4004 extern int _Xwctomb(
|
jpayne@69
|
4005 char * /* str */,
|
jpayne@69
|
4006 wchar_t /* wc */
|
jpayne@69
|
4007 );
|
jpayne@69
|
4008
|
jpayne@69
|
4009 extern Bool XGetEventData(
|
jpayne@69
|
4010 Display* /* dpy */,
|
jpayne@69
|
4011 XGenericEventCookie* /* cookie*/
|
jpayne@69
|
4012 );
|
jpayne@69
|
4013
|
jpayne@69
|
4014 extern void XFreeEventData(
|
jpayne@69
|
4015 Display* /* dpy */,
|
jpayne@69
|
4016 XGenericEventCookie* /* cookie*/
|
jpayne@69
|
4017 );
|
jpayne@69
|
4018
|
jpayne@69
|
4019 #ifdef __clang__
|
jpayne@69
|
4020 #pragma clang diagnostic pop
|
jpayne@69
|
4021 #endif
|
jpayne@69
|
4022
|
jpayne@69
|
4023 _XFUNCPROTOEND
|
jpayne@69
|
4024
|
jpayne@69
|
4025 #endif /* _X11_XLIB_H_ */
|