1
#undef LIBVNCSERVER_HAVE_XSHM
2
#define LIBVNCSERVER_HAVE_XSHM 0
3
#undef LIBVNCSERVER_HAVE_XTEST
4
#define LIBVNCSERVER_HAVE_XTEST 0
5
#undef LIBVNCSERVER_HAVE_XTESTGRABCONTROL
6
#define LIBVNCSERVER_HAVE_XTESTGRABCONTROL 0
7
#undef LIBVNCSERVER_HAVE_XKEYBOARD
8
#define LIBVNCSERVER_HAVE_XKEYBOARD 0
9
#undef LIBVNCSERVER_HAVE_LIBXINERAMA
10
#define LIBVNCSERVER_HAVE_LIBXINERAMA 0
11
#undef LIBVNCSERVER_HAVE_LIBXRANDR
12
#define LIBVNCSERVER_HAVE_LIBXRANDR 0
13
#undef LIBVNCSERVER_HAVE_LIBXFIXES
14
#define LIBVNCSERVER_HAVE_LIBXFIXES 0
15
#undef LIBVNCSERVER_HAVE_LIBXDAMAGE
16
#define LIBVNCSERVER_HAVE_LIBXDAMAGE 0
17
#undef LIBVNCSERVER_HAVE_RECORD
18
#define LIBVNCSERVER_HAVE_RECORD 0
19
#undef LIBVNCSERVER_HAVE_LIBXTRAP
20
#define LIBVNCSERVER_HAVE_LIBXTRAP 0
21
#undef LIBVNCSERVER_HAVE_SOLARIS_XREADSCREEN
22
#define LIBVNCSERVER_HAVE_SOLARIS_XREADSCREEN 0
23
#undef LIBVNCSERVER_HAVE_IRIX_XREADDISPLAY
24
#define LIBVNCSERVER_HAVE_IRIX_XREADDISPLAY 0
25
#undef LIBVNCSERVER_HAVE_FBPM
26
#define LIBVNCSERVER_HAVE_FBPM 0
30
/* XXX go with the subset in rfb/keysym.h for now */
54
* $Xorg: X.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $
57
/* Definitions for the X window system likely to be used by applications */
62
/***********************************************************
64
Copyright 1987, 1998 The Open Group
66
Permission to use, copy, modify, distribute, and sell this software and its
67
documentation for any purpose is hereby granted without fee, provided that
68
the above copyright notice appear in all copies and that both that
69
copyright notice and this permission notice appear in supporting
72
The above copyright notice and this permission notice shall be included in
73
all copies or substantial portions of the Software.
75
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
77
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
78
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
79
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
80
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
82
Except as contained in this notice, the name of The Open Group shall not be
83
used in advertising or otherwise to promote the sale, use or other dealings
84
in this Software without prior written authorization from The Open Group.
87
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
91
Permission to use, copy, modify, and distribute this software and its
92
documentation for any purpose and without fee is hereby granted,
93
provided that the above copyright notice appear in all copies and that
94
both that copyright notice and this permission notice appear in
95
supporting documentation, and that the name of Digital not be
96
used in advertising or publicity pertaining to distribution of the
97
software without specific, written prior permission.
99
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
100
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
101
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
102
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
103
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
104
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
107
******************************************************************/
108
/* $XFree86: xc/include/X.h,v 1.5 2001/12/14 19:53:25 dawes Exp $ */
110
#define X_PROTOCOL 11 /* current protocol version */
111
#define X_PROTOCOL_REVISION 0 /* current minor version */
116
* _XSERVER64 must ONLY be defined when compiling X server sources on
117
* systems where unsigned long is not 32 bits, must NOT be used in
118
* client or library code.
121
# ifndef _XTYPEDEF_XID
122
# define _XTYPEDEF_XID
123
typedef unsigned long XID;
125
# ifndef _XTYPEDEF_MASK
126
# define _XTYPEDEF_MASK
127
typedef unsigned long Mask;
129
# ifndef _XTYPEDEF_ATOM
130
# define _XTYPEDEF_ATOM
131
typedef unsigned long Atom; /* Also in Xdefs.h */
133
typedef unsigned long VisualID;
134
typedef unsigned long Time;
136
# include <X11/Xmd.h>
137
# ifndef _XTYPEDEF_XID
138
# define _XTYPEDEF_XID
141
# ifndef _XTYPEDEF_MASK
142
# define _XTYPEDEF_MASK
145
# ifndef _XTYPEDEF_ATOM
146
# define _XTYPEDEF_ATOM
149
typedef CARD32 VisualID;
154
typedef XID Drawable;
155
#ifndef _XTYPEDEF_FONT
156
# define _XTYPEDEF_FONT
161
typedef XID Colormap;
162
typedef XID GContext;
165
typedef unsigned char KeyCode;
167
/*****************************************************************
168
* RESERVED RESOURCE AND CONSTANT DEFINITIONS
169
*****************************************************************/
172
#define None 0L /* universal null resource or null atom */
175
#define ParentRelative 1L /* background pixmap in CreateWindow
176
and ChangeWindowAttributes */
178
#define CopyFromParent 0L /* border pixmap in CreateWindow
179
and ChangeWindowAttributes
180
special VisualID and special window
181
class passed to CreateWindow */
183
#define PointerWindow 0L /* destination window in SendEvent */
184
#define InputFocus 1L /* destination window in SendEvent */
186
#define PointerRoot 1L /* focus window in SetInputFocus */
188
#define AnyPropertyType 0L /* special Atom, passed to GetProperty */
190
#define AnyKey 0L /* special Key Code, passed to GrabKey */
192
#define AnyButton 0L /* special Button Code, passed to GrabButton */
194
#define AllTemporary 0L /* special Resource ID passed to KillClient */
196
#define CurrentTime 0L /* special Time */
198
#define NoSymbol 0L /* special KeySym */
200
/*****************************************************************
202
*****************************************************************/
204
/* Input Event Masks. Used as event-mask window attribute and as arguments
205
to Grab requests. Not to be confused with event names. */
207
#define NoEventMask 0L
208
#define KeyPressMask (1L<<0)
209
#define KeyReleaseMask (1L<<1)
210
#define ButtonPressMask (1L<<2)
211
#define ButtonReleaseMask (1L<<3)
212
#define EnterWindowMask (1L<<4)
213
#define LeaveWindowMask (1L<<5)
214
#define PointerMotionMask (1L<<6)
215
#define PointerMotionHintMask (1L<<7)
216
#define Button1MotionMask (1L<<8)
217
#define Button2MotionMask (1L<<9)
218
#define Button3MotionMask (1L<<10)
219
#define Button4MotionMask (1L<<11)
220
#define Button5MotionMask (1L<<12)
221
#define ButtonMotionMask (1L<<13)
222
#define KeymapStateMask (1L<<14)
223
#define ExposureMask (1L<<15)
224
#define VisibilityChangeMask (1L<<16)
225
#define StructureNotifyMask (1L<<17)
226
#define ResizeRedirectMask (1L<<18)
227
#define SubstructureNotifyMask (1L<<19)
228
#define SubstructureRedirectMask (1L<<20)
229
#define FocusChangeMask (1L<<21)
230
#define PropertyChangeMask (1L<<22)
231
#define ColormapChangeMask (1L<<23)
232
#define OwnerGrabButtonMask (1L<<24)
234
/* Event names. Used in "type" field in XEvent structures. Not to be
235
confused with event masks above. They start from 2 because 0 and 1
236
are reserved in the protocol for errors and replies. */
240
#define ButtonPress 4
241
#define ButtonRelease 5
242
#define MotionNotify 6
243
#define EnterNotify 7
244
#define LeaveNotify 8
247
#define KeymapNotify 11
249
#define GraphicsExpose 13
251
#define VisibilityNotify 15
252
#define CreateNotify 16
253
#define DestroyNotify 17
254
#define UnmapNotify 18
256
#define MapRequest 20
257
#define ReparentNotify 21
258
#define ConfigureNotify 22
259
#define ConfigureRequest 23
260
#define GravityNotify 24
261
#define ResizeRequest 25
262
#define CirculateNotify 26
263
#define CirculateRequest 27
264
#define PropertyNotify 28
265
#define SelectionClear 29
266
#define SelectionRequest 30
267
#define SelectionNotify 31
268
#define ColormapNotify 32
269
#define ClientMessage 33
270
#define MappingNotify 34
271
#define LASTEvent 35 /* must be bigger than any event # */
274
/* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
275
state in various key-, mouse-, and button-related events. */
277
#define ShiftMask (1<<0)
278
#define LockMask (1<<1)
279
#define ControlMask (1<<2)
280
#define Mod1Mask (1<<3)
281
#define Mod2Mask (1<<4)
282
#define Mod3Mask (1<<5)
283
#define Mod4Mask (1<<6)
284
#define Mod5Mask (1<<7)
286
/* modifier names. Used to build a SetModifierMapping request or
287
to read a GetModifierMapping request. These correspond to the
288
masks defined above. */
289
#define ShiftMapIndex 0
290
#define LockMapIndex 1
291
#define ControlMapIndex 2
292
#define Mod1MapIndex 3
293
#define Mod2MapIndex 4
294
#define Mod3MapIndex 5
295
#define Mod4MapIndex 6
296
#define Mod5MapIndex 7
299
/* button masks. Used in same manner as Key masks above. Not to be confused
300
with button names below. */
302
#define Button1Mask (1<<8)
303
#define Button2Mask (1<<9)
304
#define Button3Mask (1<<10)
305
#define Button4Mask (1<<11)
306
#define Button5Mask (1<<12)
308
#define AnyModifier (1<<15) /* used in GrabButton, GrabKey */
311
/* button names. Used as arguments to GrabButton and as detail in ButtonPress
312
and ButtonRelease events. Not to be confused with button masks above.
313
Note that 0 is already defined above as "AnyButton". */
323
#define NotifyNormal 0
325
#define NotifyUngrab 2
326
#define NotifyWhileGrabbed 3
328
#define NotifyHint 1 /* for MotionNotify events */
332
#define NotifyAncestor 0
333
#define NotifyVirtual 1
334
#define NotifyInferior 2
335
#define NotifyNonlinear 3
336
#define NotifyNonlinearVirtual 4
337
#define NotifyPointer 5
338
#define NotifyPointerRoot 6
339
#define NotifyDetailNone 7
341
/* Visibility notify */
343
#define VisibilityUnobscured 0
344
#define VisibilityPartiallyObscured 1
345
#define VisibilityFullyObscured 2
347
/* Circulation request */
350
#define PlaceOnBottom 1
352
/* protocol families */
354
#define FamilyInternet 0
355
#define FamilyDECnet 1
356
#define FamilyChaos 2
358
/* Property notification */
360
#define PropertyNewValue 0
361
#define PropertyDelete 1
363
/* Color Map notification */
365
#define ColormapUninstalled 0
366
#define ColormapInstalled 1
368
/* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
370
#define GrabModeSync 0
371
#define GrabModeAsync 1
373
/* GrabPointer, GrabKeyboard reply status */
375
#define GrabSuccess 0
376
#define AlreadyGrabbed 1
377
#define GrabInvalidTime 2
378
#define GrabNotViewable 3
381
/* AllowEvents modes */
383
#define AsyncPointer 0
384
#define SyncPointer 1
385
#define ReplayPointer 2
386
#define AsyncKeyboard 3
387
#define SyncKeyboard 4
388
#define ReplayKeyboard 5
392
/* Used in SetInputFocus, GetInputFocus */
394
#define RevertToNone (int)None
395
#define RevertToPointerRoot (int)PointerRoot
396
#define RevertToParent 2
398
/*****************************************************************
400
*****************************************************************/
402
#define Success 0 /* everything's okay */
403
#define BadRequest 1 /* bad request code */
404
#define BadValue 2 /* int parameter out of range */
405
#define BadWindow 3 /* parameter not a Window */
406
#define BadPixmap 4 /* parameter not a Pixmap */
407
#define BadAtom 5 /* parameter not an Atom */
408
#define BadCursor 6 /* parameter not a Cursor */
409
#define BadFont 7 /* parameter not a Font */
410
#define BadMatch 8 /* parameter mismatch */
411
#define BadDrawable 9 /* parameter not a Pixmap or Window */
412
#define BadAccess 10 /* depending on context:
413
- key/button already grabbed
414
- attempt to free an illegal
416
- attempt to store into a read-only
418
- attempt to modify the access control
419
list from other than the local host.
421
#define BadAlloc 11 /* insufficient resources */
422
#define BadColor 12 /* no such colormap */
423
#define BadGC 13 /* parameter not a GC */
424
#define BadIDChoice 14 /* choice not in range or already used */
425
#define BadName 15 /* font or color name doesn't exist */
426
#define BadLength 16 /* Request length incorrect */
427
#define BadImplementation 17 /* server is defective */
429
#define FirstExtensionError 128
430
#define LastExtensionError 255
432
/*****************************************************************
434
*****************************************************************/
436
/* Window classes used by CreateWindow */
437
/* Note that CopyFromParent is already defined as 0 above */
439
#define InputOutput 1
442
/* Window attributes for CreateWindow and ChangeWindowAttributes */
444
#define CWBackPixmap (1L<<0)
445
#define CWBackPixel (1L<<1)
446
#define CWBorderPixmap (1L<<2)
447
#define CWBorderPixel (1L<<3)
448
#define CWBitGravity (1L<<4)
449
#define CWWinGravity (1L<<5)
450
#define CWBackingStore (1L<<6)
451
#define CWBackingPlanes (1L<<7)
452
#define CWBackingPixel (1L<<8)
453
#define CWOverrideRedirect (1L<<9)
454
#define CWSaveUnder (1L<<10)
455
#define CWEventMask (1L<<11)
456
#define CWDontPropagate (1L<<12)
457
#define CWColormap (1L<<13)
458
#define CWCursor (1L<<14)
460
/* ConfigureWindow structure */
464
#define CWWidth (1<<2)
465
#define CWHeight (1<<3)
466
#define CWBorderWidth (1<<4)
467
#define CWSibling (1<<5)
468
#define CWStackMode (1<<6)
473
#define ForgetGravity 0
474
#define NorthWestGravity 1
475
#define NorthGravity 2
476
#define NorthEastGravity 3
477
#define WestGravity 4
478
#define CenterGravity 5
479
#define EastGravity 6
480
#define SouthWestGravity 7
481
#define SouthGravity 8
482
#define SouthEastGravity 9
483
#define StaticGravity 10
485
/* Window gravity + bit gravity above */
487
#define UnmapGravity 0
489
/* Used in CreateWindow for backing-store hint */
495
/* Used in GetWindowAttributes reply */
498
#define IsUnviewable 1
501
/* Used in ChangeSaveSet */
503
#define SetModeInsert 0
504
#define SetModeDelete 1
506
/* Used in ChangeCloseDownMode */
509
#define RetainPermanent 1
510
#define RetainTemporary 2
512
/* Window stacking method (in configureWindow) */
520
/* Circulation direction */
522
#define RaiseLowest 0
523
#define LowerHighest 1
527
#define PropModeReplace 0
528
#define PropModePrepend 1
529
#define PropModeAppend 2
531
/*****************************************************************
532
* GRAPHICS DEFINITIONS
533
*****************************************************************/
535
/* graphics functions, as in GC.alu */
537
#define GXclear 0x0 /* 0 */
538
#define GXand 0x1 /* src AND dst */
539
#define GXandReverse 0x2 /* src AND NOT dst */
540
#define GXcopy 0x3 /* src */
541
#define GXandInverted 0x4 /* NOT src AND dst */
542
#define GXnoop 0x5 /* dst */
543
#define GXxor 0x6 /* src XOR dst */
544
#define GXor 0x7 /* src OR dst */
545
#define GXnor 0x8 /* NOT src AND NOT dst */
546
#define GXequiv 0x9 /* NOT src XOR dst */
547
#define GXinvert 0xa /* NOT dst */
548
#define GXorReverse 0xb /* src OR NOT dst */
549
#define GXcopyInverted 0xc /* NOT src */
550
#define GXorInverted 0xd /* NOT src OR dst */
551
#define GXnand 0xe /* NOT src OR NOT dst */
552
#define GXset 0xf /* 1 */
557
#define LineOnOffDash 1
558
#define LineDoubleDash 2
565
#define CapProjecting 3
577
#define FillStippled 2
578
#define FillOpaqueStippled 3
582
#define EvenOddRule 0
583
#define WindingRule 1
587
#define ClipByChildren 0
588
#define IncludeInferiors 1
590
/* SetClipRectangles ordering */
597
/* CoordinateMode for drawing routines */
599
#define CoordModeOrigin 0 /* relative to the origin */
600
#define CoordModePrevious 1 /* relative to previous point */
604
#define Complex 0 /* paths may intersect */
605
#define Nonconvex 1 /* no paths intersect, but not convex */
606
#define Convex 2 /* wholly convex */
608
/* Arc modes for PolyFillArc */
610
#define ArcChord 0 /* join endpoints of arc */
611
#define ArcPieSlice 1 /* join endpoints to center of arc */
613
/* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
616
#define GCFunction (1L<<0)
617
#define GCPlaneMask (1L<<1)
618
#define GCForeground (1L<<2)
619
#define GCBackground (1L<<3)
620
#define GCLineWidth (1L<<4)
621
#define GCLineStyle (1L<<5)
622
#define GCCapStyle (1L<<6)
623
#define GCJoinStyle (1L<<7)
624
#define GCFillStyle (1L<<8)
625
#define GCFillRule (1L<<9)
626
#define GCTile (1L<<10)
627
#define GCStipple (1L<<11)
628
#define GCTileStipXOrigin (1L<<12)
629
#define GCTileStipYOrigin (1L<<13)
630
#define GCFont (1L<<14)
631
#define GCSubwindowMode (1L<<15)
632
#define GCGraphicsExposures (1L<<16)
633
#define GCClipXOrigin (1L<<17)
634
#define GCClipYOrigin (1L<<18)
635
#define GCClipMask (1L<<19)
636
#define GCDashOffset (1L<<20)
637
#define GCDashList (1L<<21)
638
#define GCArcMode (1L<<22)
641
/*****************************************************************
643
*****************************************************************/
645
/* used in QueryFont -- draw direction */
647
#define FontLeftToRight 0
648
#define FontRightToLeft 1
650
#define FontChange 255
652
/*****************************************************************
654
*****************************************************************/
656
/* ImageFormat -- PutImage, GetImage */
658
#define XYBitmap 0 /* depth 1, XYFormat */
659
#define XYPixmap 1 /* depth == drawable depth */
660
#define ZPixmap 2 /* depth == drawable depth */
662
/*****************************************************************
664
*****************************************************************/
666
/* For CreateColormap */
668
#define AllocNone 0 /* create map with no entries */
669
#define AllocAll 1 /* allocate entire map writeable */
672
/* Flags used in StoreNamedColor, StoreColors */
675
#define DoGreen (1<<1)
676
#define DoBlue (1<<2)
678
/*****************************************************************
680
*****************************************************************/
682
/* QueryBestSize Class */
684
#define CursorShape 0 /* largest size that can be displayed */
685
#define TileShape 1 /* size tiled fastest */
686
#define StippleShape 2 /* size stippled fastest */
688
/*****************************************************************
689
* KEYBOARD/POINTER STUFF
690
*****************************************************************/
692
#define AutoRepeatModeOff 0
693
#define AutoRepeatModeOn 1
694
#define AutoRepeatModeDefault 2
699
/* masks for ChangeKeyboardControl */
701
#define KBKeyClickPercent (1L<<0)
702
#define KBBellPercent (1L<<1)
703
#define KBBellPitch (1L<<2)
704
#define KBBellDuration (1L<<3)
705
#define KBLed (1L<<4)
706
#define KBLedMode (1L<<5)
707
#define KBKey (1L<<6)
708
#define KBAutoRepeatMode (1L<<7)
710
#define MappingSuccess 0
711
#define MappingBusy 1
712
#define MappingFailed 2
714
#define MappingModifier 0
715
#define MappingKeyboard 1
716
#define MappingPointer 2
718
/*****************************************************************
720
*****************************************************************/
722
#define DontPreferBlanking 0
723
#define PreferBlanking 1
724
#define DefaultBlanking 2
726
#define DisableScreenSaver 0
727
#define DisableScreenInterval 0
729
#define DontAllowExposures 0
730
#define AllowExposures 1
731
#define DefaultExposures 2
733
/* for ForceScreenSaver */
735
#define ScreenSaverReset 0
736
#define ScreenSaverActive 1
738
/*****************************************************************
739
* HOSTS AND CONNECTIONS
740
*****************************************************************/
742
/* for ChangeHosts */
747
/* for ChangeAccessControl */
749
#define EnableAccess 1
750
#define DisableAccess 0
752
/* Display classes used in opening the connection
753
* Note that the statically allocated ones are even numbered and the
754
* dynamically changeable ones are odd numbered */
758
#define StaticColor 2
759
#define PseudoColor 3
761
#define DirectColor 5
764
/* Byte order used in imageByteOrder and bitmapBitOrder */
772
/* $Xorg: Xlib.h,v 1.6 2001/02/09 02:03:38 xorgcvs Exp $ */
775
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
777
Permission to use, copy, modify, distribute, and sell this software and its
778
documentation for any purpose is hereby granted without fee, provided that
779
the above copyright notice appear in all copies and that both that
780
copyright notice and this permission notice appear in supporting
783
The above copyright notice and this permission notice shall be included in
784
all copies or substantial portions of the Software.
786
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
787
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
788
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
789
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
790
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
791
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
793
Except as contained in this notice, the name of The Open Group shall not be
794
used in advertising or otherwise to promote the sale, use or other dealings
795
in this Software without prior written authorization from The Open Group.
798
/* $XFree86: xc/lib/X11/Xlib.h,v 3.23 2002/05/31 18:45:42 dawes Exp $ */
802
* Xlib.h - Header definition and support file for the C subroutine
803
* interface library (Xlib) to the X Window System Protocol (V11).
804
* Structures and symbols starting with "_" are private to the library.
809
#define XlibSpecificationRelease 6
813
#include <sys/types.h> /* forgot to protect it... */
815
#endif /* __TYPES__ */
817
#if defined(_POSIX_SOURCE) && defined(MOTOROLA)
819
#include <sys/types.h>
820
#define _POSIX_SOURCE
822
#include <sys/types.h>
829
/* applications should not depend on these two headers being included! */
830
#include <X11/Xfuncproto.h>
831
#include <X11/Xosdefs.h>
836
#ifdef X_NOT_STDC_ENV
851
/* replace this with #include or typedef appropriate for your system */
852
typedef unsigned long wchar_t;
856
#if defined(ISC) && defined(USE_XMBTOWC)
857
#define wctomb(a,b) _Xwctomb(a,b)
858
#define mblen(a,b) _Xmblen(a,b)
859
#ifndef USE_XWCHAR_STRING
860
#define mbtowc(a,b,c) _Xmbtowc(a,b,c)
864
/* API mentioning "UTF8" or "utf8" is an XFree86 extension, introduced in
865
November 2000. Its presence is indicated through the following macro. */
866
#define X_HAVE_UTF8_STRING 1
868
typedef char *XPointer;
875
#define QueuedAlready 0
876
#define QueuedAfterReading 1
877
#define QueuedAfterFlush 2
879
#define ConnectionNumber(dpy) (((_XPrivDisplay)dpy)->fd)
880
#define RootWindow(dpy, scr) (ScreenOfDisplay(dpy,scr)->root)
881
#define DefaultScreen(dpy) (((_XPrivDisplay)dpy)->default_screen)
882
#define DefaultRootWindow(dpy) (ScreenOfDisplay(dpy,DefaultScreen(dpy))->root)
883
#define DefaultVisual(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_visual)
884
#define DefaultGC(dpy, scr) (ScreenOfDisplay(dpy,scr)->default_gc)
885
#define BlackPixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->black_pixel)
886
#define WhitePixel(dpy, scr) (ScreenOfDisplay(dpy,scr)->white_pixel)
887
#define AllPlanes ((unsigned long)~0L)
888
#define QLength(dpy) (((_XPrivDisplay)dpy)->qlen)
889
#define DisplayWidth(dpy, scr) (ScreenOfDisplay(dpy,scr)->width)
890
#define DisplayHeight(dpy, scr) (ScreenOfDisplay(dpy,scr)->height)
891
#define DisplayWidthMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mwidth)
892
#define DisplayHeightMM(dpy, scr)(ScreenOfDisplay(dpy,scr)->mheight)
893
#define DisplayPlanes(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
894
#define DisplayCells(dpy, scr) (DefaultVisual(dpy,scr)->map_entries)
895
#define ScreenCount(dpy) (((_XPrivDisplay)dpy)->nscreens)
896
#define ServerVendor(dpy) (((_XPrivDisplay)dpy)->vendor)
897
#define ProtocolVersion(dpy) (((_XPrivDisplay)dpy)->proto_major_version)
898
#define ProtocolRevision(dpy) (((_XPrivDisplay)dpy)->proto_minor_version)
899
#define VendorRelease(dpy) (((_XPrivDisplay)dpy)->release)
900
#define DisplayString(dpy) (((_XPrivDisplay)dpy)->display_name)
901
#define DefaultDepth(dpy, scr) (ScreenOfDisplay(dpy,scr)->root_depth)
902
#define DefaultColormap(dpy, scr)(ScreenOfDisplay(dpy,scr)->cmap)
903
#define BitmapUnit(dpy) (((_XPrivDisplay)dpy)->bitmap_unit)
904
#define BitmapBitOrder(dpy) (((_XPrivDisplay)dpy)->bitmap_bit_order)
905
#define BitmapPad(dpy) (((_XPrivDisplay)dpy)->bitmap_pad)
906
#define ImageByteOrder(dpy) (((_XPrivDisplay)dpy)->byte_order)
907
#ifdef CRAY /* unable to get WORD64 without pulling in other symbols */
908
#define NextRequest(dpy) XNextRequest(dpy)
910
#define NextRequest(dpy) (((_XPrivDisplay)dpy)->request + 1)
912
#define LastKnownRequestProcessed(dpy) (((_XPrivDisplay)dpy)->last_request_read)
914
/* macros for screen oriented applications (toolkit) */
915
#define ScreenOfDisplay(dpy, scr)(&((_XPrivDisplay)dpy)->screens[scr])
916
#define DefaultScreenOfDisplay(dpy) ScreenOfDisplay(dpy,DefaultScreen(dpy))
917
#define DisplayOfScreen(s) ((s)->display)
918
#define RootWindowOfScreen(s) ((s)->root)
919
#define BlackPixelOfScreen(s) ((s)->black_pixel)
920
#define WhitePixelOfScreen(s) ((s)->white_pixel)
921
#define DefaultColormapOfScreen(s)((s)->cmap)
922
#define DefaultDepthOfScreen(s) ((s)->root_depth)
923
#define DefaultGCOfScreen(s) ((s)->default_gc)
924
#define DefaultVisualOfScreen(s)((s)->root_visual)
925
#define WidthOfScreen(s) ((s)->width)
926
#define HeightOfScreen(s) ((s)->height)
927
#define WidthMMOfScreen(s) ((s)->mwidth)
928
#define HeightMMOfScreen(s) ((s)->mheight)
929
#define PlanesOfScreen(s) ((s)->root_depth)
930
#define CellsOfScreen(s) (DefaultVisualOfScreen((s))->map_entries)
931
#define MinCmapsOfScreen(s) ((s)->min_maps)
932
#define MaxCmapsOfScreen(s) ((s)->max_maps)
933
#define DoesSaveUnders(s) ((s)->save_unders)
934
#define DoesBackingStore(s) ((s)->backing_store)
935
#define EventMaskOfScreen(s) ((s)->root_input_mask)
938
* Extensions need a way to hang private data on some structures.
940
typedef struct _XExtData {
941
int number; /* number returned by XRegisterExtension */
942
struct _XExtData *next; /* next item on list of data for structure */
943
int (*free_private)( /* called to free private storage */
944
#if NeedFunctionPrototypes
945
struct _XExtData *extension
948
XPointer private_data; /* data private to this extension. */
952
* This file contains structures used by the extension mechanism.
954
typedef struct { /* public to extension, cannot be changed */
955
int extension; /* extension number */
956
int major_opcode; /* major op-code assigned by server */
957
int first_event; /* first event number for the extension */
958
int first_error; /* first error number for the extension */
962
* Data structure for retrieving info about pixmap formats.
969
} XPixmapFormatValues;
973
* Data structure for setting graphics context.
976
int function; /* logical operation */
977
unsigned long plane_mask;/* plane mask */
978
unsigned long foreground;/* foreground pixel */
979
unsigned long background;/* background pixel */
980
int line_width; /* line width */
981
int line_style; /* LineSolid, LineOnOffDash, LineDoubleDash */
982
int cap_style; /* CapNotLast, CapButt,
983
CapRound, CapProjecting */
984
int join_style; /* JoinMiter, JoinRound, JoinBevel */
985
int fill_style; /* FillSolid, FillTiled,
986
FillStippled, FillOpaeueStippled */
987
int fill_rule; /* EvenOddRule, WindingRule */
988
int arc_mode; /* ArcChord, ArcPieSlice */
989
Pixmap tile; /* tile pixmap for tiling operations */
990
Pixmap stipple; /* stipple 1 plane pixmap for stipping */
991
int ts_x_origin; /* offset for tile or stipple operations */
993
Font font; /* default text font for text operations */
994
int subwindow_mode; /* ClipByChildren, IncludeInferiors */
995
Bool graphics_exposures;/* boolean, should exposures be generated */
996
int clip_x_origin; /* origin for clipping */
998
Pixmap clip_mask; /* bitmap clipping; other calls for rects */
999
int dash_offset; /* patterned/dashed line information */
1004
* Graphics context. The contents of this structure are implementation
1005
* dependent. A GC should be treated as opaque by application code.
1009
#ifdef XLIB_ILLEGAL_ACCESS
1011
XExtData *ext_data; /* hook for extension to hang data */
1012
GContext gid; /* protocol ID for graphics context */
1013
/* there is more to this structure, but it is private to Xlib */
1019
* Visual structure; contains information about colormapping possible.
1022
XExtData *ext_data; /* hook for extension to hang data */
1023
VisualID visualid; /* visual id of this visual */
1024
#if defined(__cplusplus) || defined(c_plusplus)
1025
int c_class; /* C++ class of screen (monochrome, etc.) */
1027
int class; /* class of screen (monochrome, etc.) */
1029
unsigned long red_mask, green_mask, blue_mask; /* mask values */
1030
int bits_per_rgb; /* log base 2 of distinct color values */
1031
int map_entries; /* color map entries */
1035
* Depth structure; contains information for each possible depth.
1038
int depth; /* this depth (Z) of the depth */
1039
int nvisuals; /* number of Visual types at this depth */
1040
Visual *visuals; /* list of visuals possible at this depth */
1044
* Information about the screen. The contents of this structure are
1045
* implementation dependent. A Screen should be treated as opaque
1046
* by application code.
1049
struct _XDisplay; /* Forward declare before use for C++ */
1052
XExtData *ext_data; /* hook for extension to hang data */
1053
struct _XDisplay *display;/* back pointer to display structure */
1054
Window root; /* Root window id. */
1055
int width, height; /* width and height of screen */
1056
int mwidth, mheight; /* width and height of in millimeters */
1057
int ndepths; /* number of depths possible */
1058
Depth *depths; /* list of allowable depths on the screen */
1059
int root_depth; /* bits per pixel */
1060
Visual *root_visual; /* root visual */
1061
GC default_gc; /* GC for the root root visual */
1062
Colormap cmap; /* default color map */
1063
unsigned long white_pixel;
1064
unsigned long black_pixel; /* White and Black pixel values */
1065
int max_maps, min_maps; /* max and min color maps */
1066
int backing_store; /* Never, WhenMapped, Always */
1068
long root_input_mask; /* initial root input mask */
1072
* Format structure; describes ZFormat data the screen will understand.
1075
XExtData *ext_data; /* hook for extension to hang data */
1076
int depth; /* depth of this image format */
1077
int bits_per_pixel; /* bits/pixel at this depth */
1078
int scanline_pad; /* scanline must padded to this multiple */
1082
* Data structure for setting window attributes.
1085
Pixmap background_pixmap; /* background or None or ParentRelative */
1086
unsigned long background_pixel; /* background pixel */
1087
Pixmap border_pixmap; /* border of the window */
1088
unsigned long border_pixel; /* border pixel value */
1089
int bit_gravity; /* one of bit gravity values */
1090
int win_gravity; /* one of the window gravity values */
1091
int backing_store; /* NotUseful, WhenMapped, Always */
1092
unsigned long backing_planes;/* planes to be preseved if possible */
1093
unsigned long backing_pixel;/* value to use in restoring planes */
1094
Bool save_under; /* should bits under be saved? (popups) */
1095
long event_mask; /* set of events that should be saved */
1096
long do_not_propagate_mask; /* set of events that should not propagate */
1097
Bool override_redirect; /* boolean value for override-redirect */
1098
Colormap colormap; /* color map to be associated with window */
1099
Cursor cursor; /* cursor to be displayed (or None) */
1100
} XSetWindowAttributes;
1103
int x, y; /* location of window */
1104
int width, height; /* width and height of window */
1105
int border_width; /* border width of window */
1106
int depth; /* depth of window */
1107
Visual *visual; /* the associated visual structure */
1108
Window root; /* root of screen containing window */
1109
#if defined(__cplusplus) || defined(c_plusplus)
1110
int c_class; /* C++ InputOutput, InputOnly*/
1112
int class; /* InputOutput, InputOnly*/
1114
int bit_gravity; /* one of bit gravity values */
1115
int win_gravity; /* one of the window gravity values */
1116
int backing_store; /* NotUseful, WhenMapped, Always */
1117
unsigned long backing_planes;/* planes to be preserved if possible */
1118
unsigned long backing_pixel;/* value to be used when restoring planes */
1119
Bool save_under; /* boolean, should bits under be saved? */
1120
Colormap colormap; /* color map to be associated with window */
1121
Bool map_installed; /* boolean, is color map currently installed*/
1122
int map_state; /* IsUnmapped, IsUnviewable, IsViewable */
1123
long all_event_masks; /* set of events all people have interest in*/
1124
long your_event_mask; /* my event mask */
1125
long do_not_propagate_mask; /* set of events that should not propagate */
1126
Bool override_redirect; /* boolean value for override-redirect */
1127
Screen *screen; /* back pointer to correct screen */
1128
} XWindowAttributes;
1131
* Data structure for host setting; getting routines.
1136
int family; /* for example FamilyInternet */
1137
int length; /* length of address, in bytes */
1138
char *address; /* pointer to where to find the bytes */
1142
* Data structure for "image" data, used by image manipulation routines.
1144
typedef struct _XImage {
1145
int width, height; /* size of image */
1146
int xoffset; /* number of pixels offset in X direction */
1147
int format; /* XYBitmap, XYPixmap, ZPixmap */
1148
char *data; /* pointer to image data */
1149
int byte_order; /* data byte order, LSBFirst, MSBFirst */
1150
int bitmap_unit; /* quant. of scanline 8, 16, 32 */
1151
int bitmap_bit_order; /* LSBFirst, MSBFirst */
1152
int bitmap_pad; /* 8, 16, 32 either XY or ZPixmap */
1153
int depth; /* depth of image */
1154
int bytes_per_line; /* accelarator to next line */
1155
int bits_per_pixel; /* bits per pixel (ZPixmap) */
1156
unsigned long red_mask; /* bits in z arrangment */
1157
unsigned long green_mask;
1158
unsigned long blue_mask;
1159
XPointer obdata; /* hook for the object routines to hang on */
1160
struct funcs { /* image manipulation routines */
1161
#if NeedFunctionPrototypes
1162
struct _XImage *(*create_image)(
1163
struct _XDisplay* /* display */,
1164
Visual* /* visual */,
1165
unsigned int /* depth */,
1169
unsigned int /* width */,
1170
unsigned int /* height */,
1171
int /* bitmap_pad */,
1172
int /* bytes_per_line */);
1173
int (*destroy_image) (struct _XImage *);
1174
unsigned long (*get_pixel) (struct _XImage *, int, int);
1175
int (*put_pixel) (struct _XImage *, int, int, unsigned long);
1176
struct _XImage *(*sub_image)(struct _XImage *, int, int, unsigned int, unsigned int);
1177
int (*add_pixel) (struct _XImage *, long);
1179
struct _XImage *(*create_image)();
1180
int (*destroy_image)();
1181
unsigned long (*get_pixel)();
1183
struct _XImage *(*sub_image)();
1190
* Data structure for XReconfigureWindow
1201
* Data structure used by color operations
1204
unsigned long pixel;
1205
unsigned short red, green, blue;
1206
char flags; /* do_red, do_green, do_blue */
1211
* Data structures for graphics operations. On most machines, these are
1212
* congruent with the wire protocol structures, so reformatting the data
1213
* can be avoided on these architectures.
1216
short x1, y1, x2, y2;
1225
unsigned short width, height;
1230
unsigned short width, height;
1231
short angle1, angle2;
1235
/* Data structure for XChangeKeyboardControl */
1238
int key_click_percent;
1245
int auto_repeat_mode; /* On, Off, Default */
1248
/* Data structure for XGetKeyboardControl */
1251
int key_click_percent;
1253
unsigned int bell_pitch, bell_duration;
1254
unsigned long led_mask;
1255
int global_auto_repeat;
1256
char auto_repeats[32];
1259
/* Data structure for XGetMotionEvents. */
1266
/* Data structure for X{Set,Get}ModifierMapping */
1269
int max_keypermod; /* The server's max # of keys per modifier */
1270
KeyCode *modifiermap; /* An 8 by max_keypermod array of modifiers */
1275
* Display datatype maintaining display specific data.
1276
* The contents of this structure are implementation dependent.
1277
* A Display should be treated as opaque by application code.
1279
#ifndef XLIB_ILLEGAL_ACCESS
1280
typedef struct _XDisplay Display;
1283
struct _XPrivate; /* Forward declare before use for C++ */
1284
struct _XrmHashBucketRec;
1287
#ifdef XLIB_ILLEGAL_ACCESS
1291
XExtData *ext_data; /* hook for extension to hang data */
1292
struct _XPrivate *private1;
1293
int fd; /* Network socket. */
1295
int proto_major_version;/* major version of server's X protocol */
1296
int proto_minor_version;/* minor version of servers X protocol */
1297
char *vendor; /* vendor of the server hardware */
1302
XID (*resource_alloc)( /* allocator function */
1303
#if NeedFunctionPrototypes
1307
int byte_order; /* screen byte order, LSBFirst, MSBFirst */
1308
int bitmap_unit; /* padding and data requirements */
1309
int bitmap_pad; /* padding requirements on bitmaps */
1310
int bitmap_bit_order; /* LeastSignificant or MostSignificant */
1311
int nformats; /* number of pixmap formats in list */
1312
ScreenFormat *pixmap_format; /* pixmap format list */
1314
int release; /* release of the server */
1315
struct _XPrivate *private9, *private10;
1316
int qlen; /* Length of input event queue */
1317
unsigned long last_request_read; /* seq number of last event read */
1318
unsigned long request; /* sequence number of last request. */
1323
unsigned max_request_size; /* maximum number 32 bit words in request*/
1324
struct _XrmHashBucketRec *db;
1326
#if NeedFunctionPrototypes
1330
char *display_name; /* "host:display" string used on this connect*/
1331
int default_screen; /* default screen for operations */
1332
int nscreens; /* number of screens on this server*/
1333
Screen *screens; /* pointer to list of screens */
1334
unsigned long motion_buffer; /* size of motion buffer */
1335
unsigned long private16;
1336
int min_keycode; /* minimum defined keycode */
1337
int max_keycode; /* maximum defined keycode */
1341
char *xdefaults; /* contents of defaults from server */
1342
/* there is more to this structure, but it is private to Xlib */
1344
#ifdef XLIB_ILLEGAL_ACCESS
1349
#if NeedFunctionPrototypes /* prototypes require event type definitions */
1354
* Definitions of specific events.
1357
int type; /* of event */
1358
unsigned long serial; /* # of last request processed by server */
1359
Bool send_event; /* true if this came from a SendEvent request */
1360
Display *display; /* Display the event was read from */
1361
Window window; /* "event" window it is reported relative to */
1362
Window root; /* root window that the event occurred on */
1363
Window subwindow; /* child window */
1364
Time time; /* milliseconds */
1365
int x, y; /* pointer x, y coordinates in event window */
1366
int x_root, y_root; /* coordinates relative to root */
1367
unsigned int state; /* key or button mask */
1368
unsigned int keycode; /* detail */
1369
Bool same_screen; /* same screen flag */
1371
typedef XKeyEvent XKeyPressedEvent;
1372
typedef XKeyEvent XKeyReleasedEvent;
1375
int type; /* of event */
1376
unsigned long serial; /* # of last request processed by server */
1377
Bool send_event; /* true if this came from a SendEvent request */
1378
Display *display; /* Display the event was read from */
1379
Window window; /* "event" window it is reported relative to */
1380
Window root; /* root window that the event occurred on */
1381
Window subwindow; /* child window */
1382
Time time; /* milliseconds */
1383
int x, y; /* pointer x, y coordinates in event window */
1384
int x_root, y_root; /* coordinates relative to root */
1385
unsigned int state; /* key or button mask */
1386
unsigned int button; /* detail */
1387
Bool same_screen; /* same screen flag */
1389
typedef XButtonEvent XButtonPressedEvent;
1390
typedef XButtonEvent XButtonReleasedEvent;
1393
int type; /* of event */
1394
unsigned long serial; /* # of last request processed by server */
1395
Bool send_event; /* true if this came from a SendEvent request */
1396
Display *display; /* Display the event was read from */
1397
Window window; /* "event" window reported relative to */
1398
Window root; /* root window that the event occurred on */
1399
Window subwindow; /* child window */
1400
Time time; /* milliseconds */
1401
int x, y; /* pointer x, y coordinates in event window */
1402
int x_root, y_root; /* coordinates relative to root */
1403
unsigned int state; /* key or button mask */
1404
char is_hint; /* detail */
1405
Bool same_screen; /* same screen flag */
1407
typedef XMotionEvent XPointerMovedEvent;
1410
int type; /* of event */
1411
unsigned long serial; /* # of last request processed by server */
1412
Bool send_event; /* true if this came from a SendEvent request */
1413
Display *display; /* Display the event was read from */
1414
Window window; /* "event" window reported relative to */
1415
Window root; /* root window that the event occurred on */
1416
Window subwindow; /* child window */
1417
Time time; /* milliseconds */
1418
int x, y; /* pointer x, y coordinates in event window */
1419
int x_root, y_root; /* coordinates relative to root */
1420
int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */
1423
* NotifyAncestor, NotifyVirtual, NotifyInferior,
1424
* NotifyNonlinear,NotifyNonlinearVirtual
1426
Bool same_screen; /* same screen flag */
1427
Bool focus; /* boolean focus */
1428
unsigned int state; /* key or button mask */
1430
typedef XCrossingEvent XEnterWindowEvent;
1431
typedef XCrossingEvent XLeaveWindowEvent;
1434
int type; /* FocusIn or FocusOut */
1435
unsigned long serial; /* # of last request processed by server */
1436
Bool send_event; /* true if this came from a SendEvent request */
1437
Display *display; /* Display the event was read from */
1438
Window window; /* window of event */
1439
int mode; /* NotifyNormal, NotifyGrab, NotifyUngrab */
1442
* NotifyAncestor, NotifyVirtual, NotifyInferior,
1443
* NotifyNonlinear,NotifyNonlinearVirtual, NotifyPointer,
1444
* NotifyPointerRoot, NotifyDetailNone
1446
} XFocusChangeEvent;
1447
typedef XFocusChangeEvent XFocusInEvent;
1448
typedef XFocusChangeEvent XFocusOutEvent;
1450
/* generated on EnterWindow and FocusIn when KeyMapState selected */
1453
unsigned long serial; /* # of last request processed by server */
1454
Bool send_event; /* true if this came from a SendEvent request */
1455
Display *display; /* Display the event was read from */
1457
char key_vector[32];
1462
unsigned long serial; /* # of last request processed by server */
1463
Bool send_event; /* true if this came from a SendEvent request */
1464
Display *display; /* Display the event was read from */
1468
int count; /* if non-zero, at least this many more */
1473
unsigned long serial; /* # of last request processed by server */
1474
Bool send_event; /* true if this came from a SendEvent request */
1475
Display *display; /* Display the event was read from */
1479
int count; /* if non-zero, at least this many more */
1480
int major_code; /* core is CopyArea or CopyPlane */
1481
int minor_code; /* not defined in the core */
1482
} XGraphicsExposeEvent;
1486
unsigned long serial; /* # of last request processed by server */
1487
Bool send_event; /* true if this came from a SendEvent request */
1488
Display *display; /* Display the event was read from */
1490
int major_code; /* core is CopyArea or CopyPlane */
1491
int minor_code; /* not defined in the core */
1496
unsigned long serial; /* # of last request processed by server */
1497
Bool send_event; /* true if this came from a SendEvent request */
1498
Display *display; /* Display the event was read from */
1500
int state; /* Visibility state */
1505
unsigned long serial; /* # of last request processed by server */
1506
Bool send_event; /* true if this came from a SendEvent request */
1507
Display *display; /* Display the event was read from */
1508
Window parent; /* parent of the window */
1509
Window window; /* window id of window created */
1510
int x, y; /* window location */
1511
int width, height; /* size of window */
1512
int border_width; /* border width */
1513
Bool override_redirect; /* creation should be overridden */
1514
} XCreateWindowEvent;
1518
unsigned long serial; /* # of last request processed by server */
1519
Bool send_event; /* true if this came from a SendEvent request */
1520
Display *display; /* Display the event was read from */
1523
} XDestroyWindowEvent;
1527
unsigned long serial; /* # of last request processed by server */
1528
Bool send_event; /* true if this came from a SendEvent request */
1529
Display *display; /* Display the event was read from */
1532
Bool from_configure;
1537
unsigned long serial; /* # of last request processed by server */
1538
Bool send_event; /* true if this came from a SendEvent request */
1539
Display *display; /* Display the event was read from */
1542
Bool override_redirect; /* boolean, is override set... */
1547
unsigned long serial; /* # of last request processed by server */
1548
Bool send_event; /* true if this came from a SendEvent request */
1549
Display *display; /* Display the event was read from */
1556
unsigned long serial; /* # of last request processed by server */
1557
Bool send_event; /* true if this came from a SendEvent request */
1558
Display *display; /* Display the event was read from */
1563
Bool override_redirect;
1568
unsigned long serial; /* # of last request processed by server */
1569
Bool send_event; /* true if this came from a SendEvent request */
1570
Display *display; /* Display the event was read from */
1577
Bool override_redirect;
1582
unsigned long serial; /* # of last request processed by server */
1583
Bool send_event; /* true if this came from a SendEvent request */
1584
Display *display; /* Display the event was read from */
1592
unsigned long serial; /* # of last request processed by server */
1593
Bool send_event; /* true if this came from a SendEvent request */
1594
Display *display; /* Display the event was read from */
1597
} XResizeRequestEvent;
1601
unsigned long serial; /* # of last request processed by server */
1602
Bool send_event; /* true if this came from a SendEvent request */
1603
Display *display; /* Display the event was read from */
1610
int detail; /* Above, Below, TopIf, BottomIf, Opposite */
1611
unsigned long value_mask;
1612
} XConfigureRequestEvent;
1616
unsigned long serial; /* # of last request processed by server */
1617
Bool send_event; /* true if this came from a SendEvent request */
1618
Display *display; /* Display the event was read from */
1621
int place; /* PlaceOnTop, PlaceOnBottom */
1626
unsigned long serial; /* # of last request processed by server */
1627
Bool send_event; /* true if this came from a SendEvent request */
1628
Display *display; /* Display the event was read from */
1631
int place; /* PlaceOnTop, PlaceOnBottom */
1632
} XCirculateRequestEvent;
1636
unsigned long serial; /* # of last request processed by server */
1637
Bool send_event; /* true if this came from a SendEvent request */
1638
Display *display; /* Display the event was read from */
1642
int state; /* NewValue, Deleted */
1647
unsigned long serial; /* # of last request processed by server */
1648
Bool send_event; /* true if this came from a SendEvent request */
1649
Display *display; /* Display the event was read from */
1653
} XSelectionClearEvent;
1657
unsigned long serial; /* # of last request processed by server */
1658
Bool send_event; /* true if this came from a SendEvent request */
1659
Display *display; /* Display the event was read from */
1666
} XSelectionRequestEvent;
1670
unsigned long serial; /* # of last request processed by server */
1671
Bool send_event; /* true if this came from a SendEvent request */
1672
Display *display; /* Display the event was read from */
1676
Atom property; /* ATOM or None */
1682
unsigned long serial; /* # of last request processed by server */
1683
Bool send_event; /* true if this came from a SendEvent request */
1684
Display *display; /* Display the event was read from */
1686
Colormap colormap; /* COLORMAP or None */
1687
#if defined(__cplusplus) || defined(c_plusplus)
1688
Bool c_new; /* C++ */
1692
int state; /* ColormapInstalled, ColormapUninstalled */
1697
unsigned long serial; /* # of last request processed by server */
1698
Bool send_event; /* true if this came from a SendEvent request */
1699
Display *display; /* Display the event was read from */
1708
} XClientMessageEvent;
1712
unsigned long serial; /* # of last request processed by server */
1713
Bool send_event; /* true if this came from a SendEvent request */
1714
Display *display; /* Display the event was read from */
1715
Window window; /* unused */
1716
int request; /* one of MappingModifier, MappingKeyboard,
1718
int first_keycode; /* first keycode */
1719
int count; /* defines range of change w. first_keycode*/
1724
Display *display; /* Display the event was read from */
1725
XID resourceid; /* resource id */
1726
unsigned long serial; /* serial number of failed request */
1727
unsigned char error_code; /* error code of failed request */
1728
unsigned char request_code; /* Major op-code of failed request */
1729
unsigned char minor_code; /* Minor op-code of failed request */
1734
unsigned long serial; /* # of last request processed by server */
1735
Bool send_event; /* true if this came from a SendEvent request */
1736
Display *display;/* Display the event was read from */
1737
Window window; /* window on which event was requested in event mask */
1741
* this union is defined so Xlib can always use the same sized
1742
* event structure internally, to avoid memory fragmentation.
1744
typedef union _XEvent {
1745
int type; /* must not be changed; first element */
1748
XButtonEvent xbutton;
1749
XMotionEvent xmotion;
1750
XCrossingEvent xcrossing;
1751
XFocusChangeEvent xfocus;
1752
XExposeEvent xexpose;
1753
XGraphicsExposeEvent xgraphicsexpose;
1754
XNoExposeEvent xnoexpose;
1755
XVisibilityEvent xvisibility;
1756
XCreateWindowEvent xcreatewindow;
1757
XDestroyWindowEvent xdestroywindow;
1760
XMapRequestEvent xmaprequest;
1761
XReparentEvent xreparent;
1762
XConfigureEvent xconfigure;
1763
XGravityEvent xgravity;
1764
XResizeRequestEvent xresizerequest;
1765
XConfigureRequestEvent xconfigurerequest;
1766
XCirculateEvent xcirculate;
1767
XCirculateRequestEvent xcirculaterequest;
1768
XPropertyEvent xproperty;
1769
XSelectionClearEvent xselectionclear;
1770
XSelectionRequestEvent xselectionrequest;
1771
XSelectionEvent xselection;
1772
XColormapEvent xcolormap;
1773
XClientMessageEvent xclient;
1774
XMappingEvent xmapping;
1776
XKeymapEvent xkeymap;
1781
#define XAllocID(dpy) ((*((_XPrivDisplay)dpy)->resource_alloc)((dpy)))
1784
* per character font metric information.
1787
short lbearing; /* origin to left edge of raster */
1788
short rbearing; /* origin to right edge of raster */
1789
short width; /* advance to next char's origin */
1790
short ascent; /* baseline to top edge of raster */
1791
short descent; /* baseline to bottom edge of raster */
1792
unsigned short attributes; /* per char flags (not predefined) */
1796
* To allow arbitrary information with fonts, there are additional properties
1801
unsigned long card32;
1805
XExtData *ext_data; /* hook for extension to hang data */
1806
Font fid; /* Font id for this font */
1807
unsigned direction; /* hint about direction the font is painted */
1808
unsigned min_char_or_byte2;/* first character */
1809
unsigned max_char_or_byte2;/* last character */
1810
unsigned min_byte1; /* first row that exists */
1811
unsigned max_byte1; /* last row that exists */
1812
Bool all_chars_exist;/* flag if all characters have non-zero size*/
1813
unsigned default_char; /* char to print for undefined character */
1814
int n_properties; /* how many properties there are */
1815
XFontProp *properties; /* pointer to array of additional properties*/
1816
XCharStruct min_bounds; /* minimum bounds over all existing char*/
1817
XCharStruct max_bounds; /* maximum bounds over all existing char*/
1818
XCharStruct *per_char; /* first_char to last_char information */
1819
int ascent; /* log. extent above baseline for spacing */
1820
int descent; /* log. descent below baseline for spacing */
1824
* PolyText routines take these as arguments.
1827
char *chars; /* pointer to string */
1828
int nchars; /* number of characters */
1829
int delta; /* delta between strings */
1830
Font font; /* font to print it in, None don't change */
1833
typedef struct { /* normal 16 bit characters are two bytes */
1834
unsigned char byte1;
1835
unsigned char byte2;
1839
XChar2b *chars; /* two byte characters */
1840
int nchars; /* number of characters */
1841
int delta; /* delta between strings */
1842
Font font; /* font to print it in, None don't change */
1846
typedef union { Display *display;
1850
ScreenFormat *pixmap_format;
1851
XFontStruct *font; } XEDataObject;
1854
XRectangle max_ink_extent;
1855
XRectangle max_logical_extent;
1859
typedef void (*XOMProc)();
1862
typedef struct _XOM *XOM;
1863
typedef struct _XOC *XOC, *XFontSet;
1879
#define XNRequiredCharSet "requiredCharSet"
1880
#define XNQueryOrientation "queryOrientation"
1881
#define XNBaseFontName "baseFontName"
1882
#define XNOMAutomatic "omAutomatic"
1883
#define XNMissingCharSet "missingCharSet"
1884
#define XNDefaultString "defaultString"
1885
#define XNOrientation "orientation"
1886
#define XNDirectionalDependentDrawing "directionalDependentDrawing"
1887
#define XNContextualDrawing "contextualDrawing"
1888
#define XNFontInfo "fontInfo"
1892
char **charset_list;
1896
XOMOrientation_LTR_TTB,
1897
XOMOrientation_RTL_TTB,
1898
XOMOrientation_TTB_LTR,
1899
XOMOrientation_TTB_RTL,
1900
XOMOrientation_Context
1904
int num_orientation;
1905
XOrientation *orientation; /* Input Text description */
1910
XFontStruct **font_struct_list;
1911
char **font_name_list;
1914
typedef struct _XIM *XIM;
1915
typedef struct _XIC *XIC;
1917
typedef void (*XIMProc)(
1918
#if NeedFunctionPrototypes
1925
typedef Bool (*XICProc)(
1926
#if NeedFunctionPrototypes
1933
typedef void (*XIDProc)(
1934
#if NeedFunctionPrototypes
1941
typedef unsigned long XIMStyle;
1944
unsigned short count_styles;
1945
XIMStyle *supported_styles;
1948
#define XIMPreeditArea 0x0001L
1949
#define XIMPreeditCallbacks 0x0002L
1950
#define XIMPreeditPosition 0x0004L
1951
#define XIMPreeditNothing 0x0008L
1952
#define XIMPreeditNone 0x0010L
1953
#define XIMStatusArea 0x0100L
1954
#define XIMStatusCallbacks 0x0200L
1955
#define XIMStatusNothing 0x0400L
1956
#define XIMStatusNone 0x0800L
1958
#define XNVaNestedList "XNVaNestedList"
1959
#define XNQueryInputStyle "queryInputStyle"
1960
#define XNClientWindow "clientWindow"
1961
#define XNInputStyle "inputStyle"
1962
#define XNFocusWindow "focusWindow"
1963
#define XNResourceName "resourceName"
1964
#define XNResourceClass "resourceClass"
1965
#define XNGeometryCallback "geometryCallback"
1966
#define XNDestroyCallback "destroyCallback"
1967
#define XNFilterEvents "filterEvents"
1968
#define XNPreeditStartCallback "preeditStartCallback"
1969
#define XNPreeditDoneCallback "preeditDoneCallback"
1970
#define XNPreeditDrawCallback "preeditDrawCallback"
1971
#define XNPreeditCaretCallback "preeditCaretCallback"
1972
#define XNPreeditStateNotifyCallback "preeditStateNotifyCallback"
1973
#define XNPreeditAttributes "preeditAttributes"
1974
#define XNStatusStartCallback "statusStartCallback"
1975
#define XNStatusDoneCallback "statusDoneCallback"
1976
#define XNStatusDrawCallback "statusDrawCallback"
1977
#define XNStatusAttributes "statusAttributes"
1978
#define XNArea "area"
1979
#define XNAreaNeeded "areaNeeded"
1980
#define XNSpotLocation "spotLocation"
1981
#define XNColormap "colorMap"
1982
#define XNStdColormap "stdColorMap"
1983
#define XNForeground "foreground"
1984
#define XNBackground "background"
1985
#define XNBackgroundPixmap "backgroundPixmap"
1986
#define XNFontSet "fontSet"
1987
#define XNLineSpace "lineSpace"
1988
#define XNCursor "cursor"
1990
#define XNQueryIMValuesList "queryIMValuesList"
1991
#define XNQueryICValuesList "queryICValuesList"
1992
#define XNVisiblePosition "visiblePosition"
1993
#define XNR6PreeditCallback "r6PreeditCallback"
1994
#define XNStringConversionCallback "stringConversionCallback"
1995
#define XNStringConversion "stringConversion"
1996
#define XNResetState "resetState"
1997
#define XNHotKey "hotKey"
1998
#define XNHotKeyState "hotKeyState"
1999
#define XNPreeditState "preeditState"
2000
#define XNSeparatorofNestedList "separatorofNestedList"
2002
#define XBufferOverflow -1
2003
#define XLookupNone 1
2004
#define XLookupChars 2
2005
#define XLookupKeySym 3
2006
#define XLookupBoth 4
2008
#if NeedFunctionPrototypes
2009
typedef void *XVaNestedList;
2011
typedef XPointer XVaNestedList;
2015
XPointer client_data;
2020
XPointer client_data;
2024
typedef unsigned long XIMFeedback;
2026
#define XIMReverse 1L
2027
#define XIMUnderline (1L<<1)
2028
#define XIMHighlight (1L<<2)
2029
#define XIMPrimary (1L<<5)
2030
#define XIMSecondary (1L<<6)
2031
#define XIMTertiary (1L<<7)
2032
#define XIMVisibleToForward (1L<<8)
2033
#define XIMVisibleToBackword (1L<<9)
2034
#define XIMVisibleToCenter (1L<<10)
2036
typedef struct _XIMText {
2037
unsigned short length;
2038
XIMFeedback *feedback;
2039
Bool encoding_is_wchar;
2046
typedef unsigned long XIMPreeditState;
2048
#define XIMPreeditUnKnown 0L
2049
#define XIMPreeditEnable 1L
2050
#define XIMPreeditDisable (1L<<1)
2052
typedef struct _XIMPreeditStateNotifyCallbackStruct {
2053
XIMPreeditState state;
2054
} XIMPreeditStateNotifyCallbackStruct;
2056
typedef unsigned long XIMResetState;
2058
#define XIMInitialState 1L
2059
#define XIMPreserveState (1L<<1)
2061
typedef unsigned long XIMStringConversionFeedback;
2063
#define XIMStringConversionLeftEdge (0x00000001)
2064
#define XIMStringConversionRightEdge (0x00000002)
2065
#define XIMStringConversionTopEdge (0x00000004)
2066
#define XIMStringConversionBottomEdge (0x00000008)
2067
#define XIMStringConversionConcealed (0x00000010)
2068
#define XIMStringConversionWrapped (0x00000020)
2070
typedef struct _XIMStringConversionText {
2071
unsigned short length;
2072
XIMStringConversionFeedback *feedback;
2073
Bool encoding_is_wchar;
2078
} XIMStringConversionText;
2080
typedef unsigned short XIMStringConversionPosition;
2082
typedef unsigned short XIMStringConversionType;
2084
#define XIMStringConversionBuffer (0x0001)
2085
#define XIMStringConversionLine (0x0002)
2086
#define XIMStringConversionWord (0x0003)
2087
#define XIMStringConversionChar (0x0004)
2089
typedef unsigned short XIMStringConversionOperation;
2091
#define XIMStringConversionSubstitution (0x0001)
2092
#define XIMStringConversionRetrieval (0x0002)
2095
XIMForwardChar, XIMBackwardChar,
2096
XIMForwardWord, XIMBackwardWord,
2097
XIMCaretUp, XIMCaretDown,
2098
XIMNextLine, XIMPreviousLine,
2099
XIMLineStart, XIMLineEnd,
2100
XIMAbsolutePosition,
2102
} XIMCaretDirection;
2104
typedef struct _XIMStringConversionCallbackStruct {
2105
XIMStringConversionPosition position;
2106
XIMCaretDirection direction;
2107
XIMStringConversionOperation operation;
2108
unsigned short factor;
2109
XIMStringConversionText *text;
2110
} XIMStringConversionCallbackStruct;
2112
typedef struct _XIMPreeditDrawCallbackStruct {
2113
int caret; /* Cursor offset within pre-edit string */
2114
int chg_first; /* Starting change position */
2115
int chg_length; /* Length of the change in character count */
2117
} XIMPreeditDrawCallbackStruct;
2120
XIMIsInvisible, /* Disable caret feedback */
2121
XIMIsPrimary, /* UI defined caret feedback */
2122
XIMIsSecondary /* UI defined caret feedback */
2125
typedef struct _XIMPreeditCaretCallbackStruct {
2126
int position; /* Caret offset within pre-edit string */
2127
XIMCaretDirection direction; /* Caret moves direction */
2128
XIMCaretStyle style; /* Feedback of the caret */
2129
} XIMPreeditCaretCallbackStruct;
2134
} XIMStatusDataType;
2136
typedef struct _XIMStatusDrawCallbackStruct {
2137
XIMStatusDataType type;
2142
} XIMStatusDrawCallbackStruct;
2144
typedef struct _XIMHotKeyTrigger {
2150
typedef struct _XIMHotKeyTriggers {
2152
XIMHotKeyTrigger *key;
2153
} XIMHotKeyTriggers;
2155
typedef unsigned long XIMHotKeyState;
2157
#define XIMHotKeyStateON (0x0001L)
2158
#define XIMHotKeyStateOFF (0x0002L)
2161
unsigned short count_values;
2162
char **supported_values;
2168
#if defined(WIN32) && !defined(_XLIBINT_)
2169
#define _Xdebug (*_Xdebug_p)
2174
extern XFontStruct *XLoadQueryFont(
2175
#if NeedFunctionPrototypes
2176
Display* /* display */,
2177
_Xconst char* /* name */
2181
extern XFontStruct *XQueryFont(
2182
#if NeedFunctionPrototypes
2183
Display* /* display */,
2189
extern XTimeCoord *XGetMotionEvents(
2190
#if NeedFunctionPrototypes
2191
Display* /* display */,
2195
int* /* nevents_return */
2199
extern XModifierKeymap *XDeleteModifiermapEntry(
2200
#if NeedFunctionPrototypes
2201
XModifierKeymap* /* modmap */,
2202
#if NeedWidePrototypes
2203
unsigned int /* keycode_entry */,
2205
KeyCode /* keycode_entry */,
2211
extern XModifierKeymap *XGetModifierMapping(
2212
#if NeedFunctionPrototypes
2213
Display* /* display */
2217
extern XModifierKeymap *XInsertModifiermapEntry(
2218
#if NeedFunctionPrototypes
2219
XModifierKeymap* /* modmap */,
2220
#if NeedWidePrototypes
2221
unsigned int /* keycode_entry */,
2223
KeyCode /* keycode_entry */,
2229
extern XModifierKeymap *XNewModifiermap(
2230
#if NeedFunctionPrototypes
2231
int /* max_keys_per_mod */
2235
extern XImage *XCreateImage(
2236
#if NeedFunctionPrototypes
2237
Display* /* display */,
2238
Visual* /* visual */,
2239
unsigned int /* depth */,
2243
unsigned int /* width */,
2244
unsigned int /* height */,
2245
int /* bitmap_pad */,
2246
int /* bytes_per_line */
2249
extern Status XInitImage(
2250
#if NeedFunctionPrototypes
2254
extern XImage *XGetImage(
2255
#if NeedFunctionPrototypes
2256
Display* /* display */,
2260
unsigned int /* width */,
2261
unsigned int /* height */,
2262
unsigned long /* plane_mask */,
2266
extern XImage *XGetSubImage(
2267
#if NeedFunctionPrototypes
2268
Display* /* display */,
2272
unsigned int /* width */,
2273
unsigned int /* height */,
2274
unsigned long /* plane_mask */,
2276
XImage* /* dest_image */,
2283
* X function declarations.
2285
extern Display *XOpenDisplay(
2286
#if NeedFunctionPrototypes
2287
_Xconst char* /* display_name */
2291
extern void XrmInitialize(
2292
#if NeedFunctionPrototypes
2297
extern char *XFetchBytes(
2298
#if NeedFunctionPrototypes
2299
Display* /* display */,
2300
int* /* nbytes_return */
2303
extern char *XFetchBuffer(
2304
#if NeedFunctionPrototypes
2305
Display* /* display */,
2306
int* /* nbytes_return */,
2310
extern char *XGetAtomName(
2311
#if NeedFunctionPrototypes
2312
Display* /* display */,
2316
extern Status XGetAtomNames(
2317
#if NeedFunctionPrototypes
2321
char** /* names_return */
2324
extern char *XGetDefault(
2325
#if NeedFunctionPrototypes
2326
Display* /* display */,
2327
_Xconst char* /* program */,
2328
_Xconst char* /* option */
2331
extern char *XDisplayName(
2332
#if NeedFunctionPrototypes
2333
_Xconst char* /* string */
2336
extern char *XKeysymToString(
2337
#if NeedFunctionPrototypes
2342
extern int (*XSynchronize(
2343
#if NeedFunctionPrototypes
2344
Display* /* display */,
2348
#if NeedNestedPrototypes
2349
Display* /* display */
2352
extern int (*XSetAfterFunction(
2353
#if NeedFunctionPrototypes
2354
Display* /* display */,
2356
#if NeedNestedPrototypes
2357
Display* /* display */
2362
#if NeedNestedPrototypes
2363
Display* /* display */
2366
extern Atom XInternAtom(
2367
#if NeedFunctionPrototypes
2368
Display* /* display */,
2369
_Xconst char* /* atom_name */,
2370
Bool /* only_if_exists */
2373
extern Status XInternAtoms(
2374
#if NeedFunctionPrototypes
2378
Bool /* onlyIfExists */,
2379
Atom* /* atoms_return */
2382
extern Colormap XCopyColormapAndFree(
2383
#if NeedFunctionPrototypes
2384
Display* /* display */,
2385
Colormap /* colormap */
2388
extern Colormap XCreateColormap(
2389
#if NeedFunctionPrototypes
2390
Display* /* display */,
2392
Visual* /* visual */,
2396
extern Cursor XCreatePixmapCursor(
2397
#if NeedFunctionPrototypes
2398
Display* /* display */,
2399
Pixmap /* source */,
2401
XColor* /* foreground_color */,
2402
XColor* /* background_color */,
2403
unsigned int /* x */,
2404
unsigned int /* y */
2407
extern Cursor XCreateGlyphCursor(
2408
#if NeedFunctionPrototypes
2409
Display* /* display */,
2410
Font /* source_font */,
2411
Font /* mask_font */,
2412
unsigned int /* source_char */,
2413
unsigned int /* mask_char */,
2414
XColor _Xconst * /* foreground_color */,
2415
XColor _Xconst * /* background_color */
2418
extern Cursor XCreateFontCursor(
2419
#if NeedFunctionPrototypes
2420
Display* /* display */,
2421
unsigned int /* shape */
2424
extern Font XLoadFont(
2425
#if NeedFunctionPrototypes
2426
Display* /* display */,
2427
_Xconst char* /* name */
2430
extern GC XCreateGC(
2431
#if NeedFunctionPrototypes
2432
Display* /* display */,
2434
unsigned long /* valuemask */,
2435
XGCValues* /* values */
2438
extern GContext XGContextFromGC(
2439
#if NeedFunctionPrototypes
2443
extern void XFlushGC(
2444
#if NeedFunctionPrototypes
2445
Display* /* display */,
2449
extern Pixmap XCreatePixmap(
2450
#if NeedFunctionPrototypes
2451
Display* /* display */,
2453
unsigned int /* width */,
2454
unsigned int /* height */,
2455
unsigned int /* depth */
2458
extern Pixmap XCreateBitmapFromData(
2459
#if NeedFunctionPrototypes
2460
Display* /* display */,
2462
_Xconst char* /* data */,
2463
unsigned int /* width */,
2464
unsigned int /* height */
2467
extern Pixmap XCreatePixmapFromBitmapData(
2468
#if NeedFunctionPrototypes
2469
Display* /* display */,
2472
unsigned int /* width */,
2473
unsigned int /* height */,
2474
unsigned long /* fg */,
2475
unsigned long /* bg */,
2476
unsigned int /* depth */
2479
extern Window XCreateSimpleWindow(
2480
#if NeedFunctionPrototypes
2481
Display* /* display */,
2482
Window /* parent */,
2485
unsigned int /* width */,
2486
unsigned int /* height */,
2487
unsigned int /* border_width */,
2488
unsigned long /* border */,
2489
unsigned long /* background */
2492
extern Window XGetSelectionOwner(
2493
#if NeedFunctionPrototypes
2494
Display* /* display */,
2495
Atom /* selection */
2498
extern Window XCreateWindow(
2499
#if NeedFunctionPrototypes
2500
Display* /* display */,
2501
Window /* parent */,
2504
unsigned int /* width */,
2505
unsigned int /* height */,
2506
unsigned int /* border_width */,
2508
unsigned int /* class */,
2509
Visual* /* visual */,
2510
unsigned long /* valuemask */,
2511
XSetWindowAttributes* /* attributes */
2514
extern Colormap *XListInstalledColormaps(
2515
#if NeedFunctionPrototypes
2516
Display* /* display */,
2518
int* /* num_return */
2521
extern char **XListFonts(
2522
#if NeedFunctionPrototypes
2523
Display* /* display */,
2524
_Xconst char* /* pattern */,
2526
int* /* actual_count_return */
2529
extern char **XListFontsWithInfo(
2530
#if NeedFunctionPrototypes
2531
Display* /* display */,
2532
_Xconst char* /* pattern */,
2534
int* /* count_return */,
2535
XFontStruct** /* info_return */
2538
extern char **XGetFontPath(
2539
#if NeedFunctionPrototypes
2540
Display* /* display */,
2541
int* /* npaths_return */
2544
extern char **XListExtensions(
2545
#if NeedFunctionPrototypes
2546
Display* /* display */,
2547
int* /* nextensions_return */
2550
extern Atom *XListProperties(
2551
#if NeedFunctionPrototypes
2552
Display* /* display */,
2554
int* /* num_prop_return */
2557
extern XHostAddress *XListHosts(
2558
#if NeedFunctionPrototypes
2559
Display* /* display */,
2560
int* /* nhosts_return */,
2561
Bool* /* state_return */
2564
extern KeySym XKeycodeToKeysym(
2565
#if NeedFunctionPrototypes
2566
Display* /* display */,
2567
#if NeedWidePrototypes
2568
unsigned int /* keycode */,
2570
KeyCode /* keycode */,
2575
extern KeySym XLookupKeysym(
2576
#if NeedFunctionPrototypes
2577
XKeyEvent* /* key_event */,
2581
extern KeySym *XGetKeyboardMapping(
2582
#if NeedFunctionPrototypes
2583
Display* /* display */,
2584
#if NeedWidePrototypes
2585
unsigned int /* first_keycode */,
2587
KeyCode /* first_keycode */,
2589
int /* keycode_count */,
2590
int* /* keysyms_per_keycode_return */
2593
extern KeySym XStringToKeysym(
2594
#if NeedFunctionPrototypes
2595
_Xconst char* /* string */
2598
extern long XMaxRequestSize(
2599
#if NeedFunctionPrototypes
2600
Display* /* display */
2603
extern long XExtendedMaxRequestSize(
2604
#if NeedFunctionPrototypes
2605
Display* /* display */
2608
extern char *XResourceManagerString(
2609
#if NeedFunctionPrototypes
2610
Display* /* display */
2613
extern char *XScreenResourceString(
2614
#if NeedFunctionPrototypes
2615
Screen* /* screen */
2618
extern unsigned long XDisplayMotionBufferSize(
2619
#if NeedFunctionPrototypes
2620
Display* /* display */
2623
extern VisualID XVisualIDFromVisual(
2624
#if NeedFunctionPrototypes
2625
Visual* /* visual */
2629
/* multithread routines */
2631
extern Status XInitThreads(
2632
#if NeedFunctionPrototypes
2637
extern void XLockDisplay(
2638
#if NeedFunctionPrototypes
2639
Display* /* display */
2643
extern void XUnlockDisplay(
2644
#if NeedFunctionPrototypes
2645
Display* /* display */
2649
/* routines for dealing with extensions */
2651
extern XExtCodes *XInitExtension(
2652
#if NeedFunctionPrototypes
2653
Display* /* display */,
2654
_Xconst char* /* name */
2658
extern XExtCodes *XAddExtension(
2659
#if NeedFunctionPrototypes
2660
Display* /* display */
2663
extern XExtData *XFindOnExtensionList(
2664
#if NeedFunctionPrototypes
2665
XExtData** /* structure */,
2669
extern XExtData **XEHeadOfExtensionList(
2670
#if NeedFunctionPrototypes
2671
XEDataObject /* object */
2675
/* these are routines for which there are also macros */
2676
extern Window XRootWindow(
2677
#if NeedFunctionPrototypes
2678
Display* /* display */,
2679
int /* screen_number */
2682
extern Window XDefaultRootWindow(
2683
#if NeedFunctionPrototypes
2684
Display* /* display */
2687
extern Window XRootWindowOfScreen(
2688
#if NeedFunctionPrototypes
2689
Screen* /* screen */
2692
extern Visual *XDefaultVisual(
2693
#if NeedFunctionPrototypes
2694
Display* /* display */,
2695
int /* screen_number */
2698
extern Visual *XDefaultVisualOfScreen(
2699
#if NeedFunctionPrototypes
2700
Screen* /* screen */
2703
extern GC XDefaultGC(
2704
#if NeedFunctionPrototypes
2705
Display* /* display */,
2706
int /* screen_number */
2709
extern GC XDefaultGCOfScreen(
2710
#if NeedFunctionPrototypes
2711
Screen* /* screen */
2714
extern unsigned long XBlackPixel(
2715
#if NeedFunctionPrototypes
2716
Display* /* display */,
2717
int /* screen_number */
2720
extern unsigned long XWhitePixel(
2721
#if NeedFunctionPrototypes
2722
Display* /* display */,
2723
int /* screen_number */
2726
extern unsigned long XAllPlanes(
2727
#if NeedFunctionPrototypes
2731
extern unsigned long XBlackPixelOfScreen(
2732
#if NeedFunctionPrototypes
2733
Screen* /* screen */
2736
extern unsigned long XWhitePixelOfScreen(
2737
#if NeedFunctionPrototypes
2738
Screen* /* screen */
2741
extern unsigned long XNextRequest(
2742
#if NeedFunctionPrototypes
2743
Display* /* display */
2746
extern unsigned long XLastKnownRequestProcessed(
2747
#if NeedFunctionPrototypes
2748
Display* /* display */
2751
extern char *XServerVendor(
2752
#if NeedFunctionPrototypes
2753
Display* /* display */
2756
extern char *XDisplayString(
2757
#if NeedFunctionPrototypes
2758
Display* /* display */
2761
extern Colormap XDefaultColormap(
2762
#if NeedFunctionPrototypes
2763
Display* /* display */,
2764
int /* screen_number */
2767
extern Colormap XDefaultColormapOfScreen(
2768
#if NeedFunctionPrototypes
2769
Screen* /* screen */
2772
extern Display *XDisplayOfScreen(
2773
#if NeedFunctionPrototypes
2774
Screen* /* screen */
2777
extern Screen *XScreenOfDisplay(
2778
#if NeedFunctionPrototypes
2779
Display* /* display */,
2780
int /* screen_number */
2783
extern Screen *XDefaultScreenOfDisplay(
2784
#if NeedFunctionPrototypes
2785
Display* /* display */
2788
extern long XEventMaskOfScreen(
2789
#if NeedFunctionPrototypes
2790
Screen* /* screen */
2794
extern int XScreenNumberOfScreen(
2795
#if NeedFunctionPrototypes
2796
Screen* /* screen */
2800
typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */
2801
#if NeedFunctionPrototypes
2802
Display* /* display */,
2803
XErrorEvent* /* error_event */
2807
extern XErrorHandler XSetErrorHandler (
2808
#if NeedFunctionPrototypes
2809
XErrorHandler /* handler */
2814
typedef int (*XIOErrorHandler) ( /* WARNING, this type not in Xlib spec */
2815
#if NeedFunctionPrototypes
2816
Display* /* display */
2820
extern XIOErrorHandler XSetIOErrorHandler (
2821
#if NeedFunctionPrototypes
2822
XIOErrorHandler /* handler */
2826
extern XPixmapFormatValues *XListPixmapFormats(
2827
#if NeedFunctionPrototypes
2828
Display* /* display */,
2829
int* /* count_return */
2832
extern int *XListDepths(
2833
#if NeedFunctionPrototypes
2834
Display* /* display */,
2835
int /* screen_number */,
2836
int* /* count_return */
2840
/* ICCCM routines for things that don't require special include files; */
2841
/* other declarations are given in Xutil.h */
2842
extern Status XReconfigureWMWindow(
2843
#if NeedFunctionPrototypes
2844
Display* /* display */,
2846
int /* screen_number */,
2847
unsigned int /* mask */,
2848
XWindowChanges* /* changes */
2852
extern Status XGetWMProtocols(
2853
#if NeedFunctionPrototypes
2854
Display* /* display */,
2856
Atom** /* protocols_return */,
2857
int* /* count_return */
2860
extern Status XSetWMProtocols(
2861
#if NeedFunctionPrototypes
2862
Display* /* display */,
2864
Atom* /* protocols */,
2868
extern Status XIconifyWindow(
2869
#if NeedFunctionPrototypes
2870
Display* /* display */,
2872
int /* screen_number */
2875
extern Status XWithdrawWindow(
2876
#if NeedFunctionPrototypes
2877
Display* /* display */,
2879
int /* screen_number */
2882
extern Status XGetCommand(
2883
#if NeedFunctionPrototypes
2884
Display* /* display */,
2886
char*** /* argv_return */,
2887
int* /* argc_return */
2890
extern Status XGetWMColormapWindows(
2891
#if NeedFunctionPrototypes
2892
Display* /* display */,
2894
Window** /* windows_return */,
2895
int* /* count_return */
2898
extern Status XSetWMColormapWindows(
2899
#if NeedFunctionPrototypes
2900
Display* /* display */,
2902
Window* /* colormap_windows */,
2906
extern void XFreeStringList(
2907
#if NeedFunctionPrototypes
2911
extern int XSetTransientForHint(
2912
#if NeedFunctionPrototypes
2913
Display* /* display */,
2915
Window /* prop_window */
2919
/* The following are given in alphabetical order */
2921
extern int XActivateScreenSaver(
2922
#if NeedFunctionPrototypes
2923
Display* /* display */
2927
extern int XAddHost(
2928
#if NeedFunctionPrototypes
2929
Display* /* display */,
2930
XHostAddress* /* host */
2934
extern int XAddHosts(
2935
#if NeedFunctionPrototypes
2936
Display* /* display */,
2937
XHostAddress* /* hosts */,
2942
extern int XAddToExtensionList(
2943
#if NeedFunctionPrototypes
2944
struct _XExtData** /* structure */,
2945
XExtData* /* ext_data */
2949
extern int XAddToSaveSet(
2950
#if NeedFunctionPrototypes
2951
Display* /* display */,
2956
extern Status XAllocColor(
2957
#if NeedFunctionPrototypes
2958
Display* /* display */,
2959
Colormap /* colormap */,
2960
XColor* /* screen_in_out */
2964
extern Status XAllocColorCells(
2965
#if NeedFunctionPrototypes
2966
Display* /* display */,
2967
Colormap /* colormap */,
2969
unsigned long* /* plane_masks_return */,
2970
unsigned int /* nplanes */,
2971
unsigned long* /* pixels_return */,
2972
unsigned int /* npixels */
2976
extern Status XAllocColorPlanes(
2977
#if NeedFunctionPrototypes
2978
Display* /* display */,
2979
Colormap /* colormap */,
2981
unsigned long* /* pixels_return */,
2986
unsigned long* /* rmask_return */,
2987
unsigned long* /* gmask_return */,
2988
unsigned long* /* bmask_return */
2992
extern Status XAllocNamedColor(
2993
#if NeedFunctionPrototypes
2994
Display* /* display */,
2995
Colormap /* colormap */,
2996
_Xconst char* /* color_name */,
2997
XColor* /* screen_def_return */,
2998
XColor* /* exact_def_return */
3002
extern int XAllowEvents(
3003
#if NeedFunctionPrototypes
3004
Display* /* display */,
3005
int /* event_mode */,
3010
extern int XAutoRepeatOff(
3011
#if NeedFunctionPrototypes
3012
Display* /* display */
3016
extern int XAutoRepeatOn(
3017
#if NeedFunctionPrototypes
3018
Display* /* display */
3023
#if NeedFunctionPrototypes
3024
Display* /* display */,
3029
extern int XBitmapBitOrder(
3030
#if NeedFunctionPrototypes
3031
Display* /* display */
3035
extern int XBitmapPad(
3036
#if NeedFunctionPrototypes
3037
Display* /* display */
3041
extern int XBitmapUnit(
3042
#if NeedFunctionPrototypes
3043
Display* /* display */
3047
extern int XCellsOfScreen(
3048
#if NeedFunctionPrototypes
3049
Screen* /* screen */
3053
extern int XChangeActivePointerGrab(
3054
#if NeedFunctionPrototypes
3055
Display* /* display */,
3056
unsigned int /* event_mask */,
3057
Cursor /* cursor */,
3062
extern int XChangeGC(
3063
#if NeedFunctionPrototypes
3064
Display* /* display */,
3066
unsigned long /* valuemask */,
3067
XGCValues* /* values */
3071
extern int XChangeKeyboardControl(
3072
#if NeedFunctionPrototypes
3073
Display* /* display */,
3074
unsigned long /* value_mask */,
3075
XKeyboardControl* /* values */
3079
extern int XChangeKeyboardMapping(
3080
#if NeedFunctionPrototypes
3081
Display* /* display */,
3082
int /* first_keycode */,
3083
int /* keysyms_per_keycode */,
3084
KeySym* /* keysyms */,
3089
extern int XChangePointerControl(
3090
#if NeedFunctionPrototypes
3091
Display* /* display */,
3092
Bool /* do_accel */,
3093
Bool /* do_threshold */,
3094
int /* accel_numerator */,
3095
int /* accel_denominator */,
3100
extern int XChangeProperty(
3101
#if NeedFunctionPrototypes
3102
Display* /* display */,
3104
Atom /* property */,
3108
_Xconst unsigned char* /* data */,
3113
extern int XChangeSaveSet(
3114
#if NeedFunctionPrototypes
3115
Display* /* display */,
3117
int /* change_mode */
3121
extern int XChangeWindowAttributes(
3122
#if NeedFunctionPrototypes
3123
Display* /* display */,
3125
unsigned long /* valuemask */,
3126
XSetWindowAttributes* /* attributes */
3130
extern Bool XCheckIfEvent(
3131
#if NeedFunctionPrototypes
3132
Display* /* display */,
3133
XEvent* /* event_return */,
3135
#if NeedNestedPrototypes
3136
Display* /* display */,
3137
XEvent* /* event */,
3145
extern Bool XCheckMaskEvent(
3146
#if NeedFunctionPrototypes
3147
Display* /* display */,
3148
long /* event_mask */,
3149
XEvent* /* event_return */
3153
extern Bool XCheckTypedEvent(
3154
#if NeedFunctionPrototypes
3155
Display* /* display */,
3156
int /* event_type */,
3157
XEvent* /* event_return */
3161
extern Bool XCheckTypedWindowEvent(
3162
#if NeedFunctionPrototypes
3163
Display* /* display */,
3165
int /* event_type */,
3166
XEvent* /* event_return */
3170
extern Bool XCheckWindowEvent(
3171
#if NeedFunctionPrototypes
3172
Display* /* display */,
3174
long /* event_mask */,
3175
XEvent* /* event_return */
3179
extern int XCirculateSubwindows(
3180
#if NeedFunctionPrototypes
3181
Display* /* display */,
3187
extern int XCirculateSubwindowsDown(
3188
#if NeedFunctionPrototypes
3189
Display* /* display */,
3194
extern int XCirculateSubwindowsUp(
3195
#if NeedFunctionPrototypes
3196
Display* /* display */,
3201
extern int XClearArea(
3202
#if NeedFunctionPrototypes
3203
Display* /* display */,
3207
unsigned int /* width */,
3208
unsigned int /* height */,
3209
Bool /* exposures */
3213
extern int XClearWindow(
3214
#if NeedFunctionPrototypes
3215
Display* /* display */,
3220
extern int XCloseDisplay(
3221
#if NeedFunctionPrototypes
3222
Display* /* display */
3226
extern int XConfigureWindow(
3227
#if NeedFunctionPrototypes
3228
Display* /* display */,
3230
unsigned int /* value_mask */,
3231
XWindowChanges* /* values */
3235
extern int XConnectionNumber(
3236
#if NeedFunctionPrototypes
3237
Display* /* display */
3241
extern int XConvertSelection(
3242
#if NeedFunctionPrototypes
3243
Display* /* display */,
3244
Atom /* selection */,
3246
Atom /* property */,
3247
Window /* requestor */,
3252
extern int XCopyArea(
3253
#if NeedFunctionPrototypes
3254
Display* /* display */,
3256
Drawable /* dest */,
3260
unsigned int /* width */,
3261
unsigned int /* height */,
3268
#if NeedFunctionPrototypes
3269
Display* /* display */,
3271
unsigned long /* valuemask */,
3276
extern int XCopyPlane(
3277
#if NeedFunctionPrototypes
3278
Display* /* display */,
3280
Drawable /* dest */,
3284
unsigned int /* width */,
3285
unsigned int /* height */,
3288
unsigned long /* plane */
3292
extern int XDefaultDepth(
3293
#if NeedFunctionPrototypes
3294
Display* /* display */,
3295
int /* screen_number */
3299
extern int XDefaultDepthOfScreen(
3300
#if NeedFunctionPrototypes
3301
Screen* /* screen */
3305
extern int XDefaultScreen(
3306
#if NeedFunctionPrototypes
3307
Display* /* display */
3311
extern int XDefineCursor(
3312
#if NeedFunctionPrototypes
3313
Display* /* display */,
3319
extern int XDeleteProperty(
3320
#if NeedFunctionPrototypes
3321
Display* /* display */,
3327
extern int XDestroyWindow(
3328
#if NeedFunctionPrototypes
3329
Display* /* display */,
3334
extern int XDestroySubwindows(
3335
#if NeedFunctionPrototypes
3336
Display* /* display */,
3341
extern int XDoesBackingStore(
3342
#if NeedFunctionPrototypes
3343
Screen* /* screen */
3347
extern Bool XDoesSaveUnders(
3348
#if NeedFunctionPrototypes
3349
Screen* /* screen */
3353
extern int XDisableAccessControl(
3354
#if NeedFunctionPrototypes
3355
Display* /* display */
3360
extern int XDisplayCells(
3361
#if NeedFunctionPrototypes
3362
Display* /* display */,
3363
int /* screen_number */
3367
extern int XDisplayHeight(
3368
#if NeedFunctionPrototypes
3369
Display* /* display */,
3370
int /* screen_number */
3374
extern int XDisplayHeightMM(
3375
#if NeedFunctionPrototypes
3376
Display* /* display */,
3377
int /* screen_number */
3381
extern int XDisplayKeycodes(
3382
#if NeedFunctionPrototypes
3383
Display* /* display */,
3384
int* /* min_keycodes_return */,
3385
int* /* max_keycodes_return */
3389
extern int XDisplayPlanes(
3390
#if NeedFunctionPrototypes
3391
Display* /* display */,
3392
int /* screen_number */
3396
extern int XDisplayWidth(
3397
#if NeedFunctionPrototypes
3398
Display* /* display */,
3399
int /* screen_number */
3403
extern int XDisplayWidthMM(
3404
#if NeedFunctionPrototypes
3405
Display* /* display */,
3406
int /* screen_number */
3410
extern int XDrawArc(
3411
#if NeedFunctionPrototypes
3412
Display* /* display */,
3417
unsigned int /* width */,
3418
unsigned int /* height */,
3424
extern int XDrawArcs(
3425
#if NeedFunctionPrototypes
3426
Display* /* display */,
3434
extern int XDrawImageString(
3435
#if NeedFunctionPrototypes
3436
Display* /* display */,
3441
_Xconst char* /* string */,
3446
extern int XDrawImageString16(
3447
#if NeedFunctionPrototypes
3448
Display* /* display */,
3453
_Xconst XChar2b* /* string */,
3458
extern int XDrawLine(
3459
#if NeedFunctionPrototypes
3460
Display* /* display */,
3470
extern int XDrawLines(
3471
#if NeedFunctionPrototypes
3472
Display* /* display */,
3475
XPoint* /* points */,
3481
extern int XDrawPoint(
3482
#if NeedFunctionPrototypes
3483
Display* /* display */,
3491
extern int XDrawPoints(
3492
#if NeedFunctionPrototypes
3493
Display* /* display */,
3496
XPoint* /* points */,
3502
extern int XDrawRectangle(
3503
#if NeedFunctionPrototypes
3504
Display* /* display */,
3509
unsigned int /* width */,
3510
unsigned int /* height */
3514
extern int XDrawRectangles(
3515
#if NeedFunctionPrototypes
3516
Display* /* display */,
3519
XRectangle* /* rectangles */,
3520
int /* nrectangles */
3524
extern int XDrawSegments(
3525
#if NeedFunctionPrototypes
3526
Display* /* display */,
3529
XSegment* /* segments */,
3534
extern int XDrawString(
3535
#if NeedFunctionPrototypes
3536
Display* /* display */,
3541
_Xconst char* /* string */,
3546
extern int XDrawString16(
3547
#if NeedFunctionPrototypes
3548
Display* /* display */,
3553
_Xconst XChar2b* /* string */,
3558
extern int XDrawText(
3559
#if NeedFunctionPrototypes
3560
Display* /* display */,
3565
XTextItem* /* items */,
3570
extern int XDrawText16(
3571
#if NeedFunctionPrototypes
3572
Display* /* display */,
3577
XTextItem16* /* items */,
3582
extern int XEnableAccessControl(
3583
#if NeedFunctionPrototypes
3584
Display* /* display */
3588
extern int XEventsQueued(
3589
#if NeedFunctionPrototypes
3590
Display* /* display */,
3595
extern Status XFetchName(
3596
#if NeedFunctionPrototypes
3597
Display* /* display */,
3599
char** /* window_name_return */
3603
extern int XFillArc(
3604
#if NeedFunctionPrototypes
3605
Display* /* display */,
3610
unsigned int /* width */,
3611
unsigned int /* height */,
3617
extern int XFillArcs(
3618
#if NeedFunctionPrototypes
3619
Display* /* display */,
3627
extern int XFillPolygon(
3628
#if NeedFunctionPrototypes
3629
Display* /* display */,
3632
XPoint* /* points */,
3639
extern int XFillRectangle(
3640
#if NeedFunctionPrototypes
3641
Display* /* display */,
3646
unsigned int /* width */,
3647
unsigned int /* height */
3651
extern int XFillRectangles(
3652
#if NeedFunctionPrototypes
3653
Display* /* display */,
3656
XRectangle* /* rectangles */,
3657
int /* nrectangles */
3662
#if NeedFunctionPrototypes
3663
Display* /* display */
3667
extern int XForceScreenSaver(
3668
#if NeedFunctionPrototypes
3669
Display* /* display */,
3675
#if NeedFunctionPrototypes
3680
extern int XFreeColormap(
3681
#if NeedFunctionPrototypes
3682
Display* /* display */,
3683
Colormap /* colormap */
3687
extern int XFreeColors(
3688
#if NeedFunctionPrototypes
3689
Display* /* display */,
3690
Colormap /* colormap */,
3691
unsigned long* /* pixels */,
3693
unsigned long /* planes */
3697
extern int XFreeCursor(
3698
#if NeedFunctionPrototypes
3699
Display* /* display */,
3704
extern int XFreeExtensionList(
3705
#if NeedFunctionPrototypes
3710
extern int XFreeFont(
3711
#if NeedFunctionPrototypes
3712
Display* /* display */,
3713
XFontStruct* /* font_struct */
3717
extern int XFreeFontInfo(
3718
#if NeedFunctionPrototypes
3720
XFontStruct* /* free_info */,
3721
int /* actual_count */
3725
extern int XFreeFontNames(
3726
#if NeedFunctionPrototypes
3731
extern int XFreeFontPath(
3732
#if NeedFunctionPrototypes
3738
#if NeedFunctionPrototypes
3739
Display* /* display */,
3744
extern int XFreeModifiermap(
3745
#if NeedFunctionPrototypes
3746
XModifierKeymap* /* modmap */
3750
extern int XFreePixmap(
3751
#if NeedFunctionPrototypes
3752
Display* /* display */,
3757
extern int XGeometry(
3758
#if NeedFunctionPrototypes
3759
Display* /* display */,
3761
_Xconst char* /* position */,
3762
_Xconst char* /* default_position */,
3763
unsigned int /* bwidth */,
3764
unsigned int /* fwidth */,
3765
unsigned int /* fheight */,
3768
int* /* x_return */,
3769
int* /* y_return */,
3770
int* /* width_return */,
3771
int* /* height_return */
3775
extern int XGetErrorDatabaseText(
3776
#if NeedFunctionPrototypes
3777
Display* /* display */,
3778
_Xconst char* /* name */,
3779
_Xconst char* /* message */,
3780
_Xconst char* /* default_string */,
3781
char* /* buffer_return */,
3786
extern int XGetErrorText(
3787
#if NeedFunctionPrototypes
3788
Display* /* display */,
3790
char* /* buffer_return */,
3795
extern Bool XGetFontProperty(
3796
#if NeedFunctionPrototypes
3797
XFontStruct* /* font_struct */,
3799
unsigned long* /* value_return */
3803
extern Status XGetGCValues(
3804
#if NeedFunctionPrototypes
3805
Display* /* display */,
3807
unsigned long /* valuemask */,
3808
XGCValues* /* values_return */
3812
extern Status XGetGeometry(
3813
#if NeedFunctionPrototypes
3814
Display* /* display */,
3816
Window* /* root_return */,
3817
int* /* x_return */,
3818
int* /* y_return */,
3819
unsigned int* /* width_return */,
3820
unsigned int* /* height_return */,
3821
unsigned int* /* border_width_return */,
3822
unsigned int* /* depth_return */
3826
extern Status XGetIconName(
3827
#if NeedFunctionPrototypes
3828
Display* /* display */,
3830
char** /* icon_name_return */
3834
extern int XGetInputFocus(
3835
#if NeedFunctionPrototypes
3836
Display* /* display */,
3837
Window* /* focus_return */,
3838
int* /* revert_to_return */
3842
extern int XGetKeyboardControl(
3843
#if NeedFunctionPrototypes
3844
Display* /* display */,
3845
XKeyboardState* /* values_return */
3849
extern int XGetPointerControl(
3850
#if NeedFunctionPrototypes
3851
Display* /* display */,
3852
int* /* accel_numerator_return */,
3853
int* /* accel_denominator_return */,
3854
int* /* threshold_return */
3858
extern int XGetPointerMapping(
3859
#if NeedFunctionPrototypes
3860
Display* /* display */,
3861
unsigned char* /* map_return */,
3866
extern int XGetScreenSaver(
3867
#if NeedFunctionPrototypes
3868
Display* /* display */,
3869
int* /* timeout_return */,
3870
int* /* interval_return */,
3871
int* /* prefer_blanking_return */,
3872
int* /* allow_exposures_return */
3876
extern Status XGetTransientForHint(
3877
#if NeedFunctionPrototypes
3878
Display* /* display */,
3880
Window* /* prop_window_return */
3884
extern int XGetWindowProperty(
3885
#if NeedFunctionPrototypes
3886
Display* /* display */,
3888
Atom /* property */,
3889
long /* long_offset */,
3890
long /* long_length */,
3892
Atom /* req_type */,
3893
Atom* /* actual_type_return */,
3894
int* /* actual_format_return */,
3895
unsigned long* /* nitems_return */,
3896
unsigned long* /* bytes_after_return */,
3897
unsigned char** /* prop_return */
3901
extern Status XGetWindowAttributes(
3902
#if NeedFunctionPrototypes
3903
Display* /* display */,
3905
XWindowAttributes* /* window_attributes_return */
3909
extern int XGrabButton(
3910
#if NeedFunctionPrototypes
3911
Display* /* display */,
3912
unsigned int /* button */,
3913
unsigned int /* modifiers */,
3914
Window /* grab_window */,
3915
Bool /* owner_events */,
3916
unsigned int /* event_mask */,
3917
int /* pointer_mode */,
3918
int /* keyboard_mode */,
3919
Window /* confine_to */,
3924
extern int XGrabKey(
3925
#if NeedFunctionPrototypes
3926
Display* /* display */,
3928
unsigned int /* modifiers */,
3929
Window /* grab_window */,
3930
Bool /* owner_events */,
3931
int /* pointer_mode */,
3932
int /* keyboard_mode */
3936
extern int XGrabKeyboard(
3937
#if NeedFunctionPrototypes
3938
Display* /* display */,
3939
Window /* grab_window */,
3940
Bool /* owner_events */,
3941
int /* pointer_mode */,
3942
int /* keyboard_mode */,
3947
extern int XGrabPointer(
3948
#if NeedFunctionPrototypes
3949
Display* /* display */,
3950
Window /* grab_window */,
3951
Bool /* owner_events */,
3952
unsigned int /* event_mask */,
3953
int /* pointer_mode */,
3954
int /* keyboard_mode */,
3955
Window /* confine_to */,
3956
Cursor /* cursor */,
3961
extern int XGrabServer(
3962
#if NeedFunctionPrototypes
3963
Display* /* display */
3967
extern int XHeightMMOfScreen(
3968
#if NeedFunctionPrototypes
3969
Screen* /* screen */
3973
extern int XHeightOfScreen(
3974
#if NeedFunctionPrototypes
3975
Screen* /* screen */
3979
extern int XIfEvent(
3980
#if NeedFunctionPrototypes
3981
Display* /* display */,
3982
XEvent* /* event_return */,
3984
#if NeedNestedPrototypes
3985
Display* /* display */,
3986
XEvent* /* event */,
3994
extern int XImageByteOrder(
3995
#if NeedFunctionPrototypes
3996
Display* /* display */
4000
extern int XInstallColormap(
4001
#if NeedFunctionPrototypes
4002
Display* /* display */,
4003
Colormap /* colormap */
4007
extern KeyCode XKeysymToKeycode(
4008
#if NeedFunctionPrototypes
4009
Display* /* display */,
4014
extern int XKillClient(
4015
#if NeedFunctionPrototypes
4016
Display* /* display */,
4021
extern Status XLookupColor(
4022
#if NeedFunctionPrototypes
4023
Display* /* display */,
4024
Colormap /* colormap */,
4025
_Xconst char* /* color_name */,
4026
XColor* /* exact_def_return */,
4027
XColor* /* screen_def_return */
4031
extern int XLowerWindow(
4032
#if NeedFunctionPrototypes
4033
Display* /* display */,
4038
extern int XMapRaised(
4039
#if NeedFunctionPrototypes
4040
Display* /* display */,
4045
extern int XMapSubwindows(
4046
#if NeedFunctionPrototypes
4047
Display* /* display */,
4052
extern int XMapWindow(
4053
#if NeedFunctionPrototypes
4054
Display* /* display */,
4059
extern int XMaskEvent(
4060
#if NeedFunctionPrototypes
4061
Display* /* display */,
4062
long /* event_mask */,
4063
XEvent* /* event_return */
4067
extern int XMaxCmapsOfScreen(
4068
#if NeedFunctionPrototypes
4069
Screen* /* screen */
4073
extern int XMinCmapsOfScreen(
4074
#if NeedFunctionPrototypes
4075
Screen* /* screen */
4079
extern int XMoveResizeWindow(
4080
#if NeedFunctionPrototypes
4081
Display* /* display */,
4085
unsigned int /* width */,
4086
unsigned int /* height */
4090
extern int XMoveWindow(
4091
#if NeedFunctionPrototypes
4092
Display* /* display */,
4099
extern int XNextEvent(
4100
#if NeedFunctionPrototypes
4101
Display* /* display */,
4102
XEvent* /* event_return */
4107
#if NeedFunctionPrototypes
4108
Display* /* display */
4112
extern Status XParseColor(
4113
#if NeedFunctionPrototypes
4114
Display* /* display */,
4115
Colormap /* colormap */,
4116
_Xconst char* /* spec */,
4117
XColor* /* exact_def_return */
4121
extern int XParseGeometry(
4122
#if NeedFunctionPrototypes
4123
_Xconst char* /* parsestring */,
4124
int* /* x_return */,
4125
int* /* y_return */,
4126
unsigned int* /* width_return */,
4127
unsigned int* /* height_return */
4131
extern int XPeekEvent(
4132
#if NeedFunctionPrototypes
4133
Display* /* display */,
4134
XEvent* /* event_return */
4138
extern int XPeekIfEvent(
4139
#if NeedFunctionPrototypes
4140
Display* /* display */,
4141
XEvent* /* event_return */,
4143
#if NeedNestedPrototypes
4144
Display* /* display */,
4145
XEvent* /* event */,
4153
extern int XPending(
4154
#if NeedFunctionPrototypes
4155
Display* /* display */
4159
extern int XPlanesOfScreen(
4160
#if NeedFunctionPrototypes
4161
Screen* /* screen */
4166
extern int XProtocolRevision(
4167
#if NeedFunctionPrototypes
4168
Display* /* display */
4172
extern int XProtocolVersion(
4173
#if NeedFunctionPrototypes
4174
Display* /* display */
4179
extern int XPutBackEvent(
4180
#if NeedFunctionPrototypes
4181
Display* /* display */,
4186
extern int XPutImage(
4187
#if NeedFunctionPrototypes
4188
Display* /* display */,
4191
XImage* /* image */,
4196
unsigned int /* width */,
4197
unsigned int /* height */
4201
extern int XQLength(
4202
#if NeedFunctionPrototypes
4203
Display* /* display */
4207
extern Status XQueryBestCursor(
4208
#if NeedFunctionPrototypes
4209
Display* /* display */,
4211
unsigned int /* width */,
4212
unsigned int /* height */,
4213
unsigned int* /* width_return */,
4214
unsigned int* /* height_return */
4218
extern Status XQueryBestSize(
4219
#if NeedFunctionPrototypes
4220
Display* /* display */,
4222
Drawable /* which_screen */,
4223
unsigned int /* width */,
4224
unsigned int /* height */,
4225
unsigned int* /* width_return */,
4226
unsigned int* /* height_return */
4230
extern Status XQueryBestStipple(
4231
#if NeedFunctionPrototypes
4232
Display* /* display */,
4233
Drawable /* which_screen */,
4234
unsigned int /* width */,
4235
unsigned int /* height */,
4236
unsigned int* /* width_return */,
4237
unsigned int* /* height_return */
4241
extern Status XQueryBestTile(
4242
#if NeedFunctionPrototypes
4243
Display* /* display */,
4244
Drawable /* which_screen */,
4245
unsigned int /* width */,
4246
unsigned int /* height */,
4247
unsigned int* /* width_return */,
4248
unsigned int* /* height_return */
4252
extern int XQueryColor(
4253
#if NeedFunctionPrototypes
4254
Display* /* display */,
4255
Colormap /* colormap */,
4256
XColor* /* def_in_out */
4260
extern int XQueryColors(
4261
#if NeedFunctionPrototypes
4262
Display* /* display */,
4263
Colormap /* colormap */,
4264
XColor* /* defs_in_out */,
4269
extern Bool XQueryExtension(
4270
#if NeedFunctionPrototypes
4271
Display* /* display */,
4272
_Xconst char* /* name */,
4273
int* /* major_opcode_return */,
4274
int* /* first_event_return */,
4275
int* /* first_error_return */
4279
extern int XQueryKeymap(
4280
#if NeedFunctionPrototypes
4281
Display* /* display */,
4282
char [32] /* keys_return */
4286
extern Bool XQueryPointer(
4287
#if NeedFunctionPrototypes
4288
Display* /* display */,
4290
Window* /* root_return */,
4291
Window* /* child_return */,
4292
int* /* root_x_return */,
4293
int* /* root_y_return */,
4294
int* /* win_x_return */,
4295
int* /* win_y_return */,
4296
unsigned int* /* mask_return */
4300
extern int XQueryTextExtents(
4301
#if NeedFunctionPrototypes
4302
Display* /* display */,
4304
_Xconst char* /* string */,
4306
int* /* direction_return */,
4307
int* /* font_ascent_return */,
4308
int* /* font_descent_return */,
4309
XCharStruct* /* overall_return */
4313
extern int XQueryTextExtents16(
4314
#if NeedFunctionPrototypes
4315
Display* /* display */,
4317
_Xconst XChar2b* /* string */,
4319
int* /* direction_return */,
4320
int* /* font_ascent_return */,
4321
int* /* font_descent_return */,
4322
XCharStruct* /* overall_return */
4326
extern Status XQueryTree(
4327
#if NeedFunctionPrototypes
4328
Display* /* display */,
4330
Window* /* root_return */,
4331
Window* /* parent_return */,
4332
Window** /* children_return */,
4333
unsigned int* /* nchildren_return */
4337
extern int XRaiseWindow(
4338
#if NeedFunctionPrototypes
4339
Display* /* display */,
4344
extern int XReadBitmapFile(
4345
#if NeedFunctionPrototypes
4346
Display* /* display */,
4348
_Xconst char* /* filename */,
4349
unsigned int* /* width_return */,
4350
unsigned int* /* height_return */,
4351
Pixmap* /* bitmap_return */,
4352
int* /* x_hot_return */,
4353
int* /* y_hot_return */
4357
extern int XReadBitmapFileData(
4358
#if NeedFunctionPrototypes
4359
_Xconst char* /* filename */,
4360
unsigned int* /* width_return */,
4361
unsigned int* /* height_return */,
4362
unsigned char** /* data_return */,
4363
int* /* x_hot_return */,
4364
int* /* y_hot_return */
4368
extern int XRebindKeysym(
4369
#if NeedFunctionPrototypes
4370
Display* /* display */,
4371
KeySym /* keysym */,
4373
int /* mod_count */,
4374
_Xconst unsigned char* /* string */,
4375
int /* bytes_string */
4379
extern int XRecolorCursor(
4380
#if NeedFunctionPrototypes
4381
Display* /* display */,
4382
Cursor /* cursor */,
4383
XColor* /* foreground_color */,
4384
XColor* /* background_color */
4388
extern int XRefreshKeyboardMapping(
4389
#if NeedFunctionPrototypes
4390
XMappingEvent* /* event_map */
4394
extern int XRemoveFromSaveSet(
4395
#if NeedFunctionPrototypes
4396
Display* /* display */,
4401
extern int XRemoveHost(
4402
#if NeedFunctionPrototypes
4403
Display* /* display */,
4404
XHostAddress* /* host */
4408
extern int XRemoveHosts(
4409
#if NeedFunctionPrototypes
4410
Display* /* display */,
4411
XHostAddress* /* hosts */,
4416
extern int XReparentWindow(
4417
#if NeedFunctionPrototypes
4418
Display* /* display */,
4420
Window /* parent */,
4426
extern int XResetScreenSaver(
4427
#if NeedFunctionPrototypes
4428
Display* /* display */
4432
extern int XResizeWindow(
4433
#if NeedFunctionPrototypes
4434
Display* /* display */,
4436
unsigned int /* width */,
4437
unsigned int /* height */
4441
extern int XRestackWindows(
4442
#if NeedFunctionPrototypes
4443
Display* /* display */,
4444
Window* /* windows */,
4449
extern int XRotateBuffers(
4450
#if NeedFunctionPrototypes
4451
Display* /* display */,
4456
extern int XRotateWindowProperties(
4457
#if NeedFunctionPrototypes
4458
Display* /* display */,
4460
Atom* /* properties */,
4462
int /* npositions */
4466
extern int XScreenCount(
4467
#if NeedFunctionPrototypes
4468
Display* /* display */
4472
extern int XSelectInput(
4473
#if NeedFunctionPrototypes
4474
Display* /* display */,
4476
long /* event_mask */
4480
extern Status XSendEvent(
4481
#if NeedFunctionPrototypes
4482
Display* /* display */,
4484
Bool /* propagate */,
4485
long /* event_mask */,
4486
XEvent* /* event_send */
4490
extern int XSetAccessControl(
4491
#if NeedFunctionPrototypes
4492
Display* /* display */,
4497
extern int XSetArcMode(
4498
#if NeedFunctionPrototypes
4499
Display* /* display */,
4505
extern int XSetBackground(
4506
#if NeedFunctionPrototypes
4507
Display* /* display */,
4509
unsigned long /* background */
4513
extern int XSetClipMask(
4514
#if NeedFunctionPrototypes
4515
Display* /* display */,
4521
extern int XSetClipOrigin(
4522
#if NeedFunctionPrototypes
4523
Display* /* display */,
4525
int /* clip_x_origin */,
4526
int /* clip_y_origin */
4530
extern int XSetClipRectangles(
4531
#if NeedFunctionPrototypes
4532
Display* /* display */,
4534
int /* clip_x_origin */,
4535
int /* clip_y_origin */,
4536
XRectangle* /* rectangles */,
4542
extern int XSetCloseDownMode(
4543
#if NeedFunctionPrototypes
4544
Display* /* display */,
4545
int /* close_mode */
4549
extern int XSetCommand(
4550
#if NeedFunctionPrototypes
4551
Display* /* display */,
4558
extern int XSetDashes(
4559
#if NeedFunctionPrototypes
4560
Display* /* display */,
4562
int /* dash_offset */,
4563
_Xconst char* /* dash_list */,
4568
extern int XSetFillRule(
4569
#if NeedFunctionPrototypes
4570
Display* /* display */,
4576
extern int XSetFillStyle(
4577
#if NeedFunctionPrototypes
4578
Display* /* display */,
4580
int /* fill_style */
4584
extern int XSetFont(
4585
#if NeedFunctionPrototypes
4586
Display* /* display */,
4592
extern int XSetFontPath(
4593
#if NeedFunctionPrototypes
4594
Display* /* display */,
4595
char** /* directories */,
4600
extern int XSetForeground(
4601
#if NeedFunctionPrototypes
4602
Display* /* display */,
4604
unsigned long /* foreground */
4608
extern int XSetFunction(
4609
#if NeedFunctionPrototypes
4610
Display* /* display */,
4616
extern int XSetGraphicsExposures(
4617
#if NeedFunctionPrototypes
4618
Display* /* display */,
4620
Bool /* graphics_exposures */
4624
extern int XSetIconName(
4625
#if NeedFunctionPrototypes
4626
Display* /* display */,
4628
_Xconst char* /* icon_name */
4632
extern int XSetInputFocus(
4633
#if NeedFunctionPrototypes
4634
Display* /* display */,
4636
int /* revert_to */,
4641
extern int XSetLineAttributes(
4642
#if NeedFunctionPrototypes
4643
Display* /* display */,
4645
unsigned int /* line_width */,
4646
int /* line_style */,
4647
int /* cap_style */,
4648
int /* join_style */
4652
extern int XSetModifierMapping(
4653
#if NeedFunctionPrototypes
4654
Display* /* display */,
4655
XModifierKeymap* /* modmap */
4659
extern int XSetPlaneMask(
4660
#if NeedFunctionPrototypes
4661
Display* /* display */,
4663
unsigned long /* plane_mask */
4667
extern int XSetPointerMapping(
4668
#if NeedFunctionPrototypes
4669
Display* /* display */,
4670
_Xconst unsigned char* /* map */,
4675
extern int XSetScreenSaver(
4676
#if NeedFunctionPrototypes
4677
Display* /* display */,
4680
int /* prefer_blanking */,
4681
int /* allow_exposures */
4685
extern int XSetSelectionOwner(
4686
#if NeedFunctionPrototypes
4687
Display* /* display */,
4688
Atom /* selection */,
4694
extern int XSetState(
4695
#if NeedFunctionPrototypes
4696
Display* /* display */,
4698
unsigned long /* foreground */,
4699
unsigned long /* background */,
4701
unsigned long /* plane_mask */
4705
extern int XSetStipple(
4706
#if NeedFunctionPrototypes
4707
Display* /* display */,
4709
Pixmap /* stipple */
4713
extern int XSetSubwindowMode(
4714
#if NeedFunctionPrototypes
4715
Display* /* display */,
4717
int /* subwindow_mode */
4721
extern int XSetTSOrigin(
4722
#if NeedFunctionPrototypes
4723
Display* /* display */,
4725
int /* ts_x_origin */,
4726
int /* ts_y_origin */
4730
extern int XSetTile(
4731
#if NeedFunctionPrototypes
4732
Display* /* display */,
4738
extern int XSetWindowBackground(
4739
#if NeedFunctionPrototypes
4740
Display* /* display */,
4742
unsigned long /* background_pixel */
4746
extern int XSetWindowBackgroundPixmap(
4747
#if NeedFunctionPrototypes
4748
Display* /* display */,
4750
Pixmap /* background_pixmap */
4754
extern int XSetWindowBorder(
4755
#if NeedFunctionPrototypes
4756
Display* /* display */,
4758
unsigned long /* border_pixel */
4762
extern int XSetWindowBorderPixmap(
4763
#if NeedFunctionPrototypes
4764
Display* /* display */,
4766
Pixmap /* border_pixmap */
4770
extern int XSetWindowBorderWidth(
4771
#if NeedFunctionPrototypes
4772
Display* /* display */,
4774
unsigned int /* width */
4778
extern int XSetWindowColormap(
4779
#if NeedFunctionPrototypes
4780
Display* /* display */,
4782
Colormap /* colormap */
4786
extern int XStoreBuffer(
4787
#if NeedFunctionPrototypes
4788
Display* /* display */,
4789
_Xconst char* /* bytes */,
4795
extern int XStoreBytes(
4796
#if NeedFunctionPrototypes
4797
Display* /* display */,
4798
_Xconst char* /* bytes */,
4803
extern int XStoreColor(
4804
#if NeedFunctionPrototypes
4805
Display* /* display */,
4806
Colormap /* colormap */,
4811
extern int XStoreColors(
4812
#if NeedFunctionPrototypes
4813
Display* /* display */,
4814
Colormap /* colormap */,
4815
XColor* /* color */,
4820
extern int XStoreName(
4821
#if NeedFunctionPrototypes
4822
Display* /* display */,
4824
_Xconst char* /* window_name */
4828
extern int XStoreNamedColor(
4829
#if NeedFunctionPrototypes
4830
Display* /* display */,
4831
Colormap /* colormap */,
4832
_Xconst char* /* color */,
4833
unsigned long /* pixel */,
4839
#if NeedFunctionPrototypes
4840
Display* /* display */,
4845
extern int XTextExtents(
4846
#if NeedFunctionPrototypes
4847
XFontStruct* /* font_struct */,
4848
_Xconst char* /* string */,
4850
int* /* direction_return */,
4851
int* /* font_ascent_return */,
4852
int* /* font_descent_return */,
4853
XCharStruct* /* overall_return */
4857
extern int XTextExtents16(
4858
#if NeedFunctionPrototypes
4859
XFontStruct* /* font_struct */,
4860
_Xconst XChar2b* /* string */,
4862
int* /* direction_return */,
4863
int* /* font_ascent_return */,
4864
int* /* font_descent_return */,
4865
XCharStruct* /* overall_return */
4869
extern int XTextWidth(
4870
#if NeedFunctionPrototypes
4871
XFontStruct* /* font_struct */,
4872
_Xconst char* /* string */,
4877
extern int XTextWidth16(
4878
#if NeedFunctionPrototypes
4879
XFontStruct* /* font_struct */,
4880
_Xconst XChar2b* /* string */,
4885
extern Bool XTranslateCoordinates(
4886
#if NeedFunctionPrototypes
4887
Display* /* display */,
4889
Window /* dest_w */,
4892
int* /* dest_x_return */,
4893
int* /* dest_y_return */,
4894
Window* /* child_return */
4898
extern int XUndefineCursor(
4899
#if NeedFunctionPrototypes
4900
Display* /* display */,
4905
extern int XUngrabButton(
4906
#if NeedFunctionPrototypes
4907
Display* /* display */,
4908
unsigned int /* button */,
4909
unsigned int /* modifiers */,
4910
Window /* grab_window */
4914
extern int XUngrabKey(
4915
#if NeedFunctionPrototypes
4916
Display* /* display */,
4918
unsigned int /* modifiers */,
4919
Window /* grab_window */
4923
extern int XUngrabKeyboard(
4924
#if NeedFunctionPrototypes
4925
Display* /* display */,
4930
extern int XUngrabPointer(
4931
#if NeedFunctionPrototypes
4932
Display* /* display */,
4937
extern int XUngrabServer(
4938
#if NeedFunctionPrototypes
4939
Display* /* display */
4943
extern int XUninstallColormap(
4944
#if NeedFunctionPrototypes
4945
Display* /* display */,
4946
Colormap /* colormap */
4950
extern int XUnloadFont(
4951
#if NeedFunctionPrototypes
4952
Display* /* display */,
4957
extern int XUnmapSubwindows(
4958
#if NeedFunctionPrototypes
4959
Display* /* display */,
4964
extern int XUnmapWindow(
4965
#if NeedFunctionPrototypes
4966
Display* /* display */,
4971
extern int XVendorRelease(
4972
#if NeedFunctionPrototypes
4973
Display* /* display */
4977
extern int XWarpPointer(
4978
#if NeedFunctionPrototypes
4979
Display* /* display */,
4981
Window /* dest_w */,
4984
unsigned int /* src_width */,
4985
unsigned int /* src_height */,
4991
extern int XWidthMMOfScreen(
4992
#if NeedFunctionPrototypes
4993
Screen* /* screen */
4997
extern int XWidthOfScreen(
4998
#if NeedFunctionPrototypes
4999
Screen* /* screen */
5003
extern int XWindowEvent(
5004
#if NeedFunctionPrototypes
5005
Display* /* display */,
5007
long /* event_mask */,
5008
XEvent* /* event_return */
5012
extern int XWriteBitmapFile(
5013
#if NeedFunctionPrototypes
5014
Display* /* display */,
5015
_Xconst char* /* filename */,
5016
Pixmap /* bitmap */,
5017
unsigned int /* width */,
5018
unsigned int /* height */,
5024
extern Bool XSupportsLocale (void);
5026
extern char *XSetLocaleModifiers(
5027
const char* /* modifier_list */
5031
#if NeedFunctionPrototypes
5032
Display* /* display */,
5033
struct _XrmHashBucketRec* /* rdb */,
5034
_Xconst char* /* res_name */,
5035
_Xconst char* /* res_class */
5039
extern Status XCloseOM(
5040
#if NeedFunctionPrototypes
5045
extern char *XSetOMValues(
5046
#if NeedVarargsPrototypes
5052
extern char *XGetOMValues(
5053
#if NeedVarargsPrototypes
5059
extern Display *XDisplayOfOM(
5060
#if NeedFunctionPrototypes
5065
extern char *XLocaleOfOM(
5066
#if NeedFunctionPrototypes
5071
extern XOC XCreateOC(
5072
#if NeedVarargsPrototypes
5078
extern void XDestroyOC(
5079
#if NeedFunctionPrototypes
5085
#if NeedFunctionPrototypes
5090
extern char *XSetOCValues(
5091
#if NeedVarargsPrototypes
5097
extern char *XGetOCValues(
5098
#if NeedVarargsPrototypes
5104
extern XFontSet XCreateFontSet(
5105
#if NeedFunctionPrototypes
5106
Display* /* display */,
5107
_Xconst char* /* base_font_name_list */,
5108
char*** /* missing_charset_list */,
5109
int* /* missing_charset_count */,
5110
char** /* def_string */
5114
extern void XFreeFontSet(
5115
#if NeedFunctionPrototypes
5116
Display* /* display */,
5117
XFontSet /* font_set */
5121
extern int XFontsOfFontSet(
5122
#if NeedFunctionPrototypes
5123
XFontSet /* font_set */,
5124
XFontStruct*** /* font_struct_list */,
5125
char*** /* font_name_list */
5129
extern char *XBaseFontNameListOfFontSet(
5130
#if NeedFunctionPrototypes
5131
XFontSet /* font_set */
5135
extern char *XLocaleOfFontSet(
5136
#if NeedFunctionPrototypes
5137
XFontSet /* font_set */
5141
extern Bool XContextDependentDrawing(
5142
#if NeedFunctionPrototypes
5143
XFontSet /* font_set */
5147
extern Bool XDirectionalDependentDrawing(
5148
#if NeedFunctionPrototypes
5149
XFontSet /* font_set */
5153
extern Bool XContextualDrawing(
5154
#if NeedFunctionPrototypes
5155
XFontSet /* font_set */
5159
extern XFontSetExtents *XExtentsOfFontSet(
5160
#if NeedFunctionPrototypes
5161
XFontSet /* font_set */
5165
extern int XmbTextEscapement(
5166
#if NeedFunctionPrototypes
5167
XFontSet /* font_set */,
5168
_Xconst char* /* text */,
5169
int /* bytes_text */
5173
extern int XwcTextEscapement(
5174
#if NeedFunctionPrototypes
5175
XFontSet /* font_set */,
5176
_Xconst wchar_t* /* text */,
5177
int /* num_wchars */
5181
extern int Xutf8TextEscapement(
5182
#if NeedFunctionPrototypes
5183
XFontSet /* font_set */,
5184
_Xconst char* /* text */,
5185
int /* bytes_text */
5189
extern int XmbTextExtents(
5190
#if NeedFunctionPrototypes
5191
XFontSet /* font_set */,
5192
_Xconst char* /* text */,
5193
int /* bytes_text */,
5194
XRectangle* /* overall_ink_return */,
5195
XRectangle* /* overall_logical_return */
5199
extern int XwcTextExtents(
5200
#if NeedFunctionPrototypes
5201
XFontSet /* font_set */,
5202
_Xconst wchar_t* /* text */,
5203
int /* num_wchars */,
5204
XRectangle* /* overall_ink_return */,
5205
XRectangle* /* overall_logical_return */
5209
extern int Xutf8TextExtents(
5210
#if NeedFunctionPrototypes
5211
XFontSet /* font_set */,
5212
_Xconst char* /* text */,
5213
int /* bytes_text */,
5214
XRectangle* /* overall_ink_return */,
5215
XRectangle* /* overall_logical_return */
5219
extern Status XmbTextPerCharExtents(
5220
#if NeedFunctionPrototypes
5221
XFontSet /* font_set */,
5222
_Xconst char* /* text */,
5223
int /* bytes_text */,
5224
XRectangle* /* ink_extents_buffer */,
5225
XRectangle* /* logical_extents_buffer */,
5226
int /* buffer_size */,
5227
int* /* num_chars */,
5228
XRectangle* /* overall_ink_return */,
5229
XRectangle* /* overall_logical_return */
5233
extern Status XwcTextPerCharExtents(
5234
#if NeedFunctionPrototypes
5235
XFontSet /* font_set */,
5236
_Xconst wchar_t* /* text */,
5237
int /* num_wchars */,
5238
XRectangle* /* ink_extents_buffer */,
5239
XRectangle* /* logical_extents_buffer */,
5240
int /* buffer_size */,
5241
int* /* num_chars */,
5242
XRectangle* /* overall_ink_return */,
5243
XRectangle* /* overall_logical_return */
5247
extern Status Xutf8TextPerCharExtents(
5248
#if NeedFunctionPrototypes
5249
XFontSet /* font_set */,
5250
_Xconst char* /* text */,
5251
int /* bytes_text */,
5252
XRectangle* /* ink_extents_buffer */,
5253
XRectangle* /* logical_extents_buffer */,
5254
int /* buffer_size */,
5255
int* /* num_chars */,
5256
XRectangle* /* overall_ink_return */,
5257
XRectangle* /* overall_logical_return */
5261
extern void XmbDrawText(
5262
#if NeedFunctionPrototypes
5263
Display* /* display */,
5268
XmbTextItem* /* text_items */,
5273
extern void XwcDrawText(
5274
#if NeedFunctionPrototypes
5275
Display* /* display */,
5280
XwcTextItem* /* text_items */,
5285
extern void Xutf8DrawText(
5286
#if NeedFunctionPrototypes
5287
Display* /* display */,
5292
XmbTextItem* /* text_items */,
5297
extern void XmbDrawString(
5298
#if NeedFunctionPrototypes
5299
Display* /* display */,
5301
XFontSet /* font_set */,
5305
_Xconst char* /* text */,
5306
int /* bytes_text */
5310
extern void XwcDrawString(
5311
#if NeedFunctionPrototypes
5312
Display* /* display */,
5314
XFontSet /* font_set */,
5318
_Xconst wchar_t* /* text */,
5319
int /* num_wchars */
5323
extern void Xutf8DrawString(
5324
#if NeedFunctionPrototypes
5325
Display* /* display */,
5327
XFontSet /* font_set */,
5331
_Xconst char* /* text */,
5332
int /* bytes_text */
5336
extern void XmbDrawImageString(
5337
#if NeedFunctionPrototypes
5338
Display* /* display */,
5340
XFontSet /* font_set */,
5344
_Xconst char* /* text */,
5345
int /* bytes_text */
5349
extern void XwcDrawImageString(
5350
#if NeedFunctionPrototypes
5351
Display* /* display */,
5353
XFontSet /* font_set */,
5357
_Xconst wchar_t* /* text */,
5358
int /* num_wchars */
5362
extern void Xutf8DrawImageString(
5363
#if NeedFunctionPrototypes
5364
Display* /* display */,
5366
XFontSet /* font_set */,
5370
_Xconst char* /* text */,
5371
int /* bytes_text */
5376
#if NeedFunctionPrototypes
5378
struct _XrmHashBucketRec* /* rdb */,
5379
char* /* res_name */,
5380
char* /* res_class */
5384
extern Status XCloseIM(
5385
#if NeedFunctionPrototypes
5390
extern char *XGetIMValues(
5391
#if NeedVarargsPrototypes
5396
extern char *XSetIMValues(
5397
#if NeedVarargsPrototypes
5402
extern Display *XDisplayOfIM(
5403
#if NeedFunctionPrototypes
5408
extern char *XLocaleOfIM(
5409
#if NeedFunctionPrototypes
5414
extern XIC XCreateIC(
5415
#if NeedVarargsPrototypes
5420
extern void XDestroyIC(
5421
#if NeedFunctionPrototypes
5426
extern void XSetICFocus(
5427
#if NeedFunctionPrototypes
5432
extern void XUnsetICFocus(
5433
#if NeedFunctionPrototypes
5438
extern wchar_t *XwcResetIC(
5439
#if NeedFunctionPrototypes
5444
extern char *XmbResetIC(
5445
#if NeedFunctionPrototypes
5450
extern char *Xutf8ResetIC(
5451
#if NeedFunctionPrototypes
5456
extern char *XSetICValues(
5457
#if NeedVarargsPrototypes
5462
extern char *XGetICValues(
5463
#if NeedVarargsPrototypes
5469
#if NeedFunctionPrototypes
5474
extern Bool XFilterEvent(
5475
#if NeedFunctionPrototypes
5476
XEvent* /* event */,
5481
extern int XmbLookupString(
5482
#if NeedFunctionPrototypes
5484
XKeyPressedEvent* /* event */,
5485
char* /* buffer_return */,
5486
int /* bytes_buffer */,
5487
KeySym* /* keysym_return */,
5488
Status* /* status_return */
5492
extern int XwcLookupString(
5493
#if NeedFunctionPrototypes
5495
XKeyPressedEvent* /* event */,
5496
wchar_t* /* buffer_return */,
5497
int /* wchars_buffer */,
5498
KeySym* /* keysym_return */,
5499
Status* /* status_return */
5503
extern int Xutf8LookupString(
5504
#if NeedFunctionPrototypes
5506
XKeyPressedEvent* /* event */,
5507
char* /* buffer_return */,
5508
int /* bytes_buffer */,
5509
KeySym* /* keysym_return */,
5510
Status* /* status_return */
5514
extern XVaNestedList XVaCreateNestedList(
5515
#if NeedVarargsPrototypes
5520
/* internal connections for IMs */
5522
extern Bool XRegisterIMInstantiateCallback(
5523
#if NeedFunctionPrototypes
5525
struct _XrmHashBucketRec* /* rdb */,
5526
char* /* res_name */,
5527
char* /* res_class */,
5528
XIDProc /* callback */,
5529
XPointer /* client_data */
5533
extern Bool XUnregisterIMInstantiateCallback(
5534
#if NeedFunctionPrototypes
5536
struct _XrmHashBucketRec* /* rdb */,
5537
char* /* res_name */,
5538
char* /* res_class */,
5539
XIDProc /* callback */,
5540
XPointer /* client_data */
5544
typedef void (*XConnectionWatchProc)(
5545
#if NeedFunctionPrototypes
5547
XPointer /* client_data */,
5549
Bool /* opening */, /* open or close flag */
5550
XPointer* /* watch_data */ /* open sets, close uses */
5555
extern Status XInternalConnectionNumbers(
5556
#if NeedFunctionPrototypes
5558
int** /* fd_return */,
5559
int* /* count_return */
5563
extern void XProcessInternalConnection(
5564
#if NeedFunctionPrototypes
5570
extern Status XAddConnectionWatch(
5571
#if NeedFunctionPrototypes
5573
XConnectionWatchProc /* callback */,
5574
XPointer /* client_data */
5578
extern void XRemoveConnectionWatch(
5579
#if NeedFunctionPrototypes
5581
XConnectionWatchProc /* callback */,
5582
XPointer /* client_data */
5586
extern void XSetAuthorization(
5587
#if NeedFunctionPrototypes
5595
extern int _Xmbtowc(
5596
#if NeedFunctionPrototypes
5597
wchar_t * /* wstr */,
5599
char const * /* str */,
5608
extern int _Xwctomb(
5609
#if NeedFunctionPrototypes
5618
#endif /* _XLIB_H_ */
5621
/* $Xorg: Xutil.h,v 1.8 2001/02/09 02:03:39 xorgcvs Exp $ */
5623
/***********************************************************
5625
Copyright 1987, 1998 The Open Group
5627
Permission to use, copy, modify, distribute, and sell this software and its
5628
documentation for any purpose is hereby granted without fee, provided that
5629
the above copyright notice appear in all copies and that both that
5630
copyright notice and this permission notice appear in supporting
5633
The above copyright notice and this permission notice shall be included in
5634
all copies or substantial portions of the Software.
5636
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5637
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5638
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5639
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
5640
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
5641
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5643
Except as contained in this notice, the name of The Open Group shall not be
5644
used in advertising or otherwise to promote the sale, use or other dealings
5645
in this Software without prior written authorization from The Open Group.
5648
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
5652
Permission to use, copy, modify, and distribute this software and its
5653
documentation for any purpose and without fee is hereby granted,
5654
provided that the above copyright notice appear in all copies and that
5655
both that copyright notice and this permission notice appear in
5656
supporting documentation, and that the name of Digital not be
5657
used in advertising or publicity pertaining to distribution of the
5658
software without specific, written prior permission.
5660
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
5661
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
5662
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
5663
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
5664
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
5665
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
5668
******************************************************************/
5669
/* $XFree86: xc/lib/X11/Xutil.h,v 3.5 2003/01/26 02:40:10 dawes Exp $ */
5674
/* You must include <X11/Xlib.h> before including this file */
5676
#include <X11/Xlib.h>
5680
* Bitmask returned by XParseGeometry(). Each bit tells if the corresponding
5681
* value (x, y, width, height) was found in the parsed string.
5683
#define NoValue 0x0000
5684
#define XValue 0x0001
5685
#define YValue 0x0002
5686
#define WidthValue 0x0004
5687
#define HeightValue 0x0008
5688
#define AllValues 0x000F
5689
#define XNegative 0x0010
5690
#define YNegative 0x0020
5693
* new version containing base_width, base_height, and win_gravity fields;
5694
* used with WM_NORMAL_HINTS.
5697
long flags; /* marks which fields in this structure are defined */
5698
int x, y; /* obsolete for new window mgrs, but clients */
5699
int width, height; /* should set so old wm's don't mess up */
5700
int min_width, min_height;
5701
int max_width, max_height;
5702
int width_inc, height_inc;
5704
int x; /* numerator */
5705
int y; /* denominator */
5706
} min_aspect, max_aspect;
5707
int base_width, base_height; /* added by ICCCM version 1 */
5708
int win_gravity; /* added by ICCCM version 1 */
5712
* The next block of definitions are for window manager properties that
5713
* clients and applications use for communication.
5716
/* flags argument in size hints */
5717
#define USPosition (1L << 0) /* user specified x, y */
5718
#define USSize (1L << 1) /* user specified width, height */
5720
#define PPosition (1L << 2) /* program specified position */
5721
#define PSize (1L << 3) /* program specified size */
5722
#define PMinSize (1L << 4) /* program specified minimum size */
5723
#define PMaxSize (1L << 5) /* program specified maximum size */
5724
#define PResizeInc (1L << 6) /* program specified resize increments */
5725
#define PAspect (1L << 7) /* program specified min and max aspect ratios */
5726
#define PBaseSize (1L << 8) /* program specified base for incrementing */
5727
#define PWinGravity (1L << 9) /* program specified window gravity */
5730
#define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect)
5735
long flags; /* marks which fields in this structure are defined */
5736
Bool input; /* does this application rely on the window manager to
5737
get keyboard input? */
5738
int initial_state; /* see below */
5739
Pixmap icon_pixmap; /* pixmap to be used as icon */
5740
Window icon_window; /* window to be used as icon */
5741
int icon_x, icon_y; /* initial position of icon */
5742
Pixmap icon_mask; /* icon mask bitmap */
5743
XID window_group; /* id of related window group */
5744
/* this structure may be extended in the future */
5747
/* definition for flags of XWMHints */
5749
#define InputHint (1L << 0)
5750
#define StateHint (1L << 1)
5751
#define IconPixmapHint (1L << 2)
5752
#define IconWindowHint (1L << 3)
5753
#define IconPositionHint (1L << 4)
5754
#define IconMaskHint (1L << 5)
5755
#define WindowGroupHint (1L << 6)
5756
#define AllHints (InputHint|StateHint|IconPixmapHint|IconWindowHint| \
5757
IconPositionHint|IconMaskHint|WindowGroupHint)
5758
#define XUrgencyHint (1L << 8)
5760
/* definitions for initial window state */
5761
#define WithdrawnState 0 /* for windows that are not mapped */
5762
#define NormalState 1 /* most applications want to start this way */
5763
#define IconicState 3 /* application wants to start as an icon */
5766
* Obsolete states no longer defined by ICCCM
5768
#define DontCareState 0 /* don't know or care */
5769
#define ZoomState 2 /* application wants to start zoomed */
5770
#define InactiveState 4 /* application believes it is seldom used; */
5771
/* some wm's may put it on inactive menu */
5775
* new structure for manipulating TEXT properties; used with WM_NAME,
5776
* WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND.
5779
unsigned char *value; /* same as Property routines */
5780
Atom encoding; /* prop type */
5781
int format; /* prop data format: 8, 16, or 32 */
5782
unsigned long nitems; /* number of data items in value */
5785
#define XNoMemory -1
5786
#define XLocaleNotSupported -2
5787
#define XConverterNotFound -3
5790
XStringStyle, /* STRING */
5791
XCompoundTextStyle, /* COMPOUND_TEXT */
5792
XTextStyle, /* text in owner's encoding (current locale)*/
5793
XStdICCTextStyle, /* STRING, else COMPOUND_TEXT */
5794
/* The following is an XFree86 extension, introduced in November 2000 */
5795
XUTF8StringStyle /* UTF8_STRING */
5796
} XICCEncodingStyle;
5799
int min_width, min_height;
5800
int max_width, max_height;
5801
int width_inc, height_inc;
5810
* These macros are used to give some sugar to the image routines so that
5811
* naive people are more comfortable with them.
5813
#define XDestroyImage(ximage) \
5814
((*((ximage)->f.destroy_image))((ximage)))
5815
#define XGetPixel(ximage, x, y) \
5816
((*((ximage)->f.get_pixel))((ximage), (x), (y)))
5817
#define XPutPixel(ximage, x, y, pixel) \
5818
((*((ximage)->f.put_pixel))((ximage), (x), (y), (pixel)))
5819
#define XSubImage(ximage, x, y, width, height) \
5820
((*((ximage)->f.sub_image))((ximage), (x), (y), (width), (height)))
5821
#define XAddPixel(ximage, value) \
5822
((*((ximage)->f.add_pixel))((ximage), (value)))
5825
* Compose sequence status structure, used in calling XLookupString.
5827
typedef struct _XComposeStatus {
5828
XPointer compose_ptr; /* state table pointer */
5829
int chars_matched; /* match state */
5833
* Keysym macros, used on Keysyms to test for classes of symbols
5835
#define IsKeypadKey(keysym) \
5836
(((KeySym)(keysym) >= XK_KP_Space) && ((KeySym)(keysym) <= XK_KP_Equal))
5838
#define IsPrivateKeypadKey(keysym) \
5839
(((KeySym)(keysym) >= 0x11000000) && ((KeySym)(keysym) <= 0x1100FFFF))
5841
#define IsCursorKey(keysym) \
5842
(((KeySym)(keysym) >= XK_Home) && ((KeySym)(keysym) < XK_Select))
5844
#define IsPFKey(keysym) \
5845
(((KeySym)(keysym) >= XK_KP_F1) && ((KeySym)(keysym) <= XK_KP_F4))
5847
#define IsFunctionKey(keysym) \
5848
(((KeySym)(keysym) >= XK_F1) && ((KeySym)(keysym) <= XK_F35))
5850
#define IsMiscFunctionKey(keysym) \
5851
(((KeySym)(keysym) >= XK_Select) && ((KeySym)(keysym) <= XK_Break))
5853
#define IsModifierKey(keysym) \
5854
((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) \
5855
|| (((KeySym)(keysym) >= XK_ISO_Lock) && \
5856
((KeySym)(keysym) <= XK_ISO_Last_Group_Lock)) \
5857
|| ((KeySym)(keysym) == XK_Mode_switch) \
5858
|| ((KeySym)(keysym) == XK_Num_Lock))
5860
* opaque reference to Region data type
5862
typedef struct _XRegion *Region;
5864
/* Return values from XRectInRegion() */
5866
#define RectangleOut 0
5867
#define RectangleIn 1
5868
#define RectanglePart 2
5872
* Information used by the visual utility routines to find desired visual
5873
* type from the many visuals a display may support.
5881
#if defined(__cplusplus) || defined(c_plusplus)
5882
int c_class; /* C++ */
5886
unsigned long red_mask;
5887
unsigned long green_mask;
5888
unsigned long blue_mask;
5893
#define VisualNoMask 0x0
5894
#define VisualIDMask 0x1
5895
#define VisualScreenMask 0x2
5896
#define VisualDepthMask 0x4
5897
#define VisualClassMask 0x8
5898
#define VisualRedMaskMask 0x10
5899
#define VisualGreenMaskMask 0x20
5900
#define VisualBlueMaskMask 0x40
5901
#define VisualColormapSizeMask 0x80
5902
#define VisualBitsPerRGBMask 0x100
5903
#define VisualAllMask 0x1FF
5906
* This defines a window manager property that clients may use to
5907
* share standard color maps of type RGB_COLOR_MAP:
5911
unsigned long red_max;
5912
unsigned long red_mult;
5913
unsigned long green_max;
5914
unsigned long green_mult;
5915
unsigned long blue_max;
5916
unsigned long blue_mult;
5917
unsigned long base_pixel;
5918
VisualID visualid; /* added by ICCCM version 1 */
5919
XID killid; /* added by ICCCM version 1 */
5920
} XStandardColormap;
5922
#define ReleaseByFreeingColormap ((XID) 1L) /* for killid field above */
5926
* return codes for XReadBitmapFile and XWriteBitmapFile
5928
#define BitmapSuccess 0
5929
#define BitmapOpenFailed 1
5930
#define BitmapFileInvalid 2
5931
#define BitmapNoMemory 3
5933
/****************************************************************
5935
* Context Management
5937
****************************************************************/
5940
/* Associative lookup table return codes */
5942
#define XCSUCCESS 0 /* No error. */
5943
#define XCNOMEM 1 /* Out of memory */
5944
#define XCNOENT 2 /* No entry in table */
5946
typedef int XContext;
5948
#define XUniqueContext() ((XContext) XrmUniqueQuark())
5949
#define XStringToContext(string) ((XContext) XrmStringToQuark(string))
5954
/* The following declarations are alphabetized. */
5956
extern XClassHint *XAllocClassHint (
5957
#if NeedFunctionPrototypes
5962
extern XIconSize *XAllocIconSize (
5963
#if NeedFunctionPrototypes
5968
extern XSizeHints *XAllocSizeHints (
5969
#if NeedFunctionPrototypes
5974
extern XStandardColormap *XAllocStandardColormap (
5975
#if NeedFunctionPrototypes
5980
extern XWMHints *XAllocWMHints (
5981
#if NeedFunctionPrototypes
5986
extern int XClipBox(
5987
#if NeedFunctionPrototypes
5989
XRectangle* /* rect_return */
5993
extern Region XCreateRegion(
5994
#if NeedFunctionPrototypes
5999
extern const char *XDefaultString (void);
6001
extern int XDeleteContext(
6002
#if NeedFunctionPrototypes
6003
Display* /* display */,
6005
XContext /* context */
6009
extern int XDestroyRegion(
6010
#if NeedFunctionPrototypes
6015
extern int XEmptyRegion(
6016
#if NeedFunctionPrototypes
6021
extern int XEqualRegion(
6022
#if NeedFunctionPrototypes
6028
extern int XFindContext(
6029
#if NeedFunctionPrototypes
6030
Display* /* display */,
6032
XContext /* context */,
6033
XPointer* /* data_return */
6037
extern Status XGetClassHint(
6038
#if NeedFunctionPrototypes
6039
Display* /* display */,
6041
XClassHint* /* class_hints_return */
6045
extern Status XGetIconSizes(
6046
#if NeedFunctionPrototypes
6047
Display* /* display */,
6049
XIconSize** /* size_list_return */,
6050
int* /* count_return */
6054
extern Status XGetNormalHints(
6055
#if NeedFunctionPrototypes
6056
Display* /* display */,
6058
XSizeHints* /* hints_return */
6062
extern Status XGetRGBColormaps(
6063
#if NeedFunctionPrototypes
6064
Display* /* display */,
6066
XStandardColormap** /* stdcmap_return */,
6067
int* /* count_return */,
6072
extern Status XGetSizeHints(
6073
#if NeedFunctionPrototypes
6074
Display* /* display */,
6076
XSizeHints* /* hints_return */,
6081
extern Status XGetStandardColormap(
6082
#if NeedFunctionPrototypes
6083
Display* /* display */,
6085
XStandardColormap* /* colormap_return */,
6090
extern Status XGetTextProperty(
6091
#if NeedFunctionPrototypes
6092
Display* /* display */,
6093
Window /* window */,
6094
XTextProperty* /* text_prop_return */,
6099
extern XVisualInfo *XGetVisualInfo(
6100
#if NeedFunctionPrototypes
6101
Display* /* display */,
6102
long /* vinfo_mask */,
6103
XVisualInfo* /* vinfo_template */,
6104
int* /* nitems_return */
6108
extern Status XGetWMClientMachine(
6109
#if NeedFunctionPrototypes
6110
Display* /* display */,
6112
XTextProperty* /* text_prop_return */
6116
extern XWMHints *XGetWMHints(
6117
#if NeedFunctionPrototypes
6118
Display* /* display */,
6123
extern Status XGetWMIconName(
6124
#if NeedFunctionPrototypes
6125
Display* /* display */,
6127
XTextProperty* /* text_prop_return */
6131
extern Status XGetWMName(
6132
#if NeedFunctionPrototypes
6133
Display* /* display */,
6135
XTextProperty* /* text_prop_return */
6139
extern Status XGetWMNormalHints(
6140
#if NeedFunctionPrototypes
6141
Display* /* display */,
6143
XSizeHints* /* hints_return */,
6144
long* /* supplied_return */
6148
extern Status XGetWMSizeHints(
6149
#if NeedFunctionPrototypes
6150
Display* /* display */,
6152
XSizeHints* /* hints_return */,
6153
long* /* supplied_return */,
6158
extern Status XGetZoomHints(
6159
#if NeedFunctionPrototypes
6160
Display* /* display */,
6162
XSizeHints* /* zhints_return */
6166
extern int XIntersectRegion(
6167
#if NeedFunctionPrototypes
6170
Region /* dr_return */
6174
extern void XConvertCase(
6175
#if NeedFunctionPrototypes
6177
KeySym* /* lower */,
6182
extern int XLookupString(
6183
#if NeedFunctionPrototypes
6184
XKeyEvent* /* event_struct */,
6185
char* /* buffer_return */,
6186
int /* bytes_buffer */,
6187
KeySym* /* keysym_return */,
6188
XComposeStatus* /* status_in_out */
6192
extern Status XMatchVisualInfo(
6193
#if NeedFunctionPrototypes
6194
Display* /* display */,
6198
XVisualInfo* /* vinfo_return */
6202
extern int XOffsetRegion(
6203
#if NeedFunctionPrototypes
6210
extern Bool XPointInRegion(
6211
#if NeedFunctionPrototypes
6218
extern Region XPolygonRegion(
6219
#if NeedFunctionPrototypes
6220
XPoint* /* points */,
6226
extern int XRectInRegion(
6227
#if NeedFunctionPrototypes
6231
unsigned int /* width */,
6232
unsigned int /* height */
6236
extern int XSaveContext(
6237
#if NeedFunctionPrototypes
6238
Display* /* display */,
6240
XContext /* context */,
6241
_Xconst char* /* data */
6245
extern int XSetClassHint(
6246
#if NeedFunctionPrototypes
6247
Display* /* display */,
6249
XClassHint* /* class_hints */
6253
extern int XSetIconSizes(
6254
#if NeedFunctionPrototypes
6255
Display* /* display */,
6257
XIconSize* /* size_list */,
6262
extern int XSetNormalHints(
6263
#if NeedFunctionPrototypes
6264
Display* /* display */,
6266
XSizeHints* /* hints */
6270
extern void XSetRGBColormaps(
6271
#if NeedFunctionPrototypes
6272
Display* /* display */,
6274
XStandardColormap* /* stdcmaps */,
6280
extern int XSetSizeHints(
6281
#if NeedFunctionPrototypes
6282
Display* /* display */,
6284
XSizeHints* /* hints */,
6289
extern int XSetStandardProperties(
6290
#if NeedFunctionPrototypes
6291
Display* /* display */,
6293
_Xconst char* /* window_name */,
6294
_Xconst char* /* icon_name */,
6295
Pixmap /* icon_pixmap */,
6298
XSizeHints* /* hints */
6302
extern void XSetTextProperty(
6303
#if NeedFunctionPrototypes
6304
Display* /* display */,
6306
XTextProperty* /* text_prop */,
6311
extern void XSetWMClientMachine(
6312
#if NeedFunctionPrototypes
6313
Display* /* display */,
6315
XTextProperty* /* text_prop */
6319
extern int XSetWMHints(
6320
#if NeedFunctionPrototypes
6321
Display* /* display */,
6323
XWMHints* /* wm_hints */
6327
extern void XSetWMIconName(
6328
#if NeedFunctionPrototypes
6329
Display* /* display */,
6331
XTextProperty* /* text_prop */
6335
extern void XSetWMName(
6336
#if NeedFunctionPrototypes
6337
Display* /* display */,
6339
XTextProperty* /* text_prop */
6343
extern void XSetWMNormalHints(
6344
#if NeedFunctionPrototypes
6345
Display* /* display */,
6347
XSizeHints* /* hints */
6351
extern void XSetWMProperties(
6352
#if NeedFunctionPrototypes
6353
Display* /* display */,
6355
XTextProperty* /* window_name */,
6356
XTextProperty* /* icon_name */,
6359
XSizeHints* /* normal_hints */,
6360
XWMHints* /* wm_hints */,
6361
XClassHint* /* class_hints */
6365
extern void XmbSetWMProperties(
6366
#if NeedFunctionPrototypes
6367
Display* /* display */,
6369
_Xconst char* /* window_name */,
6370
_Xconst char* /* icon_name */,
6373
XSizeHints* /* normal_hints */,
6374
XWMHints* /* wm_hints */,
6375
XClassHint* /* class_hints */
6379
extern void Xutf8SetWMProperties(
6380
#if NeedFunctionPrototypes
6381
Display* /* display */,
6383
_Xconst char* /* window_name */,
6384
_Xconst char* /* icon_name */,
6387
XSizeHints* /* normal_hints */,
6388
XWMHints* /* wm_hints */,
6389
XClassHint* /* class_hints */
6393
extern void XSetWMSizeHints(
6394
#if NeedFunctionPrototypes
6395
Display* /* display */,
6397
XSizeHints* /* hints */,
6402
extern int XSetRegion(
6403
#if NeedFunctionPrototypes
6404
Display* /* display */,
6410
extern void XSetStandardColormap(
6411
#if NeedFunctionPrototypes
6412
Display* /* display */,
6414
XStandardColormap* /* colormap */,
6419
extern int XSetZoomHints(
6420
#if NeedFunctionPrototypes
6421
Display* /* display */,
6423
XSizeHints* /* zhints */
6427
extern int XShrinkRegion(
6428
#if NeedFunctionPrototypes
6435
extern Status XStringListToTextProperty(
6436
#if NeedFunctionPrototypes
6439
XTextProperty* /* text_prop_return */
6443
extern int XSubtractRegion(
6444
#if NeedFunctionPrototypes
6447
Region /* dr_return */
6451
extern int XmbTextListToTextProperty(
6455
XICCEncodingStyle style,
6456
XTextProperty* text_prop_return
6459
extern int XwcTextListToTextProperty(
6463
XICCEncodingStyle style,
6464
XTextProperty* text_prop_return
6467
extern int Xutf8TextListToTextProperty(
6471
XICCEncodingStyle style,
6472
XTextProperty* text_prop_return
6475
extern void XwcFreeStringList(
6479
extern Status XTextPropertyToStringList(
6480
#if NeedFunctionPrototypes
6481
XTextProperty* /* text_prop */,
6482
char*** /* list_return */,
6483
int* /* count_return */
6487
extern int XmbTextPropertyToTextList(
6489
const XTextProperty* text_prop,
6490
char*** list_return,
6494
extern int XwcTextPropertyToTextList(
6496
const XTextProperty* text_prop,
6497
wchar_t*** list_return,
6501
extern int Xutf8TextPropertyToTextList(
6503
const XTextProperty* text_prop,
6504
char*** list_return,
6508
extern int XUnionRectWithRegion(
6509
#if NeedFunctionPrototypes
6510
XRectangle* /* rectangle */,
6511
Region /* src_region */,
6512
Region /* dest_region_return */
6516
extern int XUnionRegion(
6517
#if NeedFunctionPrototypes
6520
Region /* dr_return */
6524
extern int XWMGeometry(
6525
#if NeedFunctionPrototypes
6526
Display* /* display */,
6527
int /* screen_number */,
6528
_Xconst char* /* user_geometry */,
6529
_Xconst char* /* default_geometry */,
6530
unsigned int /* border_width */,
6531
XSizeHints* /* hints */,
6532
int* /* x_return */,
6533
int* /* y_return */,
6534
int* /* width_return */,
6535
int* /* height_return */,
6536
int* /* gravity_return */
6540
extern int XXorRegion(
6541
#if NeedFunctionPrototypes
6544
Region /* dr_return */
6554
/* THIS IS A GENERATED FILE
6556
* Do not change! Changing this file implies a protocol change!
6559
#define XA_PRIMARY ((Atom) 1)
6560
#define XA_SECONDARY ((Atom) 2)
6561
#define XA_ARC ((Atom) 3)
6562
#define XA_ATOM ((Atom) 4)
6563
#define XA_BITMAP ((Atom) 5)
6564
#define XA_CARDINAL ((Atom) 6)
6565
#define XA_COLORMAP ((Atom) 7)
6566
#define XA_CURSOR ((Atom) 8)
6567
#define XA_CUT_BUFFER0 ((Atom) 9)
6568
#define XA_CUT_BUFFER1 ((Atom) 10)
6569
#define XA_CUT_BUFFER2 ((Atom) 11)
6570
#define XA_CUT_BUFFER3 ((Atom) 12)
6571
#define XA_CUT_BUFFER4 ((Atom) 13)
6572
#define XA_CUT_BUFFER5 ((Atom) 14)
6573
#define XA_CUT_BUFFER6 ((Atom) 15)
6574
#define XA_CUT_BUFFER7 ((Atom) 16)
6575
#define XA_DRAWABLE ((Atom) 17)
6576
#define XA_FONT ((Atom) 18)
6577
#define XA_INTEGER ((Atom) 19)
6578
#define XA_PIXMAP ((Atom) 20)
6579
#define XA_POINT ((Atom) 21)
6580
#define XA_RECTANGLE ((Atom) 22)
6581
#define XA_RESOURCE_MANAGER ((Atom) 23)
6582
#define XA_RGB_COLOR_MAP ((Atom) 24)
6583
#define XA_RGB_BEST_MAP ((Atom) 25)
6584
#define XA_RGB_BLUE_MAP ((Atom) 26)
6585
#define XA_RGB_DEFAULT_MAP ((Atom) 27)
6586
#define XA_RGB_GRAY_MAP ((Atom) 28)
6587
#define XA_RGB_GREEN_MAP ((Atom) 29)
6588
#define XA_RGB_RED_MAP ((Atom) 30)
6589
#define XA_STRING ((Atom) 31)
6590
#define XA_VISUALID ((Atom) 32)
6591
#define XA_WINDOW ((Atom) 33)
6592
#define XA_WM_COMMAND ((Atom) 34)
6593
#define XA_WM_HINTS ((Atom) 35)
6594
#define XA_WM_CLIENT_MACHINE ((Atom) 36)
6595
#define XA_WM_ICON_NAME ((Atom) 37)
6596
#define XA_WM_ICON_SIZE ((Atom) 38)
6597
#define XA_WM_NAME ((Atom) 39)
6598
#define XA_WM_NORMAL_HINTS ((Atom) 40)
6599
#define XA_WM_SIZE_HINTS ((Atom) 41)
6600
#define XA_WM_ZOOM_HINTS ((Atom) 42)
6601
#define XA_MIN_SPACE ((Atom) 43)
6602
#define XA_NORM_SPACE ((Atom) 44)
6603
#define XA_MAX_SPACE ((Atom) 45)
6604
#define XA_END_SPACE ((Atom) 46)
6605
#define XA_SUPERSCRIPT_X ((Atom) 47)
6606
#define XA_SUPERSCRIPT_Y ((Atom) 48)
6607
#define XA_SUBSCRIPT_X ((Atom) 49)
6608
#define XA_SUBSCRIPT_Y ((Atom) 50)
6609
#define XA_UNDERLINE_POSITION ((Atom) 51)
6610
#define XA_UNDERLINE_THICKNESS ((Atom) 52)
6611
#define XA_STRIKEOUT_ASCENT ((Atom) 53)
6612
#define XA_STRIKEOUT_DESCENT ((Atom) 54)
6613
#define XA_ITALIC_ANGLE ((Atom) 55)
6614
#define XA_X_HEIGHT ((Atom) 56)
6615
#define XA_QUAD_WIDTH ((Atom) 57)
6616
#define XA_WEIGHT ((Atom) 58)
6617
#define XA_POINT_SIZE ((Atom) 59)
6618
#define XA_RESOLUTION ((Atom) 60)
6619
#define XA_COPYRIGHT ((Atom) 61)
6620
#define XA_NOTICE ((Atom) 62)
6621
#define XA_FONT_NAME ((Atom) 63)
6622
#define XA_FAMILY_NAME ((Atom) 64)
6623
#define XA_FULL_NAME ((Atom) 65)
6624
#define XA_CAP_HEIGHT ((Atom) 66)
6625
#define XA_WM_CLASS ((Atom) 67)
6626
#define XA_WM_TRANSIENT_FOR ((Atom) 68)
6628
#define XA_LAST_PREDEFINED ((Atom) 68)
6629
#endif /* XATOM_H */
6631
#endif /* _XUTIL_H_ */
6633
extern KeyCode XKeysymToKeycode(
6634
Display* /* display */,
6637
extern KeySym XKeycodeToKeysym(
6638
Display* /* display */,
6639
KeyCode /* keycode */,
6642
extern char *XKeysymToString(
6645
extern KeySym XStringToKeysym(
6649
typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */
6650
Display* /* display */,
6651
XErrorEvent* /* error_event */
6654
extern XErrorHandler XSetErrorHandler (
6655
XErrorHandler /* handler */
6658
typedef int (*XIOErrorHandler) ( /* WARNING, this type not in Xlib spec */
6659
Display* /* display */
6662
extern XIOErrorHandler XSetIOErrorHandler (
6663
XIOErrorHandler /* handler */