Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:31

0001 /* Definitions for the X window system likely to be used by applications */
0002 
0003 #ifndef X_H
0004 #define X_H
0005 
0006 /***********************************************************
0007 
0008 Copyright 1987, 1998  The Open Group
0009 
0010 Permission to use, copy, modify, distribute, and sell this software and its
0011 documentation for any purpose is hereby granted without fee, provided that
0012 the above copyright notice appear in all copies and that both that
0013 copyright notice and this permission notice appear in supporting
0014 documentation.
0015 
0016 The above copyright notice and this permission notice shall be included in
0017 all copies or substantial portions of the Software.
0018 
0019 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0020 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0021 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0022 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0023 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0024 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0025 
0026 Except as contained in this notice, the name of The Open Group shall not be
0027 used in advertising or otherwise to promote the sale, use or other dealings
0028 in this Software without prior written authorization from The Open Group.
0029 
0030 
0031 Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
0032 
0033                         All Rights Reserved
0034 
0035 Permission to use, copy, modify, and distribute this software and its 
0036 documentation for any purpose and without fee is hereby granted, 
0037 provided that the above copyright notice appear in all copies and that
0038 both that copyright notice and this permission notice appear in 
0039 supporting documentation, and that the name of Digital not be
0040 used in advertising or publicity pertaining to distribution of the
0041 software without specific, written prior permission.  
0042 
0043 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0044 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0045 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0046 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0047 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
0048 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0049 SOFTWARE.
0050 
0051 ******************************************************************/
0052 
0053 #define X_PROTOCOL  11      /* current protocol version */
0054 #define X_PROTOCOL_REVISION 0       /* current minor version */
0055 
0056 /* Resources */
0057 
0058 /*
0059  * _XSERVER64 must ONLY be defined when compiling X server sources on
0060  * systems where unsigned long is not 32 bits, must NOT be used in
0061  * client or library code.
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;     /* Also in Xdefs.h */
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  * RESERVED RESOURCE AND CONSTANT DEFINITIONS
0112  *****************************************************************/
0113 
0114 #ifndef None
0115 #define None                 0L /* universal null resource or null atom */
0116 #endif
0117 
0118 #define ParentRelative       1L /* background pixmap in CreateWindow
0119                     and ChangeWindowAttributes */
0120 
0121 #define CopyFromParent       0L /* border pixmap in CreateWindow
0122                        and ChangeWindowAttributes
0123                    special VisualID and special window
0124                        class passed to CreateWindow */
0125 
0126 #define PointerWindow        0L /* destination window in SendEvent */
0127 #define InputFocus           1L /* destination window in SendEvent */
0128 
0129 #define PointerRoot          1L /* focus window in SetInputFocus */
0130 
0131 #define AnyPropertyType      0L /* special Atom, passed to GetProperty */
0132 
0133 #define AnyKey           0L /* special Key Code, passed to GrabKey */
0134 
0135 #define AnyButton            0L /* special Button Code, passed to GrabButton */
0136 
0137 #define AllTemporary         0L /* special Resource ID passed to KillClient */
0138 
0139 #define CurrentTime          0L /* special Time */
0140 
0141 #define NoSymbol         0L /* special KeySym */
0142 
0143 /***************************************************************** 
0144  * EVENT DEFINITIONS 
0145  *****************************************************************/
0146 
0147 /* Input Event Masks. Used as event-mask window attribute and as arguments
0148    to Grab requests.  Not to be confused with event names.  */
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 /* Event names.  Used in "type" field in XEvent structures.  Not to be
0178 confused with event masks above.  They start from 2 because 0 and 1
0179 are reserved in the protocol for errors and replies. */
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  /* must be bigger than any event # */
0216 
0217 
0218 /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
0219    state in various key-, mouse-, and button-related events. */
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 /* modifier names.  Used to build a SetModifierMapping request or
0231    to read a GetModifierMapping request.  These correspond to the
0232    masks defined above. */
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 /* button masks.  Used in same manner as Key masks above. Not to be confused
0244    with button names below. */
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)  /* used in GrabButton, GrabKey */
0253 
0254 
0255 /* button names. Used as arguments to GrabButton and as detail in ButtonPress
0256    and ButtonRelease events.  Not to be confused with button masks above.
0257    Note that 0 is already defined above as "AnyButton".  */
0258 
0259 #define Button1         1
0260 #define Button2         2
0261 #define Button3         3
0262 #define Button4         4
0263 #define Button5         5
0264 
0265 /* Notify modes */
0266 
0267 #define NotifyNormal        0
0268 #define NotifyGrab      1
0269 #define NotifyUngrab        2
0270 #define NotifyWhileGrabbed  3
0271 
0272 #define NotifyHint      1   /* for MotionNotify events */
0273                
0274 /* Notify detail */
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 /* Visibility notify */
0286 
0287 #define VisibilityUnobscured        0
0288 #define VisibilityPartiallyObscured 1
0289 #define VisibilityFullyObscured     2
0290 
0291 /* Circulation request */
0292 
0293 #define PlaceOnTop      0
0294 #define PlaceOnBottom       1
0295 
0296 /* protocol families */
0297 
0298 #define FamilyInternet      0   /* IPv4 */
0299 #define FamilyDECnet        1
0300 #define FamilyChaos     2
0301 #define FamilyInternet6     6   /* IPv6 */
0302 
0303 /* authentication families not tied to a specific protocol */
0304 #define FamilyServerInterpreted 5
0305 
0306 /* Property notification */
0307 
0308 #define PropertyNewValue    0
0309 #define PropertyDelete      1
0310 
0311 /* Color Map notification */
0312 
0313 #define ColormapUninstalled 0
0314 #define ColormapInstalled   1
0315 
0316 /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
0317 
0318 #define GrabModeSync        0
0319 #define GrabModeAsync       1
0320 
0321 /* GrabPointer, GrabKeyboard reply status */
0322 
0323 #define GrabSuccess     0
0324 #define AlreadyGrabbed      1
0325 #define GrabInvalidTime     2
0326 #define GrabNotViewable     3
0327 #define GrabFrozen      4
0328 
0329 /* AllowEvents modes */
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 /* Used in SetInputFocus, GetInputFocus */
0341 
0342 #define RevertToNone        (int)None
0343 #define RevertToPointerRoot (int)PointerRoot
0344 #define RevertToParent      2
0345 
0346 /*****************************************************************
0347  * ERROR CODES 
0348  *****************************************************************/
0349 
0350 #define Success        0    /* everything's okay */
0351 #define BadRequest     1    /* bad request code */
0352 #define BadValue       2    /* int parameter out of range */
0353 #define BadWindow      3    /* parameter not a Window */
0354 #define BadPixmap      4    /* parameter not a Pixmap */
0355 #define BadAtom        5    /* parameter not an Atom */
0356 #define BadCursor      6    /* parameter not a Cursor */
0357 #define BadFont        7    /* parameter not a Font */
0358 #define BadMatch       8    /* parameter mismatch */
0359 #define BadDrawable    9    /* parameter not a Pixmap or Window */
0360 #define BadAccess     10    /* depending on context:
0361                  - key/button already grabbed
0362                  - attempt to free an illegal 
0363                    cmap entry 
0364                 - attempt to store into a read-only 
0365                    color map entry.
0366                 - attempt to modify the access control
0367                    list from other than the local host.
0368                 */
0369 #define BadAlloc      11    /* insufficient resources */
0370 #define BadColor      12    /* no such colormap */
0371 #define BadGC         13    /* parameter not a GC */
0372 #define BadIDChoice   14    /* choice not in range or already used */
0373 #define BadName       15    /* font or color name doesn't exist */
0374 #define BadLength     16    /* Request length incorrect */
0375 #define BadImplementation 17    /* server is defective */
0376 
0377 #define FirstExtensionError 128
0378 #define LastExtensionError  255
0379 
0380 /*****************************************************************
0381  * WINDOW DEFINITIONS 
0382  *****************************************************************/
0383 
0384 /* Window classes used by CreateWindow */
0385 /* Note that CopyFromParent is already defined as 0 above */
0386 
0387 #define InputOutput     1
0388 #define InputOnly       2
0389 
0390 /* Window attributes for CreateWindow and ChangeWindowAttributes */
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 /* ConfigureWindow structure */
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 /* Bit Gravity */
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 /* Window gravity + bit gravity above */
0434 
0435 #define UnmapGravity        0
0436 
0437 /* Used in CreateWindow for backing-store hint */
0438 
0439 #define NotUseful               0
0440 #define WhenMapped              1
0441 #define Always                  2
0442 
0443 /* Used in GetWindowAttributes reply */
0444 
0445 #define IsUnmapped      0
0446 #define IsUnviewable        1
0447 #define IsViewable      2
0448 
0449 /* Used in ChangeSaveSet */
0450 
0451 #define SetModeInsert           0
0452 #define SetModeDelete           1
0453 
0454 /* Used in ChangeCloseDownMode */
0455 
0456 #define DestroyAll              0
0457 #define RetainPermanent         1
0458 #define RetainTemporary         2
0459 
0460 /* Window stacking method (in configureWindow) */
0461 
0462 #define Above                   0
0463 #define Below                   1
0464 #define TopIf                   2
0465 #define BottomIf                3
0466 #define Opposite                4
0467 
0468 /* Circulation direction */
0469 
0470 #define RaiseLowest             0
0471 #define LowerHighest            1
0472 
0473 /* Property modes */
0474 
0475 #define PropModeReplace         0
0476 #define PropModePrepend         1
0477 #define PropModeAppend          2
0478 
0479 /*****************************************************************
0480  * GRAPHICS DEFINITIONS
0481  *****************************************************************/
0482 
0483 /* graphics functions, as in GC.alu */
0484 
0485 #define GXclear         0x0     /* 0 */
0486 #define GXand           0x1     /* src AND dst */
0487 #define GXandReverse        0x2     /* src AND NOT dst */
0488 #define GXcopy          0x3     /* src */
0489 #define GXandInverted       0x4     /* NOT src AND dst */
0490 #define GXnoop          0x5     /* dst */
0491 #define GXxor           0x6     /* src XOR dst */
0492 #define GXor            0x7     /* src OR dst */
0493 #define GXnor           0x8     /* NOT src AND NOT dst */
0494 #define GXequiv         0x9     /* NOT src XOR dst */
0495 #define GXinvert        0xa     /* NOT dst */
0496 #define GXorReverse     0xb     /* src OR NOT dst */
0497 #define GXcopyInverted      0xc     /* NOT src */
0498 #define GXorInverted        0xd     /* NOT src OR dst */
0499 #define GXnand          0xe     /* NOT src OR NOT dst */
0500 #define GXset           0xf     /* 1 */
0501 
0502 /* LineStyle */
0503 
0504 #define LineSolid       0
0505 #define LineOnOffDash       1
0506 #define LineDoubleDash      2
0507 
0508 /* capStyle */
0509 
0510 #define CapNotLast      0
0511 #define CapButt         1
0512 #define CapRound        2
0513 #define CapProjecting       3
0514 
0515 /* joinStyle */
0516 
0517 #define JoinMiter       0
0518 #define JoinRound       1
0519 #define JoinBevel       2
0520 
0521 /* fillStyle */
0522 
0523 #define FillSolid       0
0524 #define FillTiled       1
0525 #define FillStippled        2
0526 #define FillOpaqueStippled  3
0527 
0528 /* fillRule */
0529 
0530 #define EvenOddRule     0
0531 #define WindingRule     1
0532 
0533 /* subwindow mode */
0534 
0535 #define ClipByChildren      0
0536 #define IncludeInferiors    1
0537 
0538 /* SetClipRectangles ordering */
0539 
0540 #define Unsorted        0
0541 #define YSorted         1
0542 #define YXSorted        2
0543 #define YXBanded        3
0544 
0545 /* CoordinateMode for drawing routines */
0546 
0547 #define CoordModeOrigin     0   /* relative to the origin */
0548 #define CoordModePrevious       1   /* relative to previous point */
0549 
0550 /* Polygon shapes */
0551 
0552 #define Complex         0   /* paths may intersect */
0553 #define Nonconvex       1   /* no paths intersect, but not convex */
0554 #define Convex          2   /* wholly convex */
0555 
0556 /* Arc modes for PolyFillArc */
0557 
0558 #define ArcChord        0   /* join endpoints of arc */
0559 #define ArcPieSlice     1   /* join endpoints to center of arc */
0560 
0561 /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
0562    GC.stateChanges */
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  * FONTS 
0591  *****************************************************************/
0592 
0593 /* used in QueryFont -- draw direction */
0594 
0595 #define FontLeftToRight     0
0596 #define FontRightToLeft     1
0597 
0598 #define FontChange      255
0599 
0600 /*****************************************************************
0601  *  IMAGING 
0602  *****************************************************************/
0603 
0604 /* ImageFormat -- PutImage, GetImage */
0605 
0606 #define XYBitmap        0   /* depth 1, XYFormat */
0607 #define XYPixmap        1   /* depth == drawable depth */
0608 #define ZPixmap         2   /* depth == drawable depth */
0609 
0610 /*****************************************************************
0611  *  COLOR MAP STUFF 
0612  *****************************************************************/
0613 
0614 /* For CreateColormap */
0615 
0616 #define AllocNone       0   /* create map with no entries */
0617 #define AllocAll        1   /* allocate entire map writeable */
0618 
0619 
0620 /* Flags used in StoreNamedColor, StoreColors */
0621 
0622 #define DoRed           (1<<0)
0623 #define DoGreen         (1<<1)
0624 #define DoBlue          (1<<2)
0625 
0626 /*****************************************************************
0627  * CURSOR STUFF
0628  *****************************************************************/
0629 
0630 /* QueryBestSize Class */
0631 
0632 #define CursorShape     0   /* largest size that can be displayed */
0633 #define TileShape       1   /* size tiled fastest */
0634 #define StippleShape        2   /* size stippled fastest */
0635 
0636 /***************************************************************** 
0637  * KEYBOARD/POINTER STUFF
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 /* masks for ChangeKeyboardControl */
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  * SCREEN SAVER STUFF 
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 /* for ForceScreenSaver */
0682 
0683 #define ScreenSaverReset 0
0684 #define ScreenSaverActive 1
0685 
0686 /*****************************************************************
0687  * HOSTS AND CONNECTIONS
0688  *****************************************************************/
0689 
0690 /* for ChangeHosts */
0691 
0692 #define HostInsert      0
0693 #define HostDelete      1
0694 
0695 /* for ChangeAccessControl */
0696 
0697 #define EnableAccess        1      
0698 #define DisableAccess       0
0699 
0700 /* Display classes  used in opening the connection 
0701  * Note that the statically allocated ones are even numbered and the
0702  * dynamically changeable ones are odd numbered */
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 /* Byte order  used in imageByteOrder and bitmapBitOrder */
0713 
0714 #define LSBFirst        0
0715 #define MSBFirst        1
0716 
0717 #endif /* X_H */