File indexing completed on 2025-01-18 10:14:31
0001
0002
0003 #ifndef X_H
0004 #define X_H
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051
0052
0053 #define X_PROTOCOL 11
0054 #define X_PROTOCOL_REVISION 0
0055
0056
0057
0058
0059
0060
0061
0062
0063 #ifndef _XSERVER64
0064 # ifndef _XTYPEDEF_XID
0065 # define _XTYPEDEF_XID
0066 typedef unsigned long XID;
0067 # endif
0068 # ifndef _XTYPEDEF_MASK
0069 # define _XTYPEDEF_MASK
0070 typedef unsigned long Mask;
0071 # endif
0072 # ifndef _XTYPEDEF_ATOM
0073 # define _XTYPEDEF_ATOM
0074 typedef unsigned long Atom;
0075 # endif
0076 typedef unsigned long VisualID;
0077 typedef unsigned long Time;
0078 #else
0079 # include <X11/Xmd.h>
0080 # ifndef _XTYPEDEF_XID
0081 # define _XTYPEDEF_XID
0082 typedef CARD32 XID;
0083 # endif
0084 # ifndef _XTYPEDEF_MASK
0085 # define _XTYPEDEF_MASK
0086 typedef CARD32 Mask;
0087 # endif
0088 # ifndef _XTYPEDEF_ATOM
0089 # define _XTYPEDEF_ATOM
0090 typedef CARD32 Atom;
0091 # endif
0092 typedef CARD32 VisualID;
0093 typedef CARD32 Time;
0094 #endif
0095
0096 typedef XID Window;
0097 typedef XID Drawable;
0098 #ifndef _XTYPEDEF_FONT
0099 # define _XTYPEDEF_FONT
0100 typedef XID Font;
0101 #endif
0102 typedef XID Pixmap;
0103 typedef XID Cursor;
0104 typedef XID Colormap;
0105 typedef XID GContext;
0106 typedef XID KeySym;
0107
0108 typedef unsigned char KeyCode;
0109
0110
0111
0112
0113
0114 #ifndef None
0115 #define None 0L
0116 #endif
0117
0118 #define ParentRelative 1L
0119
0120
0121 #define CopyFromParent 0L
0122
0123
0124
0125
0126 #define PointerWindow 0L
0127 #define InputFocus 1L
0128
0129 #define PointerRoot 1L
0130
0131 #define AnyPropertyType 0L
0132
0133 #define AnyKey 0L
0134
0135 #define AnyButton 0L
0136
0137 #define AllTemporary 0L
0138
0139 #define CurrentTime 0L
0140
0141 #define NoSymbol 0L
0142
0143
0144
0145
0146
0147
0148
0149
0150 #define NoEventMask 0L
0151 #define KeyPressMask (1L<<0)
0152 #define KeyReleaseMask (1L<<1)
0153 #define ButtonPressMask (1L<<2)
0154 #define ButtonReleaseMask (1L<<3)
0155 #define EnterWindowMask (1L<<4)
0156 #define LeaveWindowMask (1L<<5)
0157 #define PointerMotionMask (1L<<6)
0158 #define PointerMotionHintMask (1L<<7)
0159 #define Button1MotionMask (1L<<8)
0160 #define Button2MotionMask (1L<<9)
0161 #define Button3MotionMask (1L<<10)
0162 #define Button4MotionMask (1L<<11)
0163 #define Button5MotionMask (1L<<12)
0164 #define ButtonMotionMask (1L<<13)
0165 #define KeymapStateMask (1L<<14)
0166 #define ExposureMask (1L<<15)
0167 #define VisibilityChangeMask (1L<<16)
0168 #define StructureNotifyMask (1L<<17)
0169 #define ResizeRedirectMask (1L<<18)
0170 #define SubstructureNotifyMask (1L<<19)
0171 #define SubstructureRedirectMask (1L<<20)
0172 #define FocusChangeMask (1L<<21)
0173 #define PropertyChangeMask (1L<<22)
0174 #define ColormapChangeMask (1L<<23)
0175 #define OwnerGrabButtonMask (1L<<24)
0176
0177
0178
0179
0180
0181 #define KeyPress 2
0182 #define KeyRelease 3
0183 #define ButtonPress 4
0184 #define ButtonRelease 5
0185 #define MotionNotify 6
0186 #define EnterNotify 7
0187 #define LeaveNotify 8
0188 #define FocusIn 9
0189 #define FocusOut 10
0190 #define KeymapNotify 11
0191 #define Expose 12
0192 #define GraphicsExpose 13
0193 #define NoExpose 14
0194 #define VisibilityNotify 15
0195 #define CreateNotify 16
0196 #define DestroyNotify 17
0197 #define UnmapNotify 18
0198 #define MapNotify 19
0199 #define MapRequest 20
0200 #define ReparentNotify 21
0201 #define ConfigureNotify 22
0202 #define ConfigureRequest 23
0203 #define GravityNotify 24
0204 #define ResizeRequest 25
0205 #define CirculateNotify 26
0206 #define CirculateRequest 27
0207 #define PropertyNotify 28
0208 #define SelectionClear 29
0209 #define SelectionRequest 30
0210 #define SelectionNotify 31
0211 #define ColormapNotify 32
0212 #define ClientMessage 33
0213 #define MappingNotify 34
0214 #define GenericEvent 35
0215 #define LASTEvent 36
0216
0217
0218
0219
0220
0221 #define ShiftMask (1<<0)
0222 #define LockMask (1<<1)
0223 #define ControlMask (1<<2)
0224 #define Mod1Mask (1<<3)
0225 #define Mod2Mask (1<<4)
0226 #define Mod3Mask (1<<5)
0227 #define Mod4Mask (1<<6)
0228 #define Mod5Mask (1<<7)
0229
0230
0231
0232
0233 #define ShiftMapIndex 0
0234 #define LockMapIndex 1
0235 #define ControlMapIndex 2
0236 #define Mod1MapIndex 3
0237 #define Mod2MapIndex 4
0238 #define Mod3MapIndex 5
0239 #define Mod4MapIndex 6
0240 #define Mod5MapIndex 7
0241
0242
0243
0244
0245
0246 #define Button1Mask (1<<8)
0247 #define Button2Mask (1<<9)
0248 #define Button3Mask (1<<10)
0249 #define Button4Mask (1<<11)
0250 #define Button5Mask (1<<12)
0251
0252 #define AnyModifier (1<<15)
0253
0254
0255
0256
0257
0258
0259 #define Button1 1
0260 #define Button2 2
0261 #define Button3 3
0262 #define Button4 4
0263 #define Button5 5
0264
0265
0266
0267 #define NotifyNormal 0
0268 #define NotifyGrab 1
0269 #define NotifyUngrab 2
0270 #define NotifyWhileGrabbed 3
0271
0272 #define NotifyHint 1
0273
0274
0275
0276 #define NotifyAncestor 0
0277 #define NotifyVirtual 1
0278 #define NotifyInferior 2
0279 #define NotifyNonlinear 3
0280 #define NotifyNonlinearVirtual 4
0281 #define NotifyPointer 5
0282 #define NotifyPointerRoot 6
0283 #define NotifyDetailNone 7
0284
0285
0286
0287 #define VisibilityUnobscured 0
0288 #define VisibilityPartiallyObscured 1
0289 #define VisibilityFullyObscured 2
0290
0291
0292
0293 #define PlaceOnTop 0
0294 #define PlaceOnBottom 1
0295
0296
0297
0298 #define FamilyInternet 0
0299 #define FamilyDECnet 1
0300 #define FamilyChaos 2
0301 #define FamilyInternet6 6
0302
0303
0304 #define FamilyServerInterpreted 5
0305
0306
0307
0308 #define PropertyNewValue 0
0309 #define PropertyDelete 1
0310
0311
0312
0313 #define ColormapUninstalled 0
0314 #define ColormapInstalled 1
0315
0316
0317
0318 #define GrabModeSync 0
0319 #define GrabModeAsync 1
0320
0321
0322
0323 #define GrabSuccess 0
0324 #define AlreadyGrabbed 1
0325 #define GrabInvalidTime 2
0326 #define GrabNotViewable 3
0327 #define GrabFrozen 4
0328
0329
0330
0331 #define AsyncPointer 0
0332 #define SyncPointer 1
0333 #define ReplayPointer 2
0334 #define AsyncKeyboard 3
0335 #define SyncKeyboard 4
0336 #define ReplayKeyboard 5
0337 #define AsyncBoth 6
0338 #define SyncBoth 7
0339
0340
0341
0342 #define RevertToNone (int)None
0343 #define RevertToPointerRoot (int)PointerRoot
0344 #define RevertToParent 2
0345
0346
0347
0348
0349
0350 #define Success 0
0351 #define BadRequest 1
0352 #define BadValue 2
0353 #define BadWindow 3
0354 #define BadPixmap 4
0355 #define BadAtom 5
0356 #define BadCursor 6
0357 #define BadFont 7
0358 #define BadMatch 8
0359 #define BadDrawable 9
0360 #define BadAccess 10
0361
0362
0363
0364
0365
0366
0367
0368
0369 #define BadAlloc 11
0370 #define BadColor 12
0371 #define BadGC 13
0372 #define BadIDChoice 14
0373 #define BadName 15
0374 #define BadLength 16
0375 #define BadImplementation 17
0376
0377 #define FirstExtensionError 128
0378 #define LastExtensionError 255
0379
0380
0381
0382
0383
0384
0385
0386
0387 #define InputOutput 1
0388 #define InputOnly 2
0389
0390
0391
0392 #define CWBackPixmap (1L<<0)
0393 #define CWBackPixel (1L<<1)
0394 #define CWBorderPixmap (1L<<2)
0395 #define CWBorderPixel (1L<<3)
0396 #define CWBitGravity (1L<<4)
0397 #define CWWinGravity (1L<<5)
0398 #define CWBackingStore (1L<<6)
0399 #define CWBackingPlanes (1L<<7)
0400 #define CWBackingPixel (1L<<8)
0401 #define CWOverrideRedirect (1L<<9)
0402 #define CWSaveUnder (1L<<10)
0403 #define CWEventMask (1L<<11)
0404 #define CWDontPropagate (1L<<12)
0405 #define CWColormap (1L<<13)
0406 #define CWCursor (1L<<14)
0407
0408
0409
0410 #define CWX (1<<0)
0411 #define CWY (1<<1)
0412 #define CWWidth (1<<2)
0413 #define CWHeight (1<<3)
0414 #define CWBorderWidth (1<<4)
0415 #define CWSibling (1<<5)
0416 #define CWStackMode (1<<6)
0417
0418
0419
0420
0421 #define ForgetGravity 0
0422 #define NorthWestGravity 1
0423 #define NorthGravity 2
0424 #define NorthEastGravity 3
0425 #define WestGravity 4
0426 #define CenterGravity 5
0427 #define EastGravity 6
0428 #define SouthWestGravity 7
0429 #define SouthGravity 8
0430 #define SouthEastGravity 9
0431 #define StaticGravity 10
0432
0433
0434
0435 #define UnmapGravity 0
0436
0437
0438
0439 #define NotUseful 0
0440 #define WhenMapped 1
0441 #define Always 2
0442
0443
0444
0445 #define IsUnmapped 0
0446 #define IsUnviewable 1
0447 #define IsViewable 2
0448
0449
0450
0451 #define SetModeInsert 0
0452 #define SetModeDelete 1
0453
0454
0455
0456 #define DestroyAll 0
0457 #define RetainPermanent 1
0458 #define RetainTemporary 2
0459
0460
0461
0462 #define Above 0
0463 #define Below 1
0464 #define TopIf 2
0465 #define BottomIf 3
0466 #define Opposite 4
0467
0468
0469
0470 #define RaiseLowest 0
0471 #define LowerHighest 1
0472
0473
0474
0475 #define PropModeReplace 0
0476 #define PropModePrepend 1
0477 #define PropModeAppend 2
0478
0479
0480
0481
0482
0483
0484
0485 #define GXclear 0x0
0486 #define GXand 0x1
0487 #define GXandReverse 0x2
0488 #define GXcopy 0x3
0489 #define GXandInverted 0x4
0490 #define GXnoop 0x5
0491 #define GXxor 0x6
0492 #define GXor 0x7
0493 #define GXnor 0x8
0494 #define GXequiv 0x9
0495 #define GXinvert 0xa
0496 #define GXorReverse 0xb
0497 #define GXcopyInverted 0xc
0498 #define GXorInverted 0xd
0499 #define GXnand 0xe
0500 #define GXset 0xf
0501
0502
0503
0504 #define LineSolid 0
0505 #define LineOnOffDash 1
0506 #define LineDoubleDash 2
0507
0508
0509
0510 #define CapNotLast 0
0511 #define CapButt 1
0512 #define CapRound 2
0513 #define CapProjecting 3
0514
0515
0516
0517 #define JoinMiter 0
0518 #define JoinRound 1
0519 #define JoinBevel 2
0520
0521
0522
0523 #define FillSolid 0
0524 #define FillTiled 1
0525 #define FillStippled 2
0526 #define FillOpaqueStippled 3
0527
0528
0529
0530 #define EvenOddRule 0
0531 #define WindingRule 1
0532
0533
0534
0535 #define ClipByChildren 0
0536 #define IncludeInferiors 1
0537
0538
0539
0540 #define Unsorted 0
0541 #define YSorted 1
0542 #define YXSorted 2
0543 #define YXBanded 3
0544
0545
0546
0547 #define CoordModeOrigin 0
0548 #define CoordModePrevious 1
0549
0550
0551
0552 #define Complex 0
0553 #define Nonconvex 1
0554 #define Convex 2
0555
0556
0557
0558 #define ArcChord 0
0559 #define ArcPieSlice 1
0560
0561
0562
0563
0564 #define GCFunction (1L<<0)
0565 #define GCPlaneMask (1L<<1)
0566 #define GCForeground (1L<<2)
0567 #define GCBackground (1L<<3)
0568 #define GCLineWidth (1L<<4)
0569 #define GCLineStyle (1L<<5)
0570 #define GCCapStyle (1L<<6)
0571 #define GCJoinStyle (1L<<7)
0572 #define GCFillStyle (1L<<8)
0573 #define GCFillRule (1L<<9)
0574 #define GCTile (1L<<10)
0575 #define GCStipple (1L<<11)
0576 #define GCTileStipXOrigin (1L<<12)
0577 #define GCTileStipYOrigin (1L<<13)
0578 #define GCFont (1L<<14)
0579 #define GCSubwindowMode (1L<<15)
0580 #define GCGraphicsExposures (1L<<16)
0581 #define GCClipXOrigin (1L<<17)
0582 #define GCClipYOrigin (1L<<18)
0583 #define GCClipMask (1L<<19)
0584 #define GCDashOffset (1L<<20)
0585 #define GCDashList (1L<<21)
0586 #define GCArcMode (1L<<22)
0587
0588 #define GCLastBit 22
0589
0590
0591
0592
0593
0594
0595 #define FontLeftToRight 0
0596 #define FontRightToLeft 1
0597
0598 #define FontChange 255
0599
0600
0601
0602
0603
0604
0605
0606 #define XYBitmap 0
0607 #define XYPixmap 1
0608 #define ZPixmap 2
0609
0610
0611
0612
0613
0614
0615
0616 #define AllocNone 0
0617 #define AllocAll 1
0618
0619
0620
0621
0622 #define DoRed (1<<0)
0623 #define DoGreen (1<<1)
0624 #define DoBlue (1<<2)
0625
0626
0627
0628
0629
0630
0631
0632 #define CursorShape 0
0633 #define TileShape 1
0634 #define StippleShape 2
0635
0636
0637
0638
0639
0640 #define AutoRepeatModeOff 0
0641 #define AutoRepeatModeOn 1
0642 #define AutoRepeatModeDefault 2
0643
0644 #define LedModeOff 0
0645 #define LedModeOn 1
0646
0647
0648
0649 #define KBKeyClickPercent (1L<<0)
0650 #define KBBellPercent (1L<<1)
0651 #define KBBellPitch (1L<<2)
0652 #define KBBellDuration (1L<<3)
0653 #define KBLed (1L<<4)
0654 #define KBLedMode (1L<<5)
0655 #define KBKey (1L<<6)
0656 #define KBAutoRepeatMode (1L<<7)
0657
0658 #define MappingSuccess 0
0659 #define MappingBusy 1
0660 #define MappingFailed 2
0661
0662 #define MappingModifier 0
0663 #define MappingKeyboard 1
0664 #define MappingPointer 2
0665
0666
0667
0668
0669
0670 #define DontPreferBlanking 0
0671 #define PreferBlanking 1
0672 #define DefaultBlanking 2
0673
0674 #define DisableScreenSaver 0
0675 #define DisableScreenInterval 0
0676
0677 #define DontAllowExposures 0
0678 #define AllowExposures 1
0679 #define DefaultExposures 2
0680
0681
0682
0683 #define ScreenSaverReset 0
0684 #define ScreenSaverActive 1
0685
0686
0687
0688
0689
0690
0691
0692 #define HostInsert 0
0693 #define HostDelete 1
0694
0695
0696
0697 #define EnableAccess 1
0698 #define DisableAccess 0
0699
0700
0701
0702
0703
0704 #define StaticGray 0
0705 #define GrayScale 1
0706 #define StaticColor 2
0707 #define PseudoColor 3
0708 #define TrueColor 4
0709 #define DirectColor 5
0710
0711
0712
0713
0714 #define LSBFirst 0
0715 #define MSBFirst 1
0716
0717 #endif