1 /* $XConsortium: Xlib.h /main/119 1996/09/28 16:35:29 rws $ */
2 /* $XFree86: xc/lib/X11/Xlib.h,v 3.10.2.1 1998/02/15 16:08:37 hohndel Exp $ */
5 Copyright (c) 1985, 1986, 1987, 1991 X Consortium
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 Except as contained in this notice, the name of the X Consortium shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from the X Consortium.
32 * Xlib.h - Header definition and support file for the C subroutine
33 * interface library (Xlib) to the X Window System Protocol (V11).
34 * Structures and symbols starting with "_" are private to the library.
39 #define XlibSpecificationRelease 6
43 #include <sys/types.h> /* forgot to protect it... */
45 #endif /* __TYPES__ */
47 #if defined(_POSIX_SOURCE) && defined(MOTOROLA)
49 #include <sys/types.h>
52 #include <sys/types.h>
58 /* applications should not depend on these two headers being included! */
59 #include <X11/Xfuncproto.h>
60 #include <X11/Xosdefs.h>
78 /* replace this with #include or typedef appropriate for your system */
79 typedef unsigned long wchar_t;
83 #if defined(ISC) && defined(USE_XMBTOWC)
84 #define wctomb(a,b) _Xwctomb(a,b)
85 #define mblen(a,b) _Xmblen(a,b)
86 #ifndef USE_XWCHAR_STRING
87 #define mbtowc(a,b,c) _Xmbtowc(a,b,c)
91 typedef char *XPointer;
98 #define QueuedAlready 0
99 #define QueuedAfterReading 1
100 #define QueuedAfterFlush 2
102 #define ConnectionNumber(dpy) (((_XPrivDisplay)dpy)->fd)
103 #define RootWindow(dpy, scr) (ScreenOfDisplay(dpy,scr)->root)
104 #define DefaultScreen(dpy) (((_XPrivDisplay)dpy)->default_screen)
105 #define DefaultRootWindow(dpy) (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root)
106 #define DefaultVisual(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_visual)
107 #define DefaultGC(dpy, scr) (ScreenOfDisplay(dpy,scr)->default_gc)
108 #define BlackPixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->black_pixel)
109 #define WhitePixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->white_pixel)
110 #define AllPlanes ((unsigned long)~0L)
111 #define QLength(dpy) (((_XPrivDisplay)dpy)->qlen)
112 #define DisplayWidth(dpy, scr) (ScreenOfDisplay(dpy,scr)->width)
113 #define DisplayHeight(dpy, scr) (ScreenOfDisplay(dpy,scr)->height)
114 #define DisplayWidthMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mwidth)
115 #define DisplayHeightMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mheight)
116 #define DisplayPlanes(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
117 #define DisplayCells(dpy, scr) (DefaultVisual(dpy,scr)->map_entries)
118 #define ScreenCount(dpy) (((_XPrivDisplay)dpy)->nscreens)
119 #define ServerVendor(dpy) (((_XPrivDisplay)dpy)->vendor)
120 #define ProtocolVersion(dpy) (((_XPrivDisplay)dpy)->proto_major_version)
121 #define ProtocolRevision(dpy) (((_XPrivDisplay)dpy)->proto_minor_version)
122 #define VendorRelease(dpy) (((_XPrivDisplay)dpy)->release)
123 #define DisplayString(dpy) (((_XPrivDisplay)dpy)->display_name)
124 #define DefaultDepth(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
125 #define DefaultColormap(dpy, scr)(ScreenOfDisplay(dpy,scr)->cmap)
126 #define BitmapUnit(dpy) (((_XPrivDisplay)dpy)->bitmap_unit)
127 #define BitmapBitOrder(dpy) (((_XPrivDisplay)dpy)->bitmap_bit_order)
128 #define BitmapPad(dpy) (((_XPrivDisplay)dpy)->bitmap_pad)
129 #define ImageByteOrder(dpy) (((_XPrivDisplay)dpy)->byte_order)
130 #ifdef CRAY /* unable to get WORD64 without pulling in other symbols */
131 #define NextRequest(dpy) XNextRequest(dpy)
133 #define NextRequest(dpy) (((_XPrivDisplay)dpy)->request + 1)
135 #define LastKnownRequestProcessed(dpy) (((_XPrivDisplay)dpy)->last_request_read)
137 /* macros for screen oriented applications (toolkit) */
138 #define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)dpy)->screens[scr])
139 #define DefaultScreenOfDisplay(dpy) ScreenOfDisplay(dpy,DefaultScreen(dpy))
140 #define DisplayOfScreen(s) ((s)->display)
141 #define RootWindowOfScreen(s) ((s)->root)
142 #define BlackPixelOfScreen(s) ((s)->black_pixel)
143 #define WhitePixelOfScreen(s) ((s)->white_pixel)
144 #define DefaultColormapOfScreen(s)((s)->cmap)
145 #define DefaultDepthOfScreen(s) ((s)->root_depth)
146 #define DefaultGCOfScreen(s) ((s)->default_gc)
147 #define DefaultVisualOfScreen(s)((s)->root_visual)
148 #define WidthOfScreen(s) ((s)->width)
149 #define HeightOfScreen(s) ((s)->height)
150 #define WidthMMOfScreen(s) ((s)->mwidth)
151 #define HeightMMOfScreen(s) ((s)->mheight)
152 #define PlanesOfScreen(s) ((s)->root_depth)
153 #define CellsOfScreen(s) (DefaultVisualOfScreen((s))->map_entries)
154 #define MinCmapsOfScreen(s) ((s)->min_maps)
155 #define MaxCmapsOfScreen(s) ((s)->max_maps)
156 #define DoesSaveUnders(s) ((s)->save_unders)
157 #define DoesBackingStore(s) ((s)->backing_store)
158 #define EventMaskOfScreen(s) ((s)->root_input_mask)
161 * Extensions need a way to hang private data on some structures.
163 typedef struct _XExtData {
164 int number; /* number returned by XRegisterExtension */
165 struct _XExtData *next; /* next item on list of data for structure */
166 int (*free_private)( /* called to free private storage */
167 #if NeedFunctionPrototypes
168 struct _XExtData *extension
171 XPointer private_data; /* data private to this extension. */
175 * This file contains structures used by the extension mechanism.
177 typedef struct { /* public to extension, cannot be changed */
178 int extension; /* extension number */
179 int major_opcode; /* major op-code assigned by server */
180 int first_event; /* first event number for the extension */
181 int first_error; /* first error number for the extension */
185 * Data structure for retrieving info about pixmap formats.
192 } XPixmapFormatValues;
196 * Data structure for setting graphics context.
199 int function; /* logical operation */
200 unsigned long plane_mask;/* plane mask */
201 unsigned long foreground;/* foreground pixel */
202 unsigned long background;/* background pixel */
203 int line_width; /* line width */
204 int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */
205 int cap_style; /* CapNotLast, CapButt,
206 CapRound, CapProjecting */
207 int join_style; /* JoinMiter, JoinRound, JoinBevel */
208 int fill_style; /* FillSolid, FillTiled,
209 FillStippled, FillOpaeueStippled */
210 int fill_rule; /* EvenOddRule, WindingRule */
211 int arc_mode; /* ArcChord, ArcPieSlice */
212 Pixmap tile; /* tile pixmap for tiling operations */
213 Pixmap stipple; /* stipple 1 plane pixmap for stipping */
214 int ts_x_origin; /* offset for tile or stipple operations */
216 Font font; /* default text font for text operations */
217 int subwindow_mode; /* ClipByChildren, IncludeInferiors */
218 Bool graphics_exposures;/* boolean, should exposures be generated */
219 int clip_x_origin; /* origin for clipping */
221 Pixmap clip_mask; /* bitmap clipping; other calls for rects */
222 int dash_offset; /* patterned/dashed line information */
227 * Graphics context. The contents of this structure are implementation
228 * dependent. A GC should be treated as opaque by application code.
232 #ifdef XLIB_ILLEGAL_ACCESS
234 XExtData *ext_data; /* hook for extension to hang data */
235 GContext gid; /* protocol ID for graphics context */
236 /* there is more to this structure, but it is private to Xlib */
242 * Visual structure; contains information about colormapping possible.
245 XExtData *ext_data; /* hook for extension to hang data */
246 VisualID visualid; /* visual id of this visual */
247 #if defined(__cplusplus) || defined(c_plusplus)
248 int c_class; /* C++ class of screen (monochrome, etc.) */
250 int class; /* class of screen (monochrome, etc.) */
252 unsigned long red_mask, green_mask, blue_mask; /* mask values */
253 int bits_per_rgb; /* log base 2 of distinct color values */
254 int map_entries; /* color map entries */
258 * Depth structure; contains information for each possible depth.
261 int depth; /* this depth (Z) of the depth */
262 int nvisuals; /* number of Visual types at this depth */
263 Visual *visuals; /* list of visuals possible at this depth */
267 * Information about the screen. The contents of this structure are
268 * implementation dependent. A Screen should be treated as opaque
269 * by application code.
272 struct _XDisplay; /* Forward declare before use for C++ */
275 XExtData *ext_data; /* hook for extension to hang data */
276 struct _XDisplay *display;/* back pointer to display structure */
277 Window root; /* Root window id. */
278 int width, height; /* width and height of screen */
279 int mwidth, mheight; /* width and height of in millimeters */
280 int ndepths; /* number of depths possible */
281 Depth *depths; /* list of allowable depths on the screen */
282 int root_depth; /* bits per pixel */
283 Visual *root_visual; /* root visual */
284 GC default_gc; /* GC for the root root visual */
285 Colormap cmap; /* default color map */
286 unsigned long white_pixel;
287 unsigned long black_pixel; /* White and Black pixel values */
288 int max_maps, min_maps; /* max and min color maps */
289 int backing_store; /* Never, WhenMapped, Always */
291 long root_input_mask; /* initial root input mask */
295 * Format structure; describes ZFormat data the screen will understand.
298 XExtData *ext_data; /* hook for extension to hang data */
299 int depth; /* depth of this image format */
300 int bits_per_pixel; /* bits/pixel at this depth */
301 int scanline_pad; /* scanline must padded to this multiple */
305 * Data structure for setting window attributes.
308 Pixmap background_pixmap; /* background or None or ParentRelative */
309 unsigned long background_pixel; /* background pixel */
310 Pixmap border_pixmap; /* border of the window */
311 unsigned long border_pixel; /* border pixel value */
312 int bit_gravity; /* one of bit gravity values */
313 int win_gravity; /* one of the window gravity values */
314 int backing_store; /* NotUseful, WhenMapped, Always */
315 unsigned long backing_planes;/* planes to be preseved if possible */
316 unsigned long backing_pixel;/* value to use in restoring planes */
317 Bool save_under; /* should bits under be saved? (popups) */
318 long event_mask; /* set of events that should be saved */
319 long do_not_propagate_mask; /* set of events that should not propagate */
320 Bool override_redirect; /* boolean value for override-redirect */
321 Colormap colormap; /* color map to be associated with window */
322 Cursor cursor; /* cursor to be displayed (or None) */
323 } XSetWindowAttributes;
326 int x, y; /* location of window */
327 int width, height; /* width and height of window */
328 int border_width; /* border width of window */
329 int depth; /* depth of window */
330 Visual *visual; /* the associated visual structure */
331 Window root; /* root of screen containing window */
332 #if defined(__cplusplus) || defined(c_plusplus)
333 int c_class; /* C++ InputOutput, InputOnly*/
335 int class; /* InputOutput, InputOnly*/
337 int bit_gravity; /* one of bit gravity values */
338 int win_gravity; /* one of the window gravity values */
339 int backing_store; /* NotUseful, WhenMapped, Always */
340 unsigned long backing_planes;/* planes to be preserved if possible */
341 unsigned long backing_pixel;/* value to be used when restoring planes */
342 Bool save_under; /* boolean, should bits under be saved? */
343 Colormap colormap; /* color map to be associated with window */
344 Bool map_installed; /* boolean, is color map currently installed*/
345 int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
346 long all_event_masks; /* set of events all people have interest in*/
347 long your_event_mask; /* my event mask */
348 long do_not_propagate_mask; /* set of events that should not propagate */
349 Bool override_redirect; /* boolean value for override-redirect */
350 Screen *screen; /* back pointer to correct screen */
354 * Data structure for host setting; getting routines.
359 int family; /* for example FamilyInternet */
360 int length; /* length of address, in bytes */
361 char *address; /* pointer to where to find the bytes */
365 * Data structure for "image" data, used by image manipulation routines.
367 typedef struct _XImage {
368 int width, height; /* size of image */
369 int xoffset; /* number of pixels offset in X direction */
370 int format; /* XYBitmap, XYPixmap, ZPixmap */
371 char *data; /* pointer to image data */
372 int byte_order; /* data byte order, LSBFirst, MSBFirst */
373 int bitmap_unit; /* quant. of scanline 8, 16, 32 */
374 int bitmap_bit_order; /* LSBFirst, MSBFirst */
375 int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */
376 int depth; /* depth of image */
377 int bytes_per_line; /* accelarator to next line */
378 int bits_per_pixel; /* bits per pixel (ZPixmap) */
379 unsigned long red_mask; /* bits in z arrangment */
380 unsigned long green_mask;
381 unsigned long blue_mask;
382 XPointer obdata; /* hook for the object routines to hang on */
383 struct funcs { /* image manipulation routines */
384 #if NeedFunctionPrototypes
385 struct _XImage *(*create_image)(
386 struct _XDisplay* /* display */,
387 Visual* /* visual */,
388 unsigned int /* depth */,
392 unsigned int /* width */,
393 unsigned int /* height */,
394 int /* bitmap_pad */,
395 int /* bytes_per_line */);
396 int (*destroy_image) (struct _XImage *);
397 unsigned long (*get_pixel) (struct _XImage *, int, int);
398 int (*put_pixel) (struct _XImage *, int, int, unsigned long);
399 struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int);
400 int (*add_pixel) (struct _XImage *, long);
402 struct _XImage *(*create_image)();
403 int (*destroy_image)();
404 unsigned long (*get_pixel)();
406 struct _XImage *(*sub_image)();
413 * Data structure for XReconfigureWindow
424 * Data structure used by color operations
428 unsigned short red, green, blue;
429 char flags; /* do_red, do_green, do_blue */
434 * Data structures for graphics operations. On most machines, these are
435 * congruent with the wire protocol structures, so reformatting the data
436 * can be avoided on these architectures.
439 short x1, y1, x2, y2;
448 unsigned short width, height;
453 unsigned short width, height;
454 short angle1, angle2;
458 /* Data structure for XChangeKeyboardControl */
461 int key_click_percent;
468 int auto_repeat_mode; /* On, Off, Default */
471 /* Data structure for XGetKeyboardControl */
474 int key_click_percent;
476 unsigned int bell_pitch, bell_duration;
477 unsigned long led_mask;
478 int global_auto_repeat;
479 char auto_repeats[32];
482 /* Data structure for XGetMotionEvents. */
489 /* Data structure for X{Set,Get}ModifierMapping */
492 int max_keypermod; /* The server's max # of keys per modifier */
493 KeyCode *modifiermap; /* An 8 by max_keypermod array of modifiers */
498 * Display datatype maintaining display specific data.
499 * The contents of this structure are implementation dependent.
500 * A Display should be treated as opaque by application code.
502 #ifndef XLIB_ILLEGAL_ACCESS
503 typedef struct _XDisplay Display;
506 struct _XPrivate; /* Forward declare before use for C++ */
507 struct _XrmHashBucketRec;
510 #ifdef XLIB_ILLEGAL_ACCESS
514 XExtData *ext_data; /* hook for extension to hang data */
515 struct _XPrivate *private1;
516 int fd; /* Network socket. */
518 int proto_major_version;/* major version of server's X protocol */
519 int proto_minor_version;/* minor version of servers X protocol */
520 char *vendor; /* vendor of the server hardware */
525 XID (*resource_alloc)( /* allocator function */
526 #if NeedFunctionPrototypes
530 int byte_order; /* screen byte order, LSBFirst, MSBFirst */
531 int bitmap_unit; /* padding and data requirements */
532 int bitmap_pad; /* padding requirements on bitmaps */
533 int bitmap_bit_order; /* LeastSignificant or MostSignificant */
534 int nformats; /* number of pixmap formats in list */
535 ScreenFormat *pixmap_format; /* pixmap format list */
537 int release; /* release of the server */
538 struct _XPrivate *private9, *private10;
539 int qlen; /* Length of input event queue */
540 unsigned long last_request_read; /* seq number of last event read */
541 unsigned long request; /* sequence number of last request. */
546 unsigned max_request_size; /* maximum number 32 bit words in request*/
547 struct _XrmHashBucketRec *db;
549 #if NeedFunctionPrototypes
553 char *display_name; /* "host:display" string used on this connect*/
554 int default_screen; /* default screen for operations */
555 int nscreens; /* number of screens on this server*/
556 Screen *screens; /* pointer to list of screens */
557 unsigned long motion_buffer; /* size of motion buffer */
558 unsigned long private16;
559 int min_keycode; /* minimum defined keycode */
560 int max_keycode; /* maximum defined keycode */
564 char *xdefaults; /* contents of defaults from server */
565 /* there is more to this structure, but it is private to Xlib */
567 #ifdef XLIB_ILLEGAL_ACCESS
572 #if NeedFunctionPrototypes /* prototypes require event type definitions */
577 * Definitions of specific events.
580 int type; /* of event */
581 unsigned long serial; /* # of last request processed by server */
582 Bool send_event; /* true if this came from a SendEvent request */
583 Display *display; /* Display the event was read from */
584 Window window; /* "event" window it is reported relative to */
585 Window root; /* root window that the event occured on */
586 Window subwindow; /* child window */
587 Time time; /* milliseconds */
588 int x, y; /* pointer x, y coordinates in event window */
589 int x_root, y_root; /* coordinates relative to root */
590 unsigned int state; /* key or button mask */
591 unsigned int keycode; /* detail */
592 Bool same_screen; /* same screen flag */
594 typedef XKeyEvent XKeyPressedEvent;
595 typedef XKeyEvent XKeyReleasedEvent;
598 int type; /* of event */
599 unsigned long serial; /* # of last request processed by server */
600 Bool send_event; /* true if this came from a SendEvent request */
601 Display *display; /* Display the event was read from */
602 Window window; /* "event" window it is reported relative to */
603 Window root; /* root window that the event occured on */
604 Window subwindow; /* child window */
605 Time time; /* milliseconds */
606 int x, y; /* pointer x, y coordinates in event window */
607 int x_root, y_root; /* coordinates relative to root */
608 unsigned int state; /* key or button mask */
609 unsigned int button; /* detail */
610 Bool same_screen; /* same screen flag */
612 typedef XButtonEvent XButtonPressedEvent;
613 typedef XButtonEvent XButtonReleasedEvent;
616 int type; /* of event */
617 unsigned long serial; /* # of last request processed by server */
618 Bool send_event; /* true if this came from a SendEvent request */
619 Display *display; /* Display the event was read from */
620 Window window; /* "event" window reported relative to */
621 Window root; /* root window that the event occured on */
622 Window subwindow; /* child window */
623 Time time; /* milliseconds */
624 int x, y; /* pointer x, y coordinates in event window */
625 int x_root, y_root; /* coordinates relative to root */
626 unsigned int state; /* key or button mask */
627 char is_hint; /* detail */
628 Bool same_screen; /* same screen flag */
630 typedef XMotionEvent XPointerMovedEvent;
633 int type; /* of event */
634 unsigned long serial; /* # of last request processed by server */
635 Bool send_event; /* true if this came from a SendEvent request */
636 Display *display; /* Display the event was read from */
637 Window window; /* "event" window reported relative to */
638 Window root; /* root window that the event occured on */
639 Window subwindow; /* child window */
640 Time time; /* milliseconds */
641 int x, y; /* pointer x, y coordinates in event window */
642 int x_root, y_root; /* coordinates relative to root */
643 int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */
646 * NotifyAncestor, NotifyVirtual, NotifyInferior,
647 * NotifyNonlinear,NotifyNonlinearVirtual
649 Bool same_screen; /* same screen flag */
650 Bool focus; /* boolean focus */
651 unsigned int state; /* key or button mask */
653 typedef XCrossingEvent XEnterWindowEvent;
654 typedef XCrossingEvent XLeaveWindowEvent;
657 int type; /* FocusIn or FocusOut */
658 unsigned long serial; /* # of last request processed by server */
659 Bool send_event; /* true if this came from a SendEvent request */
660 Display *display; /* Display the event was read from */
661 Window window; /* window of event */
662 int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */
665 * NotifyAncestor, NotifyVirtual, NotifyInferior,
666 * NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer,
667 * NotifyPointerRoot, NotifyDetailNone
670 typedef XFocusChangeEvent XFocusInEvent;
671 typedef XFocusChangeEvent XFocusOutEvent;
673 /* generated on EnterWindow and FocusIn when KeyMapState selected */
676 unsigned long serial; /* # of last request processed by server */
677 Bool send_event; /* true if this came from a SendEvent request */
678 Display *display; /* Display the event was read from */
685 unsigned long serial; /* # of last request processed by server */
686 Bool send_event; /* true if this came from a SendEvent request */
687 Display *display; /* Display the event was read from */
691 int count; /* if non-zero, at least this many more */
696 unsigned long serial; /* # of last request processed by server */
697 Bool send_event; /* true if this came from a SendEvent request */
698 Display *display; /* Display the event was read from */
702 int count; /* if non-zero, at least this many more */
703 int major_code; /* core is CopyArea or CopyPlane */
704 int minor_code; /* not defined in the core */
705 } XGraphicsExposeEvent;
709 unsigned long serial; /* # of last request processed by server */
710 Bool send_event; /* true if this came from a SendEvent request */
711 Display *display; /* Display the event was read from */
713 int major_code; /* core is CopyArea or CopyPlane */
714 int minor_code; /* not defined in the core */
719 unsigned long serial; /* # of last request processed by server */
720 Bool send_event; /* true if this came from a SendEvent request */
721 Display *display; /* Display the event was read from */
723 int state; /* Visibility state */
728 unsigned long serial; /* # of last request processed by server */
729 Bool send_event; /* true if this came from a SendEvent request */
730 Display *display; /* Display the event was read from */
731 Window parent; /* parent of the window */
732 Window window; /* window id of window created */
733 int x, y; /* window location */
734 int width, height; /* size of window */
735 int border_width; /* border width */
736 Bool override_redirect; /* creation should be overridden */
737 } XCreateWindowEvent;
741 unsigned long serial; /* # of last request processed by server */
742 Bool send_event; /* true if this came from a SendEvent request */
743 Display *display; /* Display the event was read from */
746 } XDestroyWindowEvent;
750 unsigned long serial; /* # of last request processed by server */
751 Bool send_event; /* true if this came from a SendEvent request */
752 Display *display; /* Display the event was read from */
760 unsigned long serial; /* # of last request processed by server */
761 Bool send_event; /* true if this came from a SendEvent request */
762 Display *display; /* Display the event was read from */
765 Bool override_redirect; /* boolean, is override set... */
770 unsigned long serial; /* # of last request processed by server */
771 Bool send_event; /* true if this came from a SendEvent request */
772 Display *display; /* Display the event was read from */
779 unsigned long serial; /* # of last request processed by server */
780 Bool send_event; /* true if this came from a SendEvent request */
781 Display *display; /* Display the event was read from */
786 Bool override_redirect;
791 unsigned long serial; /* # of last request processed by server */
792 Bool send_event; /* true if this came from a SendEvent request */
793 Display *display; /* Display the event was read from */
800 Bool override_redirect;
805 unsigned long serial; /* # of last request processed by server */
806 Bool send_event; /* true if this came from a SendEvent request */
807 Display *display; /* Display the event was read from */
815 unsigned long serial; /* # of last request processed by server */
816 Bool send_event; /* true if this came from a SendEvent request */
817 Display *display; /* Display the event was read from */
820 } XResizeRequestEvent;
824 unsigned long serial; /* # of last request processed by server */
825 Bool send_event; /* true if this came from a SendEvent request */
826 Display *display; /* Display the event was read from */
833 int detail; /* Above, Below, TopIf, BottomIf, Opposite */
834 unsigned long value_mask;
835 } XConfigureRequestEvent;
839 unsigned long serial; /* # of last request processed by server */
840 Bool send_event; /* true if this came from a SendEvent request */
841 Display *display; /* Display the event was read from */
844 int place; /* PlaceOnTop, PlaceOnBottom */
849 unsigned long serial; /* # of last request processed by server */
850 Bool send_event; /* true if this came from a SendEvent request */
851 Display *display; /* Display the event was read from */
854 int place; /* PlaceOnTop, PlaceOnBottom */
855 } XCirculateRequestEvent;
859 unsigned long serial; /* # of last request processed by server */
860 Bool send_event; /* true if this came from a SendEvent request */
861 Display *display; /* Display the event was read from */
865 int state; /* NewValue, Deleted */
870 unsigned long serial; /* # of last request processed by server */
871 Bool send_event; /* true if this came from a SendEvent request */
872 Display *display; /* Display the event was read from */
876 } XSelectionClearEvent;
880 unsigned long serial; /* # of last request processed by server */
881 Bool send_event; /* true if this came from a SendEvent request */
882 Display *display; /* Display the event was read from */
889 } XSelectionRequestEvent;
893 unsigned long serial; /* # of last request processed by server */
894 Bool send_event; /* true if this came from a SendEvent request */
895 Display *display; /* Display the event was read from */
899 Atom property; /* ATOM or None */
905 unsigned long serial; /* # of last request processed by server */
906 Bool send_event; /* true if this came from a SendEvent request */
907 Display *display; /* Display the event was read from */
909 Colormap colormap; /* COLORMAP or None */
910 #if defined(__cplusplus) || defined(c_plusplus)
911 Bool c_new; /* C++ */
915 int state; /* ColormapInstalled, ColormapUninstalled */
920 unsigned long serial; /* # of last request processed by server */
921 Bool send_event; /* true if this came from a SendEvent request */
922 Display *display; /* Display the event was read from */
931 } XClientMessageEvent;
935 unsigned long serial; /* # of last request processed by server */
936 Bool send_event; /* true if this came from a SendEvent request */
937 Display *display; /* Display the event was read from */
938 Window window; /* unused */
939 int request; /* one of MappingModifier, MappingKeyboard,
941 int first_keycode; /* first keycode */
942 int count; /* defines range of change w. first_keycode*/
947 Display *display; /* Display the event was read from */
948 XID resourceid; /* resource id */
949 unsigned long serial; /* serial number of failed request */
950 unsigned char error_code; /* error code of failed request */
951 unsigned char request_code; /* Major op-code of failed request */
952 unsigned char minor_code; /* Minor op-code of failed request */
957 unsigned long serial; /* # of last request processed by server */
958 Bool send_event; /* true if this came from a SendEvent request */
959 Display *display;/* Display the event was read from */
960 Window window; /* window on which event was requested in event mask */
964 * this union is defined so Xlib can always use the same sized
965 * event structure internally, to avoid memory fragmentation.
967 typedef union _XEvent {
968 int type; /* must not be changed; first element */
971 XButtonEvent xbutton;
972 XMotionEvent xmotion;
973 XCrossingEvent xcrossing;
974 XFocusChangeEvent xfocus;
975 XExposeEvent xexpose;
976 XGraphicsExposeEvent xgraphicsexpose;
977 XNoExposeEvent xnoexpose;
978 XVisibilityEvent xvisibility;
979 XCreateWindowEvent xcreatewindow;
980 XDestroyWindowEvent xdestroywindow;
983 XMapRequestEvent xmaprequest;
984 XReparentEvent xreparent;
985 XConfigureEvent xconfigure;
986 XGravityEvent xgravity;
987 XResizeRequestEvent xresizerequest;
988 XConfigureRequestEvent xconfigurerequest;
989 XCirculateEvent xcirculate;
990 XCirculateRequestEvent xcirculaterequest;
991 XPropertyEvent xproperty;
992 XSelectionClearEvent xselectionclear;
993 XSelectionRequestEvent xselectionrequest;
994 XSelectionEvent xselection;
995 XColormapEvent xcolormap;
996 XClientMessageEvent xclient;
997 XMappingEvent xmapping;
999 XKeymapEvent xkeymap;
1004 #define XAllocID(dpy) ((*((_XPrivDisplay)dpy)->resource_alloc)((dpy)))
1007 * per character font metric information.
1010 short lbearing; /* origin to left edge of raster */
1011 short rbearing; /* origin to right edge of raster */
1012 short width; /* advance to next char's origin */
1013 short ascent; /* baseline to top edge of raster */
1014 short descent; /* baseline to bottom edge of raster */
1015 unsigned short attributes; /* per char flags (not predefined) */
1019 * To allow arbitrary information with fonts, there are additional properties
1024 unsigned long card32;
1028 XExtData *ext_data; /* hook for extension to hang data */
1029 Font fid; /* Font id for this font */
1030 unsigned direction; /* hint about direction the font is painted */
1031 unsigned min_char_or_byte2;/* first character */
1032 unsigned max_char_or_byte2;/* last character */
1033 unsigned min_byte1; /* first row that exists */
1034 unsigned max_byte1; /* last row that exists */
1035 Bool all_chars_exist;/* flag if all characters have non-zero size*/
1036 unsigned default_char; /* char to print for undefined character */
1037 int n_properties; /* how many properties there are */
1038 XFontProp *properties; /* pointer to array of additional properties*/
1039 XCharStruct min_bounds; /* minimum bounds over all existing char*/
1040 XCharStruct max_bounds; /* maximum bounds over all existing char*/
1041 XCharStruct *per_char; /* first_char to last_char information */
1042 int ascent; /* log. extent above baseline for spacing */
1043 int descent; /* log. descent below baseline for spacing */
1047 * PolyText routines take these as arguments.
1050 char *chars; /* pointer to string */
1051 int nchars; /* number of characters */
1052 int delta; /* delta between strings */
1053 Font font; /* font to print it in, None don't change */
1056 typedef struct { /* normal 16 bit characters are two bytes */
1057 unsigned char byte1;
1058 unsigned char byte2;
1062 XChar2b *chars; /* two byte characters */
1063 int nchars; /* number of characters */
1064 int delta; /* delta between strings */
1065 Font font; /* font to print it in, None don't change */
1069 typedef union { Display *display;
1073 ScreenFormat *pixmap_format;
1074 XFontStruct *font; } XEDataObject;
1077 XRectangle max_ink_extent;
1078 XRectangle max_logical_extent;
1082 typedef void (*XOMProc)();
1085 typedef struct _XOM *XOM;
1086 typedef struct _XOC *XOC, *XFontSet;
1102 #define XNRequiredCharSet "requiredCharSet"
1103 #define XNQueryOrientation "queryOrientation"
1104 #define XNBaseFontName "baseFontName"
1105 #define XNOMAutomatic "omAutomatic"
1106 #define XNMissingCharSet "missingCharSet"
1107 #define XNDefaultString "defaultString"
1108 #define XNOrientation "orientation"
1109 #define XNDirectionalDependentDrawing "directionalDependentDrawing"
1110 #define XNContextualDrawing "contextualDrawing"
1111 #define XNFontInfo "fontInfo"
1115 char **charset_list;
1119 XOMOrientation_LTR_TTB,
1120 XOMOrientation_RTL_TTB,
1121 XOMOrientation_TTB_LTR,
1122 XOMOrientation_TTB_RTL,
1123 XOMOrientation_Context
1127 int num_orientation;
1128 XOrientation *orientation; /* Input Text description */
1133 XFontStruct **font_struct_list;
1134 char **font_name_list;
1137 typedef struct _XIM *XIM;
1138 typedef struct _XIC *XIC;
1140 typedef void (*XIMProc)(
1141 #if NeedFunctionPrototypes
1148 typedef Bool (*XICProc)(
1149 #if NeedFunctionPrototypes
1156 typedef void (*XIDProc)(
1157 #if NeedFunctionPrototypes
1164 typedef unsigned long XIMStyle;
1167 unsigned short count_styles;
1168 XIMStyle *supported_styles;
1171 #define XIMPreeditArea 0x0001L
1172 #define XIMPreeditCallbacks 0x0002L
1173 #define XIMPreeditPosition 0x0004L
1174 #define XIMPreeditNothing 0x0008L
1175 #define XIMPreeditNone 0x0010L
1176 #define XIMStatusArea 0x0100L
1177 #define XIMStatusCallbacks 0x0200L
1178 #define XIMStatusNothing 0x0400L
1179 #define XIMStatusNone 0x0800L
1181 #define XNVaNestedList "XNVaNestedList"
1182 #define XNQueryInputStyle "queryInputStyle"
1183 #define XNClientWindow "clientWindow"
1184 #define XNInputStyle "inputStyle"
1185 #define XNFocusWindow "focusWindow"
1186 #define XNResourceName "resourceName"
1187 #define XNResourceClass "resourceClass"
1188 #define XNGeometryCallback "geometryCallback"
1189 #define XNDestroyCallback "destroyCallback"
1190 #define XNFilterEvents "filterEvents"
1191 #define XNPreeditStartCallback "preeditStartCallback"
1192 #define XNPreeditDoneCallback "preeditDoneCallback"
1193 #define XNPreeditDrawCallback "preeditDrawCallback"
1194 #define XNPreeditCaretCallback "preeditCaretCallback"
1195 #define XNPreeditStateNotifyCallback "preeditStateNotifyCallback"
1196 #define XNPreeditAttributes "preeditAttributes"
1197 #define XNStatusStartCallback "statusStartCallback"
1198 #define XNStatusDoneCallback "statusDoneCallback"
1199 #define XNStatusDrawCallback "statusDrawCallback"
1200 #define XNStatusAttributes "statusAttributes"
1201 #define XNArea "area"
1202 #define XNAreaNeeded "areaNeeded"
1203 #define XNSpotLocation "spotLocation"
1204 #define XNColormap "colorMap"
1205 #define XNStdColormap "stdColorMap"
1206 #define XNForeground "foreground"
1207 #define XNBackground "background"
1208 #define XNBackgroundPixmap "backgroundPixmap"
1209 #define XNFontSet "fontSet"
1210 #define XNLineSpace "lineSpace"
1211 #define XNCursor "cursor"
1213 #define XNQueryIMValuesList "queryIMValuesList"
1214 #define XNQueryICValuesList "queryICValuesList"
1215 #define XNVisiblePosition "visiblePosition"
1216 #define XNR6PreeditCallback "r6PreeditCallback"
1217 #define XNStringConversionCallback "stringConversionCallback"
1218 #define XNStringConversion "stringConversion"
1219 #define XNResetState "resetState"
1220 #define XNHotKey "hotKey"
1221 #define XNHotKeyState "hotKeyState"
1222 #define XNPreeditState "preeditState"
1223 #define XNSeparatorofNestedList "separatorofNestedList"
1225 #define XBufferOverflow -1
1226 #define XLookupNone 1
1227 #define XLookupChars 2
1228 #define XLookupKeySym 3
1229 #define XLookupBoth 4
1231 #if NeedFunctionPrototypes
1232 typedef void *XVaNestedList;
1234 typedef XPointer XVaNestedList;
1238 XPointer client_data;
1243 XPointer client_data;
1247 typedef unsigned long XIMFeedback;
1249 #define XIMReverse 1L
1250 #define XIMUnderline (1L<<1)
1251 #define XIMHighlight (1L<<2)
1252 #define XIMPrimary (1L<<5)
1253 #define XIMSecondary (1L<<6)
1254 #define XIMTertiary (1L<<7)
1255 #define XIMVisibleToForward (1L<<8)
1256 #define XIMVisibleToBackword (1L<<9)
1257 #define XIMVisibleToCenter (1L<<10)
1259 typedef struct _XIMText {
1260 unsigned short length;
1261 XIMFeedback *feedback;
1262 Bool encoding_is_wchar;
1269 typedef unsigned long XIMPreeditState;
1271 #define XIMPreeditUnKnown 0L
1272 #define XIMPreeditEnable 1L
1273 #define XIMPreeditDisable (1L<<1)
1275 typedef struct _XIMPreeditStateNotifyCallbackStruct {
1276 XIMPreeditState state;
1277 } XIMPreeditStateNotifyCallbackStruct;
1279 typedef unsigned long XIMResetState;
1281 #define XIMInitialState 1L
1282 #define XIMPreserveState (1L<<1)
1284 typedef unsigned long XIMStringConversionFeedback;
1286 #define XIMStringConversionLeftEdge (0x00000001)
1287 #define XIMStringConversionRightEdge (0x00000002)
1288 #define XIMStringConversionTopEdge (0x00000004)
1289 #define XIMStringConversionBottomEdge (0x00000008)
1290 #define XIMStringConversionConcealed (0x00000010)
1291 #define XIMStringConversionWrapped (0x00000020)
1293 typedef struct _XIMStringConversionText {
1294 unsigned short length;
1295 XIMStringConversionFeedback *feedback;
1296 Bool encoding_is_wchar;
1301 } XIMStringConversionText;
1303 typedef unsigned short XIMStringConversionPosition;
1305 typedef unsigned short XIMStringConversionType;
1307 #define XIMStringConversionBuffer (0x0001)
1308 #define XIMStringConversionLine (0x0002)
1309 #define XIMStringConversionWord (0x0003)
1310 #define XIMStringConversionChar (0x0004)
1312 typedef unsigned short XIMStringConversionOperation;
1314 #define XIMStringConversionSubstitution (0x0001)
1315 #define XIMStringConversionRetrival (0x0002)
1318 XIMForwardChar, XIMBackwardChar,
1319 XIMForwardWord, XIMBackwardWord,
1320 XIMCaretUp, XIMCaretDown,
1321 XIMNextLine, XIMPreviousLine,
1322 XIMLineStart, XIMLineEnd,
1323 XIMAbsolutePosition,
1325 } XIMCaretDirection;
1327 typedef struct _XIMStringConversionCallbackStruct {
1328 XIMStringConversionPosition position;
1329 XIMCaretDirection direction;
1330 XIMStringConversionOperation operation;
1331 unsigned short factor;
1332 XIMStringConversionText *text;
1333 } XIMStringConversionCallbackStruct;
1335 typedef struct _XIMPreeditDrawCallbackStruct {
1336 int caret; /* Cursor offset within pre-edit string */
1337 int chg_first; /* Starting change position */
1338 int chg_length; /* Length of the change in character count */
1340 } XIMPreeditDrawCallbackStruct;
1343 XIMIsInvisible, /* Disable caret feedback */
1344 XIMIsPrimary, /* UI defined caret feedback */
1345 XIMIsSecondary /* UI defined caret feedback */
1348 typedef struct _XIMPreeditCaretCallbackStruct {
1349 int position; /* Caret offset within pre-edit string */
1350 XIMCaretDirection direction; /* Caret moves direction */
1351 XIMCaretStyle style; /* Feedback of the caret */
1352 } XIMPreeditCaretCallbackStruct;
1357 } XIMStatusDataType;
1359 typedef struct _XIMStatusDrawCallbackStruct {
1360 XIMStatusDataType type;
1365 } XIMStatusDrawCallbackStruct;
1367 typedef struct _XIMHotKeyTrigger {
1373 typedef struct _XIMHotKeyTriggers {
1375 XIMHotKeyTrigger *key;
1376 } XIMHotKeyTriggers;
1378 typedef unsigned long XIMHotKeyState;
1380 #define XIMHotKeyStateON (0x0001L)
1381 #define XIMHotKeyStateOFF (0x0002L)
1384 unsigned short count_values;
1385 char **supported_values;
1390 #if defined(WIN32) && !defined(_XLIBINT_)
1391 #define _Xdebug (*_Xdebug_p)
1396 extern XFontStruct *XLoadQueryFont(
1397 #if NeedFunctionPrototypes
1398 Display* /* display */,
1399 _Xconst char* /* name */
1403 extern XFontStruct *XQueryFont(
1404 #if NeedFunctionPrototypes
1405 Display* /* display */,
1411 extern XTimeCoord *XGetMotionEvents(
1412 #if NeedFunctionPrototypes
1413 Display* /* display */,
1417 int* /* nevents_return */
1421 extern XModifierKeymap *XDeleteModifiermapEntry(
1422 #if NeedFunctionPrototypes
1423 XModifierKeymap* /* modmap */,
1424 #if NeedWidePrototypes
1425 unsigned int /* keycode_entry */,
1427 KeyCode /* keycode_entry */,
1433 extern XModifierKeymap *XGetModifierMapping(
1434 #if NeedFunctionPrototypes
1435 Display* /* display */
1439 extern XModifierKeymap *XInsertModifiermapEntry(
1440 #if NeedFunctionPrototypes
1441 XModifierKeymap* /* modmap */,
1442 #if NeedWidePrototypes
1443 unsigned int /* keycode_entry */,
1445 KeyCode /* keycode_entry */,
1451 extern XModifierKeymap *XNewModifiermap(
1452 #if NeedFunctionPrototypes
1453 int /* max_keys_per_mod */
1457 extern XImage *XCreateImage(
1458 #if NeedFunctionPrototypes
1459 Display* /* display */,
1460 Visual* /* visual */,
1461 unsigned int /* depth */,
1465 unsigned int /* width */,
1466 unsigned int /* height */,
1467 int /* bitmap_pad */,
1468 int /* bytes_per_line */
1471 extern Status XInitImage(
1472 #if NeedFunctionPrototypes
1476 extern XImage *XGetImage(
1477 #if NeedFunctionPrototypes
1478 Display* /* display */,
1482 unsigned int /* width */,
1483 unsigned int /* height */,
1484 unsigned long /* plane_mask */,
1488 extern XImage *XGetSubImage(
1489 #if NeedFunctionPrototypes
1490 Display* /* display */,
1494 unsigned int /* width */,
1495 unsigned int /* height */,
1496 unsigned long /* plane_mask */,
1498 XImage* /* dest_image */,
1505 * X function declarations.
1507 extern Display *XOpenDisplay(
1508 #if NeedFunctionPrototypes
1509 _Xconst char* /* display_name */
1513 extern void XrmInitialize(
1514 #if NeedFunctionPrototypes
1519 extern char *XFetchBytes(
1520 #if NeedFunctionPrototypes
1521 Display* /* display */,
1522 int* /* nbytes_return */
1525 extern char *XFetchBuffer(
1526 #if NeedFunctionPrototypes
1527 Display* /* display */,
1528 int* /* nbytes_return */,
1532 extern char *XGetAtomName(
1533 #if NeedFunctionPrototypes
1534 Display* /* display */,
1538 extern Status XGetAtomNames(
1539 #if NeedFunctionPrototypes
1543 char** /* names_return */
1546 extern char *XGetDefault(
1547 #if NeedFunctionPrototypes
1548 Display* /* display */,
1549 _Xconst char* /* program */,
1550 _Xconst char* /* option */
1553 extern char *XDisplayName(
1554 #if NeedFunctionPrototypes
1555 _Xconst char* /* string */
1558 extern char *XKeysymToString(
1559 #if NeedFunctionPrototypes
1564 extern int (*XSynchronize(
1565 #if NeedFunctionPrototypes
1566 Display* /* display */,
1570 #if NeedNestedPrototypes
1571 Display* /* display */
1574 extern int (*XSetAfterFunction(
1575 #if NeedFunctionPrototypes
1576 Display* /* display */,
1578 #if NeedNestedPrototypes
1579 Display* /* display */
1584 #if NeedNestedPrototypes
1585 Display* /* display */
1588 extern Atom XInternAtom(
1589 #if NeedFunctionPrototypes
1590 Display* /* display */,
1591 _Xconst char* /* atom_name */,
1592 Bool /* only_if_exists */
1595 extern Status XInternAtoms(
1596 #if NeedFunctionPrototypes
1600 Bool /* onlyIfExists */,
1601 Atom* /* atoms_return */
1604 extern Colormap XCopyColormapAndFree(
1605 #if NeedFunctionPrototypes
1606 Display* /* display */,
1607 Colormap /* colormap */
1610 extern Colormap XCreateColormap(
1611 #if NeedFunctionPrototypes
1612 Display* /* display */,
1614 Visual* /* visual */,
1618 extern Cursor XCreatePixmapCursor(
1619 #if NeedFunctionPrototypes
1620 Display* /* display */,
1621 Pixmap /* source */,
1623 XColor* /* foreground_color */,
1624 XColor* /* background_color */,
1625 unsigned int /* x */,
1626 unsigned int /* y */
1629 extern Cursor XCreateGlyphCursor(
1630 #if NeedFunctionPrototypes
1631 Display* /* display */,
1632 Font /* source_font */,
1633 Font /* mask_font */,
1634 unsigned int /* source_char */,
1635 unsigned int /* mask_char */,
1636 XColor* /* foreground_color */,
1637 XColor* /* background_color */
1640 extern Cursor XCreateFontCursor(
1641 #if NeedFunctionPrototypes
1642 Display* /* display */,
1643 unsigned int /* shape */
1646 extern Font XLoadFont(
1647 #if NeedFunctionPrototypes
1648 Display* /* display */,
1649 _Xconst char* /* name */
1652 extern GC XCreateGC(
1653 #if NeedFunctionPrototypes
1654 Display* /* display */,
1656 unsigned long /* valuemask */,
1657 XGCValues* /* values */
1660 extern GContext XGContextFromGC(
1661 #if NeedFunctionPrototypes
1665 extern void XFlushGC(
1666 #if NeedFunctionPrototypes
1667 Display* /* display */,
1671 extern Pixmap XCreatePixmap(
1672 #if NeedFunctionPrototypes
1673 Display* /* display */,
1675 unsigned int /* width */,
1676 unsigned int /* height */,
1677 unsigned int /* depth */
1680 extern Pixmap XCreateBitmapFromData(
1681 #if NeedFunctionPrototypes
1682 Display* /* display */,
1684 _Xconst char* /* data */,
1685 unsigned int /* width */,
1686 unsigned int /* height */
1689 extern Pixmap XCreatePixmapFromBitmapData(
1690 #if NeedFunctionPrototypes
1691 Display* /* display */,
1694 unsigned int /* width */,
1695 unsigned int /* height */,
1696 unsigned long /* fg */,
1697 unsigned long /* bg */,
1698 unsigned int /* depth */
1701 extern Window XCreateSimpleWindow(
1702 #if NeedFunctionPrototypes
1703 Display* /* display */,
1704 Window /* parent */,
1707 unsigned int /* width */,
1708 unsigned int /* height */,
1709 unsigned int /* border_width */,
1710 unsigned long /* border */,
1711 unsigned long /* background */
1714 extern Window XGetSelectionOwner(
1715 #if NeedFunctionPrototypes
1716 Display* /* display */,
1717 Atom /* selection */
1720 extern Window XCreateWindow(
1721 #if NeedFunctionPrototypes
1722 Display* /* display */,
1723 Window /* parent */,
1726 unsigned int /* width */,
1727 unsigned int /* height */,
1728 unsigned int /* border_width */,
1730 unsigned int /* class */,
1731 Visual* /* visual */,
1732 unsigned long /* valuemask */,
1733 XSetWindowAttributes* /* attributes */
1736 extern Colormap *XListInstalledColormaps(
1737 #if NeedFunctionPrototypes
1738 Display* /* display */,
1740 int* /* num_return */
1743 extern char **XListFonts(
1744 #if NeedFunctionPrototypes
1745 Display* /* display */,
1746 _Xconst char* /* pattern */,
1748 int* /* actual_count_return */
1751 extern char **XListFontsWithInfo(
1752 #if NeedFunctionPrototypes
1753 Display* /* display */,
1754 _Xconst char* /* pattern */,
1756 int* /* count_return */,
1757 XFontStruct** /* info_return */
1760 extern char **XGetFontPath(
1761 #if NeedFunctionPrototypes
1762 Display* /* display */,
1763 int* /* npaths_return */
1766 extern char **XListExtensions(
1767 #if NeedFunctionPrototypes
1768 Display* /* display */,
1769 int* /* nextensions_return */
1772 extern Atom *XListProperties(
1773 #if NeedFunctionPrototypes
1774 Display* /* display */,
1776 int* /* num_prop_return */
1779 extern XHostAddress *XListHosts(
1780 #if NeedFunctionPrototypes
1781 Display* /* display */,
1782 int* /* nhosts_return */,
1783 Bool* /* state_return */
1786 extern KeySym XKeycodeToKeysym(
1787 #if NeedFunctionPrototypes
1788 Display* /* display */,
1789 #if NeedWidePrototypes
1790 unsigned int /* keycode */,
1792 KeyCode /* keycode */,
1797 extern KeySym XLookupKeysym(
1798 #if NeedFunctionPrototypes
1799 XKeyEvent* /* key_event */,
1803 extern KeySym *XGetKeyboardMapping(
1804 #if NeedFunctionPrototypes
1805 Display* /* display */,
1806 #if NeedWidePrototypes
1807 unsigned int /* first_keycode */,
1809 KeyCode /* first_keycode */,
1811 int /* keycode_count */,
1812 int* /* keysyms_per_keycode_return */
1815 extern KeySym XStringToKeysym(
1816 #if NeedFunctionPrototypes
1817 _Xconst char* /* string */
1820 extern long XMaxRequestSize(
1821 #if NeedFunctionPrototypes
1822 Display* /* display */
1825 extern long XExtendedMaxRequestSize(
1826 #if NeedFunctionPrototypes
1827 Display* /* display */
1830 extern char *XResourceManagerString(
1831 #if NeedFunctionPrototypes
1832 Display* /* display */
1835 extern char *XScreenResourceString(
1836 #if NeedFunctionPrototypes
1837 Screen* /* screen */
1840 extern unsigned long XDisplayMotionBufferSize(
1841 #if NeedFunctionPrototypes
1842 Display* /* display */
1845 extern VisualID XVisualIDFromVisual(
1846 #if NeedFunctionPrototypes
1847 Visual* /* visual */
1851 /* multithread routines */
1853 extern Status XInitThreads(
1854 #if NeedFunctionPrototypes
1859 extern void XLockDisplay(
1860 #if NeedFunctionPrototypes
1861 Display* /* display */
1865 extern void XUnlockDisplay(
1866 #if NeedFunctionPrototypes
1867 Display* /* display */
1871 /* routines for dealing with extensions */
1873 extern XExtCodes *XInitExtension(
1874 #if NeedFunctionPrototypes
1875 Display* /* display */,
1876 _Xconst char* /* name */
1880 extern XExtCodes *XAddExtension(
1881 #if NeedFunctionPrototypes
1882 Display* /* display */
1885 extern XExtData *XFindOnExtensionList(
1886 #if NeedFunctionPrototypes
1887 XExtData** /* structure */,
1891 extern XExtData **XEHeadOfExtensionList(
1892 #if NeedFunctionPrototypes
1893 XEDataObject /* object */
1897 /* these are routines for which there are also macros */
1898 extern Window XRootWindow(
1899 #if NeedFunctionPrototypes
1900 Display* /* display */,
1901 int /* screen_number */
1904 extern Window XDefaultRootWindow(
1905 #if NeedFunctionPrototypes
1906 Display* /* display */
1909 extern Window XRootWindowOfScreen(
1910 #if NeedFunctionPrototypes
1911 Screen* /* screen */
1914 extern Visual *XDefaultVisual(
1915 #if NeedFunctionPrototypes
1916 Display* /* display */,
1917 int /* screen_number */
1920 extern Visual *XDefaultVisualOfScreen(
1921 #if NeedFunctionPrototypes
1922 Screen* /* screen */
1925 extern GC XDefaultGC(
1926 #if NeedFunctionPrototypes
1927 Display* /* display */,
1928 int /* screen_number */
1931 extern GC XDefaultGCOfScreen(
1932 #if NeedFunctionPrototypes
1933 Screen* /* screen */
1936 extern unsigned long XBlackPixel(
1937 #if NeedFunctionPrototypes
1938 Display* /* display */,
1939 int /* screen_number */
1942 extern unsigned long XWhitePixel(
1943 #if NeedFunctionPrototypes
1944 Display* /* display */,
1945 int /* screen_number */
1948 extern unsigned long XAllPlanes(
1949 #if NeedFunctionPrototypes
1953 extern unsigned long XBlackPixelOfScreen(
1954 #if NeedFunctionPrototypes
1955 Screen* /* screen */
1958 extern unsigned long XWhitePixelOfScreen(
1959 #if NeedFunctionPrototypes
1960 Screen* /* screen */
1963 extern unsigned long XNextRequest(
1964 #if NeedFunctionPrototypes
1965 Display* /* display */
1968 extern unsigned long XLastKnownRequestProcessed(
1969 #if NeedFunctionPrototypes
1970 Display* /* display */
1973 extern char *XServerVendor(
1974 #if NeedFunctionPrototypes
1975 Display* /* display */
1978 extern char *XDisplayString(
1979 #if NeedFunctionPrototypes
1980 Display* /* display */
1983 extern Colormap XDefaultColormap(
1984 #if NeedFunctionPrototypes
1985 Display* /* display */,
1986 int /* screen_number */
1989 extern Colormap XDefaultColormapOfScreen(
1990 #if NeedFunctionPrototypes
1991 Screen* /* screen */
1994 extern Display *XDisplayOfScreen(
1995 #if NeedFunctionPrototypes
1996 Screen* /* screen */
1999 extern Screen *XScreenOfDisplay(
2000 #if NeedFunctionPrototypes
2001 Display* /* display */,
2002 int /* screen_number */
2005 extern Screen *XDefaultScreenOfDisplay(
2006 #if NeedFunctionPrototypes
2007 Display* /* display */
2010 extern long XEventMaskOfScreen(
2011 #if NeedFunctionPrototypes
2012 Screen* /* screen */
2016 extern int XScreenNumberOfScreen(
2017 #if NeedFunctionPrototypes
2018 Screen* /* screen */
2022 typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */
2023 #if NeedFunctionPrototypes
2024 Display* /* display */,
2025 XErrorEvent* /* error_event */
2029 extern XErrorHandler XSetErrorHandler (
2030 #if NeedFunctionPrototypes
2031 XErrorHandler /* handler */
2036 typedef int (*XIOErrorHandler) ( /* WARNING, this type not in Xlib spec */
2037 #if NeedFunctionPrototypes
2038 Display* /* display */
2042 extern XIOErrorHandler XSetIOErrorHandler (
2043 #if NeedFunctionPrototypes
2044 XIOErrorHandler /* handler */
2049 extern XPixmapFormatValues *XListPixmapFormats(
2050 #if NeedFunctionPrototypes
2051 Display* /* display */,
2052 int* /* count_return */
2055 extern int *XListDepths(
2056 #if NeedFunctionPrototypes
2057 Display* /* display */,
2058 int /* screen_number */,
2059 int* /* count_return */
2063 /* ICCCM routines for things that don't require special include files; */
2064 /* other declarations are given in Xutil.h */
2065 extern Status XReconfigureWMWindow(
2066 #if NeedFunctionPrototypes
2067 Display* /* display */,
2069 int /* screen_number */,
2070 unsigned int /* mask */,
2071 XWindowChanges* /* changes */
2075 extern Status XGetWMProtocols(
2076 #if NeedFunctionPrototypes
2077 Display* /* display */,
2079 Atom** /* protocols_return */,
2080 int* /* count_return */
2083 extern Status XSetWMProtocols(
2084 #if NeedFunctionPrototypes
2085 Display* /* display */,
2087 Atom* /* protocols */,
2091 extern Status XIconifyWindow(
2092 #if NeedFunctionPrototypes
2093 Display* /* display */,
2095 int /* screen_number */
2098 extern Status XWithdrawWindow(
2099 #if NeedFunctionPrototypes
2100 Display* /* display */,
2102 int /* screen_number */
2105 extern Status XGetCommand(
2106 #if NeedFunctionPrototypes
2107 Display* /* display */,
2109 char*** /* argv_return */,
2110 int* /* argc_return */
2113 extern Status XGetWMColormapWindows(
2114 #if NeedFunctionPrototypes
2115 Display* /* display */,
2117 Window** /* windows_return */,
2118 int* /* count_return */
2121 extern Status XSetWMColormapWindows(
2122 #if NeedFunctionPrototypes
2123 Display* /* display */,
2125 Window* /* colormap_windows */,
2129 extern void XFreeStringList(
2130 #if NeedFunctionPrototypes
2134 extern int XSetTransientForHint(
2135 #if NeedFunctionPrototypes
2136 Display* /* display */,
2138 Window /* prop_window */
2142 /* The following are given in alphabetical order */
2144 extern int XActivateScreenSaver(
2145 #if NeedFunctionPrototypes
2146 Display* /* display */
2150 extern int XAddHost(
2151 #if NeedFunctionPrototypes
2152 Display* /* display */,
2153 XHostAddress* /* host */
2157 extern int XAddHosts(
2158 #if NeedFunctionPrototypes
2159 Display* /* display */,
2160 XHostAddress* /* hosts */,
2165 extern int XAddToExtensionList(
2166 #if NeedFunctionPrototypes
2167 struct _XExtData** /* structure */,
2168 XExtData* /* ext_data */
2172 extern int XAddToSaveSet(
2173 #if NeedFunctionPrototypes
2174 Display* /* display */,
2179 extern Status XAllocColor(
2180 #if NeedFunctionPrototypes
2181 Display* /* display */,
2182 Colormap /* colormap */,
2183 XColor* /* screen_in_out */
2187 extern Status XAllocColorCells(
2188 #if NeedFunctionPrototypes
2189 Display* /* display */,
2190 Colormap /* colormap */,
2192 unsigned long* /* plane_masks_return */,
2193 unsigned int /* nplanes */,
2194 unsigned long* /* pixels_return */,
2195 unsigned int /* npixels */
2199 extern Status XAllocColorPlanes(
2200 #if NeedFunctionPrototypes
2201 Display* /* display */,
2202 Colormap /* colormap */,
2204 unsigned long* /* pixels_return */,
2209 unsigned long* /* rmask_return */,
2210 unsigned long* /* gmask_return */,
2211 unsigned long* /* bmask_return */
2215 extern Status XAllocNamedColor(
2216 #if NeedFunctionPrototypes
2217 Display* /* display */,
2218 Colormap /* colormap */,
2219 _Xconst char* /* color_name */,
2220 XColor* /* screen_def_return */,
2221 XColor* /* exact_def_return */
2225 extern int XAllowEvents(
2226 #if NeedFunctionPrototypes
2227 Display* /* display */,
2228 int /* event_mode */,
2233 extern int XAutoRepeatOff(
2234 #if NeedFunctionPrototypes
2235 Display* /* display */
2239 extern int XAutoRepeatOn(
2240 #if NeedFunctionPrototypes
2241 Display* /* display */
2246 #if NeedFunctionPrototypes
2247 Display* /* display */,
2252 extern int XBitmapBitOrder(
2253 #if NeedFunctionPrototypes
2254 Display* /* display */
2258 extern int XBitmapPad(
2259 #if NeedFunctionPrototypes
2260 Display* /* display */
2264 extern int XBitmapUnit(
2265 #if NeedFunctionPrototypes
2266 Display* /* display */
2270 extern int XCellsOfScreen(
2271 #if NeedFunctionPrototypes
2272 Screen* /* screen */
2276 extern int XChangeActivePointerGrab(
2277 #if NeedFunctionPrototypes
2278 Display* /* display */,
2279 unsigned int /* event_mask */,
2280 Cursor /* cursor */,
2285 extern int XChangeGC(
2286 #if NeedFunctionPrototypes
2287 Display* /* display */,
2289 unsigned long /* valuemask */,
2290 XGCValues* /* values */
2294 extern int XChangeKeyboardControl(
2295 #if NeedFunctionPrototypes
2296 Display* /* display */,
2297 unsigned long /* value_mask */,
2298 XKeyboardControl* /* values */
2302 extern int XChangeKeyboardMapping(
2303 #if NeedFunctionPrototypes
2304 Display* /* display */,
2305 int /* first_keycode */,
2306 int /* keysyms_per_keycode */,
2307 KeySym* /* keysyms */,
2312 extern int XChangePointerControl(
2313 #if NeedFunctionPrototypes
2314 Display* /* display */,
2315 Bool /* do_accel */,
2316 Bool /* do_threshold */,
2317 int /* accel_numerator */,
2318 int /* accel_denominator */,
2323 extern int XChangeProperty(
2324 #if NeedFunctionPrototypes
2325 Display* /* display */,
2327 Atom /* property */,
2331 _Xconst unsigned char* /* data */,
2336 extern int XChangeSaveSet(
2337 #if NeedFunctionPrototypes
2338 Display* /* display */,
2340 int /* change_mode */
2344 extern int XChangeWindowAttributes(
2345 #if NeedFunctionPrototypes
2346 Display* /* display */,
2348 unsigned long /* valuemask */,
2349 XSetWindowAttributes* /* attributes */
2353 extern Bool XCheckIfEvent(
2354 #if NeedFunctionPrototypes
2355 Display* /* display */,
2356 XEvent* /* event_return */,
2358 #if NeedNestedPrototypes
2359 Display* /* display */,
2360 XEvent* /* event */,
2368 extern Bool XCheckMaskEvent(
2369 #if NeedFunctionPrototypes
2370 Display* /* display */,
2371 long /* event_mask */,
2372 XEvent* /* event_return */
2376 extern Bool XCheckTypedEvent(
2377 #if NeedFunctionPrototypes
2378 Display* /* display */,
2379 int /* event_type */,
2380 XEvent* /* event_return */
2384 extern Bool XCheckTypedWindowEvent(
2385 #if NeedFunctionPrototypes
2386 Display* /* display */,
2388 int /* event_type */,
2389 XEvent* /* event_return */
2393 extern Bool XCheckWindowEvent(
2394 #if NeedFunctionPrototypes
2395 Display* /* display */,
2397 long /* event_mask */,
2398 XEvent* /* event_return */
2402 extern int XCirculateSubwindows(
2403 #if NeedFunctionPrototypes
2404 Display* /* display */,
2410 extern int XCirculateSubwindowsDown(
2411 #if NeedFunctionPrototypes
2412 Display* /* display */,
2417 extern int XCirculateSubwindowsUp(
2418 #if NeedFunctionPrototypes
2419 Display* /* display */,
2424 extern int XClearArea(
2425 #if NeedFunctionPrototypes
2426 Display* /* display */,
2430 unsigned int /* width */,
2431 unsigned int /* height */,
2432 Bool /* exposures */
2436 extern int XClearWindow(
2437 #if NeedFunctionPrototypes
2438 Display* /* display */,
2443 extern int XCloseDisplay(
2444 #if NeedFunctionPrototypes
2445 Display* /* display */
2449 extern int XConfigureWindow(
2450 #if NeedFunctionPrototypes
2451 Display* /* display */,
2453 unsigned int /* value_mask */,
2454 XWindowChanges* /* values */
2458 extern int XConnectionNumber(
2459 #if NeedFunctionPrototypes
2460 Display* /* display */
2464 extern int XConvertSelection(
2465 #if NeedFunctionPrototypes
2466 Display* /* display */,
2467 Atom /* selection */,
2469 Atom /* property */,
2470 Window /* requestor */,
2475 extern int XCopyArea(
2476 #if NeedFunctionPrototypes
2477 Display* /* display */,
2479 Drawable /* dest */,
2483 unsigned int /* width */,
2484 unsigned int /* height */,
2491 #if NeedFunctionPrototypes
2492 Display* /* display */,
2494 unsigned long /* valuemask */,
2499 extern int XCopyPlane(
2500 #if NeedFunctionPrototypes
2501 Display* /* display */,
2503 Drawable /* dest */,
2507 unsigned int /* width */,
2508 unsigned int /* height */,
2511 unsigned long /* plane */
2515 extern int XDefaultDepth(
2516 #if NeedFunctionPrototypes
2517 Display* /* display */,
2518 int /* screen_number */
2522 extern int XDefaultDepthOfScreen(
2523 #if NeedFunctionPrototypes
2524 Screen* /* screen */
2528 extern int XDefaultScreen(
2529 #if NeedFunctionPrototypes
2530 Display* /* display */
2534 extern int XDefineCursor(
2535 #if NeedFunctionPrototypes
2536 Display* /* display */,
2542 extern int XDeleteProperty(
2543 #if NeedFunctionPrototypes
2544 Display* /* display */,
2550 extern int XDestroyWindow(
2551 #if NeedFunctionPrototypes
2552 Display* /* display */,
2557 extern int XDestroySubwindows(
2558 #if NeedFunctionPrototypes
2559 Display* /* display */,
2564 extern int XDoesBackingStore(
2565 #if NeedFunctionPrototypes
2566 Screen* /* screen */
2570 extern Bool XDoesSaveUnders(
2571 #if NeedFunctionPrototypes
2572 Screen* /* screen */
2576 extern int XDisableAccessControl(
2577 #if NeedFunctionPrototypes
2578 Display* /* display */
2583 extern int XDisplayCells(
2584 #if NeedFunctionPrototypes
2585 Display* /* display */,
2586 int /* screen_number */
2590 extern int XDisplayHeight(
2591 #if NeedFunctionPrototypes
2592 Display* /* display */,
2593 int /* screen_number */
2597 extern int XDisplayHeightMM(
2598 #if NeedFunctionPrototypes
2599 Display* /* display */,
2600 int /* screen_number */
2604 extern int XDisplayKeycodes(
2605 #if NeedFunctionPrototypes
2606 Display* /* display */,
2607 int* /* min_keycodes_return */,
2608 int* /* max_keycodes_return */
2612 extern int XDisplayPlanes(
2613 #if NeedFunctionPrototypes
2614 Display* /* display */,
2615 int /* screen_number */
2619 extern int XDisplayWidth(
2620 #if NeedFunctionPrototypes
2621 Display* /* display */,
2622 int /* screen_number */
2626 extern int XDisplayWidthMM(
2627 #if NeedFunctionPrototypes
2628 Display* /* display */,
2629 int /* screen_number */
2633 extern int XDrawArc(
2634 #if NeedFunctionPrototypes
2635 Display* /* display */,
2640 unsigned int /* width */,
2641 unsigned int /* height */,
2647 extern int XDrawArcs(
2648 #if NeedFunctionPrototypes
2649 Display* /* display */,
2657 extern int XDrawImageString(
2658 #if NeedFunctionPrototypes
2659 Display* /* display */,
2664 _Xconst char* /* string */,
2669 extern int XDrawImageString16(
2670 #if NeedFunctionPrototypes
2671 Display* /* display */,
2676 _Xconst XChar2b* /* string */,
2681 extern int XDrawLine(
2682 #if NeedFunctionPrototypes
2683 Display* /* display */,
2693 extern int XDrawLines(
2694 #if NeedFunctionPrototypes
2695 Display* /* display */,
2698 XPoint* /* points */,
2704 extern int XDrawPoint(
2705 #if NeedFunctionPrototypes
2706 Display* /* display */,
2714 extern int XDrawPoints(
2715 #if NeedFunctionPrototypes
2716 Display* /* display */,
2719 XPoint* /* points */,
2725 extern int XDrawRectangle(
2726 #if NeedFunctionPrototypes
2727 Display* /* display */,
2732 unsigned int /* width */,
2733 unsigned int /* height */
2737 extern int XDrawRectangles(
2738 #if NeedFunctionPrototypes
2739 Display* /* display */,
2742 XRectangle* /* rectangles */,
2743 int /* nrectangles */
2747 extern int XDrawSegments(
2748 #if NeedFunctionPrototypes
2749 Display* /* display */,
2752 XSegment* /* segments */,
2757 extern int XDrawString(
2758 #if NeedFunctionPrototypes
2759 Display* /* display */,
2764 _Xconst char* /* string */,
2769 extern int XDrawString16(
2770 #if NeedFunctionPrototypes
2771 Display* /* display */,
2776 _Xconst XChar2b* /* string */,
2781 extern int XDrawText(
2782 #if NeedFunctionPrototypes
2783 Display* /* display */,
2788 XTextItem* /* items */,
2793 extern int XDrawText16(
2794 #if NeedFunctionPrototypes
2795 Display* /* display */,
2800 XTextItem16* /* items */,
2805 extern int XEnableAccessControl(
2806 #if NeedFunctionPrototypes
2807 Display* /* display */
2811 extern int XEventsQueued(
2812 #if NeedFunctionPrototypes
2813 Display* /* display */,
2818 extern Status XFetchName(
2819 #if NeedFunctionPrototypes
2820 Display* /* display */,
2822 char** /* window_name_return */
2826 extern int XFillArc(
2827 #if NeedFunctionPrototypes
2828 Display* /* display */,
2833 unsigned int /* width */,
2834 unsigned int /* height */,
2840 extern int XFillArcs(
2841 #if NeedFunctionPrototypes
2842 Display* /* display */,
2850 extern int XFillPolygon(
2851 #if NeedFunctionPrototypes
2852 Display* /* display */,
2855 XPoint* /* points */,
2862 extern int XFillRectangle(
2863 #if NeedFunctionPrototypes
2864 Display* /* display */,
2869 unsigned int /* width */,
2870 unsigned int /* height */
2874 extern int XFillRectangles(
2875 #if NeedFunctionPrototypes
2876 Display* /* display */,
2879 XRectangle* /* rectangles */,
2880 int /* nrectangles */
2885 #if NeedFunctionPrototypes
2886 Display* /* display */
2890 extern int XForceScreenSaver(
2891 #if NeedFunctionPrototypes
2892 Display* /* display */,
2898 #if NeedFunctionPrototypes
2903 extern int XFreeColormap(
2904 #if NeedFunctionPrototypes
2905 Display* /* display */,
2906 Colormap /* colormap */
2910 extern int XFreeColors(
2911 #if NeedFunctionPrototypes
2912 Display* /* display */,
2913 Colormap /* colormap */,
2914 unsigned long* /* pixels */,
2916 unsigned long /* planes */
2920 extern int XFreeCursor(
2921 #if NeedFunctionPrototypes
2922 Display* /* display */,
2927 extern int XFreeExtensionList(
2928 #if NeedFunctionPrototypes
2933 extern int XFreeFont(
2934 #if NeedFunctionPrototypes
2935 Display* /* display */,
2936 XFontStruct* /* font_struct */
2940 extern int XFreeFontInfo(
2941 #if NeedFunctionPrototypes
2943 XFontStruct* /* free_info */,
2944 int /* actual_count */
2948 extern int XFreeFontNames(
2949 #if NeedFunctionPrototypes
2954 extern int XFreeFontPath(
2955 #if NeedFunctionPrototypes
2961 #if NeedFunctionPrototypes
2962 Display* /* display */,
2967 extern int XFreeModifiermap(
2968 #if NeedFunctionPrototypes
2969 XModifierKeymap* /* modmap */
2973 extern int XFreePixmap(
2974 #if NeedFunctionPrototypes
2975 Display* /* display */,
2980 extern int XGeometry(
2981 #if NeedFunctionPrototypes
2982 Display* /* display */,
2984 _Xconst char* /* position */,
2985 _Xconst char* /* default_position */,
2986 unsigned int /* bwidth */,
2987 unsigned int /* fwidth */,
2988 unsigned int /* fheight */,
2991 int* /* x_return */,
2992 int* /* y_return */,
2993 int* /* width_return */,
2994 int* /* height_return */
2998 extern int XGetErrorDatabaseText(
2999 #if NeedFunctionPrototypes
3000 Display* /* display */,
3001 _Xconst char* /* name */,
3002 _Xconst char* /* message */,
3003 _Xconst char* /* default_string */,
3004 char* /* buffer_return */,
3009 extern int XGetErrorText(
3010 #if NeedFunctionPrototypes
3011 Display* /* display */,
3013 char* /* buffer_return */,
3018 extern Bool XGetFontProperty(
3019 #if NeedFunctionPrototypes
3020 XFontStruct* /* font_struct */,
3022 unsigned long* /* value_return */
3026 extern Status XGetGCValues(
3027 #if NeedFunctionPrototypes
3028 Display* /* display */,
3030 unsigned long /* valuemask */,
3031 XGCValues* /* values_return */
3035 extern Status XGetGeometry(
3036 #if NeedFunctionPrototypes
3037 Display* /* display */,
3039 Window* /* root_return */,
3040 int* /* x_return */,
3041 int* /* y_return */,
3042 unsigned int* /* width_return */,
3043 unsigned int* /* height_return */,
3044 unsigned int* /* border_width_return */,
3045 unsigned int* /* depth_return */
3049 extern Status XGetIconName(
3050 #if NeedFunctionPrototypes
3051 Display* /* display */,
3053 char** /* icon_name_return */
3057 extern int XGetInputFocus(
3058 #if NeedFunctionPrototypes
3059 Display* /* display */,
3060 Window* /* focus_return */,
3061 int* /* revert_to_return */
3065 extern int XGetKeyboardControl(
3066 #if NeedFunctionPrototypes
3067 Display* /* display */,
3068 XKeyboardState* /* values_return */
3072 extern int XGetPointerControl(
3073 #if NeedFunctionPrototypes
3074 Display* /* display */,
3075 int* /* accel_numerator_return */,
3076 int* /* accel_denominator_return */,
3077 int* /* threshold_return */
3081 extern int XGetPointerMapping(
3082 #if NeedFunctionPrototypes
3083 Display* /* display */,
3084 unsigned char* /* map_return */,
3089 extern int XGetScreenSaver(
3090 #if NeedFunctionPrototypes
3091 Display* /* display */,
3092 int* /* timeout_return */,
3093 int* /* interval_return */,
3094 int* /* prefer_blanking_return */,
3095 int* /* allow_exposures_return */
3099 extern Status XGetTransientForHint(
3100 #if NeedFunctionPrototypes
3101 Display* /* display */,
3103 Window* /* prop_window_return */
3107 extern int XGetWindowProperty(
3108 #if NeedFunctionPrototypes
3109 Display* /* display */,
3111 Atom /* property */,
3112 long /* long_offset */,
3113 long /* long_length */,
3115 Atom /* req_type */,
3116 Atom* /* actual_type_return */,
3117 int* /* actual_format_return */,
3118 unsigned long* /* nitems_return */,
3119 unsigned long* /* bytes_after_return */,
3120 unsigned char** /* prop_return */
3124 extern Status XGetWindowAttributes(
3125 #if NeedFunctionPrototypes
3126 Display* /* display */,
3128 XWindowAttributes* /* window_attributes_return */
3132 extern int XGrabButton(
3133 #if NeedFunctionPrototypes
3134 Display* /* display */,
3135 unsigned int /* button */,
3136 unsigned int /* modifiers */,
3137 Window /* grab_window */,
3138 Bool /* owner_events */,
3139 unsigned int /* event_mask */,
3140 int /* pointer_mode */,
3141 int /* keyboard_mode */,
3142 Window /* confine_to */,
3147 extern int XGrabKey(
3148 #if NeedFunctionPrototypes
3149 Display* /* display */,
3151 unsigned int /* modifiers */,
3152 Window /* grab_window */,
3153 Bool /* owner_events */,
3154 int /* pointer_mode */,
3155 int /* keyboard_mode */
3159 extern int XGrabKeyboard(
3160 #if NeedFunctionPrototypes
3161 Display* /* display */,
3162 Window /* grab_window */,
3163 Bool /* owner_events */,
3164 int /* pointer_mode */,
3165 int /* keyboard_mode */,
3170 extern int XGrabPointer(
3171 #if NeedFunctionPrototypes
3172 Display* /* display */,
3173 Window /* grab_window */,
3174 Bool /* owner_events */,
3175 unsigned int /* event_mask */,
3176 int /* pointer_mode */,
3177 int /* keyboard_mode */,
3178 Window /* confine_to */,
3179 Cursor /* cursor */,
3184 extern int XGrabServer(
3185 #if NeedFunctionPrototypes
3186 Display* /* display */
3190 extern int XHeightMMOfScreen(
3191 #if NeedFunctionPrototypes
3192 Screen* /* screen */
3196 extern int XHeightOfScreen(
3197 #if NeedFunctionPrototypes
3198 Screen* /* screen */
3202 extern int XIfEvent(
3203 #if NeedFunctionPrototypes
3204 Display* /* display */,
3205 XEvent* /* event_return */,
3207 #if NeedNestedPrototypes
3208 Display* /* display */,
3209 XEvent* /* event */,
3217 extern int XImageByteOrder(
3218 #if NeedFunctionPrototypes
3219 Display* /* display */
3223 extern int XInstallColormap(
3224 #if NeedFunctionPrototypes
3225 Display* /* display */,
3226 Colormap /* colormap */
3230 extern KeyCode XKeysymToKeycode(
3231 #if NeedFunctionPrototypes
3232 Display* /* display */,
3237 extern int XKillClient(
3238 #if NeedFunctionPrototypes
3239 Display* /* display */,
3244 extern Status XLookupColor(
3245 #if NeedFunctionPrototypes
3246 Display* /* display */,
3247 Colormap /* colormap */,
3248 _Xconst char* /* color_name */,
3249 XColor* /* exact_def_return */,
3250 XColor* /* screen_def_return */
3254 extern int XLowerWindow(
3255 #if NeedFunctionPrototypes
3256 Display* /* display */,
3261 extern int XMapRaised(
3262 #if NeedFunctionPrototypes
3263 Display* /* display */,
3268 extern int XMapSubwindows(
3269 #if NeedFunctionPrototypes
3270 Display* /* display */,
3275 extern int XMapWindow(
3276 #if NeedFunctionPrototypes
3277 Display* /* display */,
3282 extern int XMaskEvent(
3283 #if NeedFunctionPrototypes
3284 Display* /* display */,
3285 long /* event_mask */,
3286 XEvent* /* event_return */
3290 extern int XMaxCmapsOfScreen(
3291 #if NeedFunctionPrototypes
3292 Screen* /* screen */
3296 extern int XMinCmapsOfScreen(
3297 #if NeedFunctionPrototypes
3298 Screen* /* screen */
3302 extern int XMoveResizeWindow(
3303 #if NeedFunctionPrototypes
3304 Display* /* display */,
3308 unsigned int /* width */,
3309 unsigned int /* height */
3313 extern int XMoveWindow(
3314 #if NeedFunctionPrototypes
3315 Display* /* display */,
3322 extern int XNextEvent(
3323 #if NeedFunctionPrototypes
3324 Display* /* display */,
3325 XEvent* /* event_return */
3330 #if NeedFunctionPrototypes
3331 Display* /* display */
3335 extern Status XParseColor(
3336 #if NeedFunctionPrototypes
3337 Display* /* display */,
3338 Colormap /* colormap */,
3339 _Xconst char* /* spec */,
3340 XColor* /* exact_def_return */
3344 extern int XParseGeometry(
3345 #if NeedFunctionPrototypes
3346 _Xconst char* /* parsestring */,
3347 int* /* x_return */,
3348 int* /* y_return */,
3349 unsigned int* /* width_return */,
3350 unsigned int* /* height_return */
3354 extern int XPeekEvent(
3355 #if NeedFunctionPrototypes
3356 Display* /* display */,
3357 XEvent* /* event_return */
3361 extern int XPeekIfEvent(
3362 #if NeedFunctionPrototypes
3363 Display* /* display */,
3364 XEvent* /* event_return */,
3366 #if NeedNestedPrototypes
3367 Display* /* display */,
3368 XEvent* /* event */,
3376 extern int XPending(
3377 #if NeedFunctionPrototypes
3378 Display* /* display */
3382 extern int XPlanesOfScreen(
3383 #if NeedFunctionPrototypes
3384 Screen* /* screen */
3389 extern int XProtocolRevision(
3390 #if NeedFunctionPrototypes
3391 Display* /* display */
3395 extern int XProtocolVersion(
3396 #if NeedFunctionPrototypes
3397 Display* /* display */
3402 extern int XPutBackEvent(
3403 #if NeedFunctionPrototypes
3404 Display* /* display */,
3409 extern int XPutImage(
3410 #if NeedFunctionPrototypes
3411 Display* /* display */,
3414 XImage* /* image */,
3419 unsigned int /* width */,
3420 unsigned int /* height */
3424 extern int XQLength(
3425 #if NeedFunctionPrototypes
3426 Display* /* display */
3430 extern Status XQueryBestCursor(
3431 #if NeedFunctionPrototypes
3432 Display* /* display */,
3434 unsigned int /* width */,
3435 unsigned int /* height */,
3436 unsigned int* /* width_return */,
3437 unsigned int* /* height_return */
3441 extern Status XQueryBestSize(
3442 #if NeedFunctionPrototypes
3443 Display* /* display */,
3445 Drawable /* which_screen */,
3446 unsigned int /* width */,
3447 unsigned int /* height */,
3448 unsigned int* /* width_return */,
3449 unsigned int* /* height_return */
3453 extern Status XQueryBestStipple(
3454 #if NeedFunctionPrototypes
3455 Display* /* display */,
3456 Drawable /* which_screen */,
3457 unsigned int /* width */,
3458 unsigned int /* height */,
3459 unsigned int* /* width_return */,
3460 unsigned int* /* height_return */
3464 extern Status XQueryBestTile(
3465 #if NeedFunctionPrototypes
3466 Display* /* display */,
3467 Drawable /* which_screen */,
3468 unsigned int /* width */,
3469 unsigned int /* height */,
3470 unsigned int* /* width_return */,
3471 unsigned int* /* height_return */
3475 extern int XQueryColor(
3476 #if NeedFunctionPrototypes
3477 Display* /* display */,
3478 Colormap /* colormap */,
3479 XColor* /* def_in_out */
3483 extern int XQueryColors(
3484 #if NeedFunctionPrototypes
3485 Display* /* display */,
3486 Colormap /* colormap */,
3487 XColor* /* defs_in_out */,
3492 extern Bool XQueryExtension(
3493 #if NeedFunctionPrototypes
3494 Display* /* display */,
3495 _Xconst char* /* name */,
3496 int* /* major_opcode_return */,
3497 int* /* first_event_return */,
3498 int* /* first_error_return */
3502 extern int XQueryKeymap(
3503 #if NeedFunctionPrototypes
3504 Display* /* display */,
3505 char [32] /* keys_return */
3509 extern Bool XQueryPointer(
3510 #if NeedFunctionPrototypes
3511 Display* /* display */,
3513 Window* /* root_return */,
3514 Window* /* child_return */,
3515 int* /* root_x_return */,
3516 int* /* root_y_return */,
3517 int* /* win_x_return */,
3518 int* /* win_y_return */,
3519 unsigned int* /* mask_return */
3523 extern int XQueryTextExtents(
3524 #if NeedFunctionPrototypes
3525 Display* /* display */,
3527 _Xconst char* /* string */,
3529 int* /* direction_return */,
3530 int* /* font_ascent_return */,
3531 int* /* font_descent_return */,
3532 XCharStruct* /* overall_return */
3536 extern int XQueryTextExtents16(
3537 #if NeedFunctionPrototypes
3538 Display* /* display */,
3540 _Xconst XChar2b* /* string */,
3542 int* /* direction_return */,
3543 int* /* font_ascent_return */,
3544 int* /* font_descent_return */,
3545 XCharStruct* /* overall_return */
3549 extern Status XQueryTree(
3550 #if NeedFunctionPrototypes
3551 Display* /* display */,
3553 Window* /* root_return */,
3554 Window* /* parent_return */,
3555 Window** /* children_return */,
3556 unsigned int* /* nchildren_return */
3560 extern int XRaiseWindow(
3561 #if NeedFunctionPrototypes
3562 Display* /* display */,
3567 extern int XReadBitmapFile(
3568 #if NeedFunctionPrototypes
3569 Display* /* display */,
3571 _Xconst char* /* filename */,
3572 unsigned int* /* width_return */,
3573 unsigned int* /* height_return */,
3574 Pixmap* /* bitmap_return */,
3575 int* /* x_hot_return */,
3576 int* /* y_hot_return */
3580 extern int XReadBitmapFileData(
3581 #if NeedFunctionPrototypes
3582 _Xconst char* /* filename */,
3583 unsigned int* /* width_return */,
3584 unsigned int* /* height_return */,
3585 unsigned char** /* data_return */,
3586 int* /* x_hot_return */,
3587 int* /* y_hot_return */
3591 extern int XRebindKeysym(
3592 #if NeedFunctionPrototypes
3593 Display* /* display */,
3594 KeySym /* keysym */,
3596 int /* mod_count */,
3597 _Xconst unsigned char* /* string */,
3598 int /* bytes_string */
3602 extern int XRecolorCursor(
3603 #if NeedFunctionPrototypes
3604 Display* /* display */,
3605 Cursor /* cursor */,
3606 XColor* /* foreground_color */,
3607 XColor* /* background_color */
3611 extern int XRefreshKeyboardMapping(
3612 #if NeedFunctionPrototypes
3613 XMappingEvent* /* event_map */
3617 extern int XRemoveFromSaveSet(
3618 #if NeedFunctionPrototypes
3619 Display* /* display */,
3624 extern int XRemoveHost(
3625 #if NeedFunctionPrototypes
3626 Display* /* display */,
3627 XHostAddress* /* host */
3631 extern int XRemoveHosts(
3632 #if NeedFunctionPrototypes
3633 Display* /* display */,
3634 XHostAddress* /* hosts */,
3639 extern int XReparentWindow(
3640 #if NeedFunctionPrototypes
3641 Display* /* display */,
3643 Window /* parent */,
3649 extern int XResetScreenSaver(
3650 #if NeedFunctionPrototypes
3651 Display* /* display */
3655 extern int XResizeWindow(
3656 #if NeedFunctionPrototypes
3657 Display* /* display */,
3659 unsigned int /* width */,
3660 unsigned int /* height */
3664 extern int XRestackWindows(
3665 #if NeedFunctionPrototypes
3666 Display* /* display */,
3667 Window* /* windows */,
3672 extern int XRotateBuffers(
3673 #if NeedFunctionPrototypes
3674 Display* /* display */,
3679 extern int XRotateWindowProperties(
3680 #if NeedFunctionPrototypes
3681 Display* /* display */,
3683 Atom* /* properties */,
3685 int /* npositions */
3689 extern int XScreenCount(
3690 #if NeedFunctionPrototypes
3691 Display* /* display */
3695 extern int XSelectInput(
3696 #if NeedFunctionPrototypes
3697 Display* /* display */,
3699 long /* event_mask */
3703 extern Status XSendEvent(
3704 #if NeedFunctionPrototypes
3705 Display* /* display */,
3707 Bool /* propagate */,
3708 long /* event_mask */,
3709 XEvent* /* event_send */
3713 extern int XSetAccessControl(
3714 #if NeedFunctionPrototypes
3715 Display* /* display */,
3720 extern int XSetArcMode(
3721 #if NeedFunctionPrototypes
3722 Display* /* display */,
3728 extern int XSetBackground(
3729 #if NeedFunctionPrototypes
3730 Display* /* display */,
3732 unsigned long /* background */
3736 extern int XSetClipMask(
3737 #if NeedFunctionPrototypes
3738 Display* /* display */,
3744 extern int XSetClipOrigin(
3745 #if NeedFunctionPrototypes
3746 Display* /* display */,
3748 int /* clip_x_origin */,
3749 int /* clip_y_origin */
3753 extern int XSetClipRectangles(
3754 #if NeedFunctionPrototypes
3755 Display* /* display */,
3757 int /* clip_x_origin */,
3758 int /* clip_y_origin */,
3759 XRectangle* /* rectangles */,
3765 extern int XSetCloseDownMode(
3766 #if NeedFunctionPrototypes
3767 Display* /* display */,
3768 int /* close_mode */
3772 extern int XSetCommand(
3773 #if NeedFunctionPrototypes
3774 Display* /* display */,
3781 extern int XSetDashes(
3782 #if NeedFunctionPrototypes
3783 Display* /* display */,
3785 int /* dash_offset */,
3786 _Xconst char* /* dash_list */,
3791 extern int XSetFillRule(
3792 #if NeedFunctionPrototypes
3793 Display* /* display */,
3799 extern int XSetFillStyle(
3800 #if NeedFunctionPrototypes
3801 Display* /* display */,
3803 int /* fill_style */
3807 extern int XSetFont(
3808 #if NeedFunctionPrototypes
3809 Display* /* display */,
3815 extern int XSetFontPath(
3816 #if NeedFunctionPrototypes
3817 Display* /* display */,
3818 char** /* directories */,
3823 extern int XSetForeground(
3824 #if NeedFunctionPrototypes
3825 Display* /* display */,
3827 unsigned long /* foreground */
3831 extern int XSetFunction(
3832 #if NeedFunctionPrototypes
3833 Display* /* display */,
3839 extern int XSetGraphicsExposures(
3840 #if NeedFunctionPrototypes
3841 Display* /* display */,
3843 Bool /* graphics_exposures */
3847 extern int XSetIconName(
3848 #if NeedFunctionPrototypes
3849 Display* /* display */,
3851 _Xconst char* /* icon_name */
3855 extern int XSetInputFocus(
3856 #if NeedFunctionPrototypes
3857 Display* /* display */,
3859 int /* revert_to */,
3864 extern int XSetLineAttributes(
3865 #if NeedFunctionPrototypes
3866 Display* /* display */,
3868 unsigned int /* line_width */,
3869 int /* line_style */,
3870 int /* cap_style */,
3871 int /* join_style */
3875 extern int XSetModifierMapping(
3876 #if NeedFunctionPrototypes
3877 Display* /* display */,
3878 XModifierKeymap* /* modmap */
3882 extern int XSetPlaneMask(
3883 #if NeedFunctionPrototypes
3884 Display* /* display */,
3886 unsigned long /* plane_mask */
3890 extern int XSetPointerMapping(
3891 #if NeedFunctionPrototypes
3892 Display* /* display */,
3893 _Xconst unsigned char* /* map */,
3898 extern int XSetScreenSaver(
3899 #if NeedFunctionPrototypes
3900 Display* /* display */,
3903 int /* prefer_blanking */,
3904 int /* allow_exposures */
3908 extern int XSetSelectionOwner(
3909 #if NeedFunctionPrototypes
3910 Display* /* display */,
3911 Atom /* selection */,
3917 extern int XSetState(
3918 #if NeedFunctionPrototypes
3919 Display* /* display */,
3921 unsigned long /* foreground */,
3922 unsigned long /* background */,
3924 unsigned long /* plane_mask */
3928 extern int XSetStipple(
3929 #if NeedFunctionPrototypes
3930 Display* /* display */,
3932 Pixmap /* stipple */
3936 extern int XSetSubwindowMode(
3937 #if NeedFunctionPrototypes
3938 Display* /* display */,
3940 int /* subwindow_mode */
3944 extern int XSetTSOrigin(
3945 #if NeedFunctionPrototypes
3946 Display* /* display */,
3948 int /* ts_x_origin */,
3949 int /* ts_y_origin */
3953 extern int XSetTile(
3954 #if NeedFunctionPrototypes
3955 Display* /* display */,
3961 extern int XSetWindowBackground(
3962 #if NeedFunctionPrototypes
3963 Display* /* display */,
3965 unsigned long /* background_pixel */
3969 extern int XSetWindowBackgroundPixmap(
3970 #if NeedFunctionPrototypes
3971 Display* /* display */,
3973 Pixmap /* background_pixmap */
3977 extern int XSetWindowBorder(
3978 #if NeedFunctionPrototypes
3979 Display* /* display */,
3981 unsigned long /* border_pixel */
3985 extern int XSetWindowBorderPixmap(
3986 #if NeedFunctionPrototypes
3987 Display* /* display */,
3989 Pixmap /* border_pixmap */
3993 extern int XSetWindowBorderWidth(
3994 #if NeedFunctionPrototypes
3995 Display* /* display */,
3997 unsigned int /* width */
4001 extern int XSetWindowColormap(
4002 #if NeedFunctionPrototypes
4003 Display* /* display */,
4005 Colormap /* colormap */
4009 extern int XStoreBuffer(
4010 #if NeedFunctionPrototypes
4011 Display* /* display */,
4012 _Xconst char* /* bytes */,
4018 extern int XStoreBytes(
4019 #if NeedFunctionPrototypes
4020 Display* /* display */,
4021 _Xconst char* /* bytes */,
4026 extern int XStoreColor(
4027 #if NeedFunctionPrototypes
4028 Display* /* display */,
4029 Colormap /* colormap */,
4034 extern int XStoreColors(
4035 #if NeedFunctionPrototypes
4036 Display* /* display */,
4037 Colormap /* colormap */,
4038 XColor* /* color */,
4043 extern int XStoreName(
4044 #if NeedFunctionPrototypes
4045 Display* /* display */,
4047 _Xconst char* /* window_name */
4051 extern int XStoreNamedColor(
4052 #if NeedFunctionPrototypes
4053 Display* /* display */,
4054 Colormap /* colormap */,
4055 _Xconst char* /* color */,
4056 unsigned long /* pixel */,
4062 #if NeedFunctionPrototypes
4063 Display* /* display */,
4068 extern int XTextExtents(
4069 #if NeedFunctionPrototypes
4070 XFontStruct* /* font_struct */,
4071 _Xconst char* /* string */,
4073 int* /* direction_return */,
4074 int* /* font_ascent_return */,
4075 int* /* font_descent_return */,
4076 XCharStruct* /* overall_return */
4080 extern int XTextExtents16(
4081 #if NeedFunctionPrototypes
4082 XFontStruct* /* font_struct */,
4083 _Xconst XChar2b* /* string */,
4085 int* /* direction_return */,
4086 int* /* font_ascent_return */,
4087 int* /* font_descent_return */,
4088 XCharStruct* /* overall_return */
4092 extern int XTextWidth(
4093 #if NeedFunctionPrototypes
4094 XFontStruct* /* font_struct */,
4095 _Xconst char* /* string */,
4100 extern int XTextWidth16(
4101 #if NeedFunctionPrototypes
4102 XFontStruct* /* font_struct */,
4103 _Xconst XChar2b* /* string */,
4108 extern Bool XTranslateCoordinates(
4109 #if NeedFunctionPrototypes
4110 Display* /* display */,
4112 Window /* dest_w */,
4115 int* /* dest_x_return */,
4116 int* /* dest_y_return */,
4117 Window* /* child_return */
4121 extern int XUndefineCursor(
4122 #if NeedFunctionPrototypes
4123 Display* /* display */,
4128 extern int XUngrabButton(
4129 #if NeedFunctionPrototypes
4130 Display* /* display */,
4131 unsigned int /* button */,
4132 unsigned int /* modifiers */,
4133 Window /* grab_window */
4137 extern int XUngrabKey(
4138 #if NeedFunctionPrototypes
4139 Display* /* display */,
4141 unsigned int /* modifiers */,
4142 Window /* grab_window */
4146 extern int XUngrabKeyboard(
4147 #if NeedFunctionPrototypes
4148 Display* /* display */,
4153 extern int XUngrabPointer(
4154 #if NeedFunctionPrototypes
4155 Display* /* display */,
4160 extern int XUngrabServer(
4161 #if NeedFunctionPrototypes
4162 Display* /* display */
4166 extern int XUninstallColormap(
4167 #if NeedFunctionPrototypes
4168 Display* /* display */,
4169 Colormap /* colormap */
4173 extern int XUnloadFont(
4174 #if NeedFunctionPrototypes
4175 Display* /* display */,
4180 extern int XUnmapSubwindows(
4181 #if NeedFunctionPrototypes
4182 Display* /* display */,
4187 extern int XUnmapWindow(
4188 #if NeedFunctionPrototypes
4189 Display* /* display */,
4194 extern int XVendorRelease(
4195 #if NeedFunctionPrototypes
4196 Display* /* display */
4200 extern int XWarpPointer(
4201 #if NeedFunctionPrototypes
4202 Display* /* display */,
4204 Window /* dest_w */,
4207 unsigned int /* src_width */,
4208 unsigned int /* src_height */,
4214 extern int XWidthMMOfScreen(
4215 #if NeedFunctionPrototypes
4216 Screen* /* screen */
4220 extern int XWidthOfScreen(
4221 #if NeedFunctionPrototypes
4222 Screen* /* screen */
4226 extern int XWindowEvent(
4227 #if NeedFunctionPrototypes
4228 Display* /* display */,
4230 long /* event_mask */,
4231 XEvent* /* event_return */
4235 extern int XWriteBitmapFile(
4236 #if NeedFunctionPrototypes
4237 Display* /* display */,
4238 _Xconst char* /* filename */,
4239 Pixmap /* bitmap */,
4240 unsigned int /* width */,
4241 unsigned int /* height */,
4247 extern Bool XSupportsLocale(
4248 #if NeedFunctionPrototypes
4253 extern char *XSetLocaleModifiers(
4254 #if NeedFunctionPrototypes
4255 _Xconst char* /* modifier_list */
4260 #if NeedFunctionPrototypes
4261 Display* /* display */,
4262 struct _XrmHashBucketRec* /* rdb */,
4263 _Xconst char* /* res_name */,
4264 _Xconst char* /* res_class */
4268 extern Status XCloseOM(
4269 #if NeedFunctionPrototypes
4274 extern char *XSetOMValues(
4275 #if NeedVarargsPrototypes
4281 extern char *XGetOMValues(
4282 #if NeedVarargsPrototypes
4288 extern Display *XDisplayOfOM(
4289 #if NeedFunctionPrototypes
4294 extern char *XLocaleOfOM(
4295 #if NeedFunctionPrototypes
4300 extern XOC XCreateOC(
4301 #if NeedVarargsPrototypes
4307 extern void XDestroyOC(
4308 #if NeedFunctionPrototypes
4314 #if NeedFunctionPrototypes
4319 extern char *XSetOCValues(
4320 #if NeedVarargsPrototypes
4326 extern char *XGetOCValues(
4327 #if NeedVarargsPrototypes
4333 extern XFontSet XCreateFontSet(
4334 #if NeedFunctionPrototypes
4335 Display* /* display */,
4336 _Xconst char* /* base_font_name_list */,
4337 char*** /* missing_charset_list */,
4338 int* /* missing_charset_count */,
4339 char** /* def_string */
4343 extern void XFreeFontSet(
4344 #if NeedFunctionPrototypes
4345 Display* /* display */,
4346 XFontSet /* font_set */
4350 extern int XFontsOfFontSet(
4351 #if NeedFunctionPrototypes
4352 XFontSet /* font_set */,
4353 XFontStruct*** /* font_struct_list */,
4354 char*** /* font_name_list */
4358 extern char *XBaseFontNameListOfFontSet(
4359 #if NeedFunctionPrototypes
4360 XFontSet /* font_set */
4364 extern char *XLocaleOfFontSet(
4365 #if NeedFunctionPrototypes
4366 XFontSet /* font_set */
4370 extern Bool XContextDependentDrawing(
4371 #if NeedFunctionPrototypes
4372 XFontSet /* font_set */
4376 extern Bool XDirectionalDependentDrawing(
4377 #if NeedFunctionPrototypes
4378 XFontSet /* font_set */
4382 extern Bool XContextualDrawing(
4383 #if NeedFunctionPrototypes
4384 XFontSet /* font_set */
4388 extern XFontSetExtents *XExtentsOfFontSet(
4389 #if NeedFunctionPrototypes
4390 XFontSet /* font_set */
4394 extern int XmbTextEscapement(
4395 #if NeedFunctionPrototypes
4396 XFontSet /* font_set */,
4397 _Xconst char* /* text */,
4398 int /* bytes_text */
4402 extern int XwcTextEscapement(
4403 #if NeedFunctionPrototypes
4404 XFontSet /* font_set */,
4405 _Xconst wchar_t* /* text */,
4406 int /* num_wchars */
4410 extern int XmbTextExtents(
4411 #if NeedFunctionPrototypes
4412 XFontSet /* font_set */,
4413 _Xconst char* /* text */,
4414 int /* bytes_text */,
4415 XRectangle* /* overall_ink_return */,
4416 XRectangle* /* overall_logical_return */
4420 extern int XwcTextExtents(
4421 #if NeedFunctionPrototypes
4422 XFontSet /* font_set */,
4423 _Xconst wchar_t* /* text */,
4424 int /* num_wchars */,
4425 XRectangle* /* overall_ink_return */,
4426 XRectangle* /* overall_logical_return */
4430 extern Status XmbTextPerCharExtents(
4431 #if NeedFunctionPrototypes
4432 XFontSet /* font_set */,
4433 _Xconst char* /* text */,
4434 int /* bytes_text */,
4435 XRectangle* /* ink_extents_buffer */,
4436 XRectangle* /* logical_extents_buffer */,
4437 int /* buffer_size */,
4438 int* /* num_chars */,
4439 XRectangle* /* overall_ink_return */,
4440 XRectangle* /* overall_logical_return */
4444 extern Status XwcTextPerCharExtents(
4445 #if NeedFunctionPrototypes
4446 XFontSet /* font_set */,
4447 _Xconst wchar_t* /* text */,
4448 int /* num_wchars */,
4449 XRectangle* /* ink_extents_buffer */,
4450 XRectangle* /* logical_extents_buffer */,
4451 int /* buffer_size */,
4452 int* /* num_chars */,
4453 XRectangle* /* overall_ink_return */,
4454 XRectangle* /* overall_logical_return */
4458 extern void XmbDrawText(
4459 #if NeedFunctionPrototypes
4460 Display* /* display */,
4465 XmbTextItem* /* text_items */,
4470 extern void XwcDrawText(
4471 #if NeedFunctionPrototypes
4472 Display* /* display */,
4477 XwcTextItem* /* text_items */,
4482 extern void XmbDrawString(
4483 #if NeedFunctionPrototypes
4484 Display* /* display */,
4486 XFontSet /* font_set */,
4490 _Xconst char* /* text */,
4491 int /* bytes_text */
4495 extern void XwcDrawString(
4496 #if NeedFunctionPrototypes
4497 Display* /* display */,
4499 XFontSet /* font_set */,
4503 _Xconst wchar_t* /* text */,
4504 int /* num_wchars */
4508 extern void XmbDrawImageString(
4509 #if NeedFunctionPrototypes
4510 Display* /* display */,
4512 XFontSet /* font_set */,
4516 _Xconst char* /* text */,
4517 int /* bytes_text */
4521 extern void XwcDrawImageString(
4522 #if NeedFunctionPrototypes
4523 Display* /* display */,
4525 XFontSet /* font_set */,
4529 _Xconst wchar_t* /* text */,
4530 int /* num_wchars */
4535 #if NeedFunctionPrototypes
4537 struct _XrmHashBucketRec* /* rdb */,
4538 char* /* res_name */,
4539 char* /* res_class */
4543 extern Status XCloseIM(
4544 #if NeedFunctionPrototypes
4549 extern char *XGetIMValues(
4550 #if NeedVarargsPrototypes
4555 extern Display *XDisplayOfIM(
4556 #if NeedFunctionPrototypes
4561 extern char *XLocaleOfIM(
4562 #if NeedFunctionPrototypes
4567 extern XIC XCreateIC(
4568 #if NeedVarargsPrototypes
4573 extern void XDestroyIC(
4574 #if NeedFunctionPrototypes
4579 extern void XSetICFocus(
4580 #if NeedFunctionPrototypes
4585 extern void XUnsetICFocus(
4586 #if NeedFunctionPrototypes
4591 extern wchar_t *XwcResetIC(
4592 #if NeedFunctionPrototypes
4597 extern char *XmbResetIC(
4598 #if NeedFunctionPrototypes
4603 extern char *XSetICValues(
4604 #if NeedVarargsPrototypes
4609 extern char *XGetICValues(
4610 #if NeedVarargsPrototypes
4616 #if NeedFunctionPrototypes
4621 extern Bool XFilterEvent(
4622 #if NeedFunctionPrototypes
4623 XEvent* /* event */,
4628 extern int XmbLookupString(
4629 #if NeedFunctionPrototypes
4631 XKeyPressedEvent* /* event */,
4632 char* /* buffer_return */,
4633 int /* bytes_buffer */,
4634 KeySym* /* keysym_return */,
4635 Status* /* status_return */
4639 extern int XwcLookupString(
4640 #if NeedFunctionPrototypes
4642 XKeyPressedEvent* /* event */,
4643 wchar_t* /* buffer_return */,
4644 int /* wchars_buffer */,
4645 KeySym* /* keysym_return */,
4646 Status* /* status_return */
4650 extern XVaNestedList XVaCreateNestedList(
4651 #if NeedVarargsPrototypes
4656 /* internal connections for IMs */
4658 extern Bool XRegisterIMInstantiateCallback(
4659 #if NeedFunctionPrototypes
4661 struct _XrmHashBucketRec* /* rdb */,
4662 char* /* res_name */,
4663 char* /* res_class */,
4664 XIDProc /* callback */,
4665 XPointer /* client_data */
4669 extern Bool XUnregisterIMInstantiateCallback(
4670 #if NeedFunctionPrototypes
4672 struct _XrmHashBucketRec* /* rdb */,
4673 char* /* res_name */,
4674 char* /* res_class */,
4675 XIDProc /* callback */,
4676 XPointer /* client_data */
4680 typedef void (*XConnectionWatchProc)(
4681 #if NeedFunctionPrototypes
4683 XPointer /* client_data */,
4685 Bool /* opening */, /* open or close flag */
4686 XPointer* /* watch_data */ /* open sets, close uses */
4691 extern Status XInternalConnectionNumbers(
4692 #if NeedFunctionPrototypes
4694 int** /* fd_return */,
4695 int* /* count_return */
4699 extern void XProcessInternalConnection(
4700 #if NeedFunctionPrototypes
4706 extern Status XAddConnectionWatch(
4707 #if NeedFunctionPrototypes
4709 XConnectionWatchProc /* callback */,
4710 XPointer /* client_data */
4714 extern void XRemoveConnectionWatch(
4715 #if NeedFunctionPrototypes
4717 XConnectionWatchProc /* callback */,
4718 XPointer /* client_data */
4724 #endif /* _XLIB_H_ */