home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / ImageMagick-4.0.6.tar.gz / ImageMagick-4.0.6.tar / ImageMagick-4.0.6 / xlib / X11 / X.h < prev    next >
C/C++ Source or Header  |  1996-12-05  |  20KB  |  704 lines

  1. /*
  2.  *    $XConsortium: X.h,v 1.69 94/04/17 20:10:48 dpw Exp $
  3.  */
  4.  
  5. /* Definitions for the X window system likely to be used by applications */
  6.  
  7. #ifndef X_H
  8. #define X_H
  9.  
  10. /***********************************************************
  11.  
  12. Copyright (c) 1987  X Consortium
  13.  
  14. Permission is hereby granted, free of charge, to any person obtaining a copy
  15. of this software and associated documentation files (the "Software"), to deal
  16. in the Software without restriction, including without limitation the rights
  17. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  18. copies of the Software, and to permit persons to whom the Software is
  19. furnished to do so, subject to the following conditions:
  20.  
  21. The above copyright notice and this permission notice shall be included in
  22. all copies or substantial portions of the Software.
  23.  
  24. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  25. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  26. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  27. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  28. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  29. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  30.  
  31. Except as contained in this notice, the name of the X Consortium shall not be
  32. used in advertising or otherwise to promote the sale, use or other dealings
  33. in this Software without prior written authorization from the X Consortium.
  34.  
  35.  
  36. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  37.  
  38.                         All Rights Reserved
  39.  
  40. Permission to use, copy, modify, and distribute this software and its 
  41. documentation for any purpose and without fee is hereby granted, 
  42. provided that the above copyright notice appear in all copies and that
  43. both that copyright notice and this permission notice appear in 
  44. supporting documentation, and that the name of Digital not be
  45. used in advertising or publicity pertaining to distribution of the
  46. software without specific, written prior permission.  
  47.  
  48. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  49. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  50. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  51. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  52. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  53. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  54. SOFTWARE.
  55.  
  56. ******************************************************************/
  57. #define X_PROTOCOL    11        /* current protocol version */
  58. #define X_PROTOCOL_REVISION 0        /* current minor version */
  59.  
  60. #ifdef __MWERKS__
  61. #   define Cursor XCursor
  62. #   define cursor xcursor
  63. #   define Region XRegion
  64. #endif
  65.  
  66. /* Resources */
  67.  
  68. /*
  69.  * _XSERVER64 must ONLY be defined when compiling X server sources on
  70.  * systems where unsigned long is not 32 bits, must NOT be used in
  71.  * client or library code.
  72.  */
  73. #ifndef _XSERVER64
  74. typedef unsigned long XID;
  75. typedef unsigned long Mask;
  76. typedef unsigned long Atom;
  77. typedef unsigned long VisualID;
  78. typedef unsigned long Time;
  79. #else
  80. #include <X11/Xmd.h>
  81. typedef CARD32 XID;
  82. typedef CARD32 Mask;
  83. typedef CARD32 Atom;
  84. typedef CARD32 VisualID;
  85. typedef CARD32 Time;
  86. #endif
  87.  
  88. typedef XID Window;
  89. typedef XID Drawable;
  90. typedef XID Font;
  91. typedef XID Pixmap;
  92. typedef XID Cursor;
  93. typedef XID Colormap;
  94. typedef XID GContext;
  95. typedef XID KeySym;
  96.  
  97. typedef unsigned char KeyCode;
  98.  
  99. /*****************************************************************
  100.  * RESERVED RESOURCE AND CONSTANT DEFINITIONS
  101.  *****************************************************************/
  102.  
  103. #define None                 0L    /* universal null resource or null atom */
  104.  
  105. #define ParentRelative       1L    /* background pixmap in CreateWindow
  106.                     and ChangeWindowAttributes */
  107.  
  108. #define CopyFromParent       0L    /* border pixmap in CreateWindow
  109.                        and ChangeWindowAttributes
  110.                    special VisualID and special window
  111.                        class passed to CreateWindow */
  112.  
  113. #define PointerWindow        0L    /* destination window in SendEvent */
  114. #define InputFocus           1L    /* destination window in SendEvent */
  115.  
  116. #define PointerRoot          1L    /* focus window in SetInputFocus */
  117.  
  118. #define AnyPropertyType      0L    /* special Atom, passed to GetProperty */
  119.  
  120. #define AnyKey             0L    /* special Key Code, passed to GrabKey */
  121.  
  122. #define AnyButton            0L    /* special Button Code, passed to GrabButton */
  123.  
  124. #define AllTemporary         0L    /* special Resource ID passed to KillClient */
  125.  
  126. #define CurrentTime          0L    /* special Time */
  127.  
  128. #define NoSymbol         0L    /* special KeySym */
  129.  
  130. /***************************************************************** 
  131.  * EVENT DEFINITIONS 
  132.  *****************************************************************/
  133.  
  134. /* Input Event Masks. Used as event-mask window attribute and as arguments
  135.    to Grab requests.  Not to be confused with event names.  */
  136.  
  137. #define NoEventMask            0L
  138. #define KeyPressMask            (1L<<0)  
  139. #define KeyReleaseMask            (1L<<1)  
  140. #define ButtonPressMask            (1L<<2)  
  141. #define ButtonReleaseMask        (1L<<3)  
  142. #define EnterWindowMask            (1L<<4)  
  143. #define LeaveWindowMask            (1L<<5)  
  144. #define PointerMotionMask        (1L<<6)  
  145. #define PointerMotionHintMask        (1L<<7)  
  146. #define Button1MotionMask        (1L<<8)  
  147. #define Button2MotionMask        (1L<<9)  
  148. #define Button3MotionMask        (1L<<10) 
  149. #define Button4MotionMask        (1L<<11) 
  150. #define Button5MotionMask        (1L<<12) 
  151. #define ButtonMotionMask        (1L<<13) 
  152. #define KeymapStateMask            (1L<<14)
  153. #define ExposureMask            (1L<<15) 
  154. #define VisibilityChangeMask        (1L<<16) 
  155. #define StructureNotifyMask        (1L<<17) 
  156. #define ResizeRedirectMask        (1L<<18) 
  157. #define SubstructureNotifyMask        (1L<<19) 
  158. #define SubstructureRedirectMask    (1L<<20) 
  159. #define FocusChangeMask            (1L<<21) 
  160. #define PropertyChangeMask        (1L<<22) 
  161. #define ColormapChangeMask        (1L<<23) 
  162. #define OwnerGrabButtonMask        (1L<<24) 
  163.  
  164. /* Event names.  Used in "type" field in XEvent structures.  Not to be
  165. confused with event masks above.  They start from 2 because 0 and 1
  166. are reserved in the protocol for errors and replies. */
  167.  
  168. #define KeyPress        2
  169. #define KeyRelease        3
  170. #define ButtonPress        4
  171. #define ButtonRelease        5
  172. #define MotionNotify        6
  173. #define EnterNotify        7
  174. #define LeaveNotify        8
  175. #define FocusIn            9
  176. #define FocusOut        10
  177. #define KeymapNotify        11
  178. #define Expose            12
  179. #define GraphicsExpose        13
  180. #define NoExpose        14
  181. #define VisibilityNotify    15
  182. #define CreateNotify        16
  183. #define DestroyNotify        17
  184. #define UnmapNotify        18
  185. #define MapNotify        19
  186. #define MapRequest        20
  187. #define ReparentNotify        21
  188. #define ConfigureNotify        22
  189. #define ConfigureRequest    23
  190. #define GravityNotify        24
  191. #define ResizeRequest        25
  192. #define CirculateNotify        26
  193. #define CirculateRequest    27
  194. #define PropertyNotify        28
  195. #define SelectionClear        29
  196. #define SelectionRequest    30
  197. #define SelectionNotify        31
  198. #define ColormapNotify        32
  199. #define ClientMessage        33
  200. #define MappingNotify        34
  201. #define LASTEvent        35    /* must be bigger than any event # */
  202.  
  203.  
  204. /* Key masks. Used as modifiers to GrabButton and GrabKey, results of QueryPointer,
  205.    state in various key-, mouse-, and button-related events. */
  206.  
  207. #define ShiftMask        (1<<0)
  208. #define LockMask        (1<<1)
  209. #define ControlMask        (1<<2)
  210. #define Mod1Mask        (1<<3)
  211. #define Mod2Mask        (1<<4)
  212. #define Mod3Mask        (1<<5)
  213. #define Mod4Mask        (1<<6)
  214. #define Mod5Mask        (1<<7)
  215.  
  216. /* modifier names.  Used to build a SetModifierMapping request or
  217.    to read a GetModifierMapping request.  These correspond to the
  218.    masks defined above. */
  219. #define ShiftMapIndex        0
  220. #define LockMapIndex        1
  221. #define ControlMapIndex        2
  222. #define Mod1MapIndex        3
  223. #define Mod2MapIndex        4
  224. #define Mod3MapIndex        5
  225. #define Mod4MapIndex        6
  226. #define Mod5MapIndex        7
  227.  
  228.  
  229. /* button masks.  Used in same manner as Key masks above. Not to be confused
  230.    with button names below. */
  231.  
  232. #define Button1Mask        (1<<8)
  233. #define Button2Mask        (1<<9)
  234. #define Button3Mask        (1<<10)
  235. #define Button4Mask        (1<<11)
  236. #define Button5Mask        (1<<12)
  237.  
  238. #define AnyModifier        (1<<15)  /* used in GrabButton, GrabKey */
  239.  
  240.  
  241. /* button names. Used as arguments to GrabButton and as detail in ButtonPress
  242.    and ButtonRelease events.  Not to be confused with button masks above.
  243.    Note that 0 is already defined above as "AnyButton".  */
  244.  
  245. #define Button1            1
  246. #define Button2            2
  247. #define Button3            3
  248. #define Button4            4
  249. #define Button5            5
  250.  
  251. /* Notify modes */
  252.  
  253. #define NotifyNormal        0
  254. #define NotifyGrab        1
  255. #define NotifyUngrab        2
  256. #define NotifyWhileGrabbed    3
  257.  
  258. #define NotifyHint        1    /* for MotionNotify events */
  259.                
  260. /* Notify detail */
  261.  
  262. #define NotifyAncestor        0
  263. #define NotifyVirtual        1
  264. #define NotifyInferior        2
  265. #define NotifyNonlinear        3
  266. #define NotifyNonlinearVirtual    4
  267. #define NotifyPointer        5
  268. #define NotifyPointerRoot    6
  269. #define NotifyDetailNone    7
  270.  
  271. /* Visibility notify */
  272.  
  273. #define VisibilityUnobscured        0
  274. #define VisibilityPartiallyObscured    1
  275. #define VisibilityFullyObscured        2
  276.  
  277. /* Circulation request */
  278.  
  279. #define PlaceOnTop        0
  280. #define PlaceOnBottom        1
  281.  
  282. /* protocol families */
  283.  
  284. #define FamilyInternet        0
  285. #define FamilyDECnet        1
  286. #define FamilyChaos        2
  287.  
  288. /* Property notification */
  289.  
  290. #define PropertyNewValue    0
  291. #define PropertyDelete        1
  292.  
  293. /* Color Map notification */
  294.  
  295. #define ColormapUninstalled    0
  296. #define ColormapInstalled    1
  297.  
  298. /* GrabPointer, GrabButton, GrabKeyboard, GrabKey Modes */
  299.  
  300. #define GrabModeSync        0
  301. #define GrabModeAsync        1
  302.  
  303. /* GrabPointer, GrabKeyboard reply status */
  304.  
  305. #define GrabSuccess        0
  306. #define AlreadyGrabbed        1
  307. #define GrabInvalidTime        2
  308. #define GrabNotViewable        3
  309. #define GrabFrozen        4
  310.  
  311. /* AllowEvents modes */
  312.  
  313. #define AsyncPointer        0
  314. #define SyncPointer        1
  315. #define ReplayPointer        2
  316. #define AsyncKeyboard        3
  317. #define SyncKeyboard        4
  318. #define ReplayKeyboard        5
  319. #define AsyncBoth        6
  320. #define SyncBoth        7
  321.  
  322. /* Used in SetInputFocus, GetInputFocus */
  323.  
  324. #define RevertToNone        (int)None
  325. #define RevertToPointerRoot    (int)PointerRoot
  326. #define RevertToParent        2
  327.  
  328. /*****************************************************************
  329.  * ERROR CODES 
  330.  *****************************************************************/
  331.  
  332. #define Success           0    /* everything's okay */
  333. #define BadRequest       1    /* bad request code */
  334. #define BadValue       2    /* int parameter out of range */
  335. #define BadWindow       3    /* parameter not a Window */
  336. #define BadPixmap       4    /* parameter not a Pixmap */
  337. #define BadAtom           5    /* parameter not an Atom */
  338. #define BadCursor       6    /* parameter not a Cursor */
  339. #define BadFont           7    /* parameter not a Font */
  340. #define BadMatch       8    /* parameter mismatch */
  341. #define BadDrawable       9    /* parameter not a Pixmap or Window */
  342. #define BadAccess      10    /* depending on context:
  343.                  - key/button already grabbed
  344.                  - attempt to free an illegal 
  345.                    cmap entry 
  346.                 - attempt to store into a read-only 
  347.                    color map entry.
  348.                  - attempt to modify the access control
  349.                    list from other than the local host.
  350.                 */
  351. #define BadAlloc      11    /* insufficient resources */
  352. #define BadColor      12    /* no such colormap */
  353. #define BadGC          13    /* parameter not a GC */
  354. #define BadIDChoice      14    /* choice not in range or already used */
  355. #define BadName          15    /* font or color name doesn't exist */
  356. #define BadLength      16    /* Request length incorrect */
  357. #define BadImplementation 17    /* server is defective */
  358.  
  359. #define FirstExtensionError    128
  360. #define LastExtensionError    255
  361.  
  362. /*****************************************************************
  363.  * WINDOW DEFINITIONS 
  364.  *****************************************************************/
  365.  
  366. /* Window classes used by CreateWindow */
  367. /* Note that CopyFromParent is already defined as 0 above */
  368.  
  369. #define InputOutput        1
  370. #define InputOnly        2
  371.  
  372. /* Window attributes for CreateWindow and ChangeWindowAttributes */
  373.  
  374. #define CWBackPixmap        (1L<<0)
  375. #define CWBackPixel        (1L<<1)
  376. #define CWBorderPixmap        (1L<<2)
  377. #define CWBorderPixel           (1L<<3)
  378. #define CWBitGravity        (1L<<4)
  379. #define CWWinGravity        (1L<<5)
  380. #define CWBackingStore          (1L<<6)
  381. #define CWBackingPlanes            (1L<<7)
  382. #define CWBackingPixel            (1L<<8)
  383. #define CWOverrideRedirect    (1L<<9)
  384. #define CWSaveUnder        (1L<<10)
  385. #define CWEventMask        (1L<<11)
  386. #define CWDontPropagate            (1L<<12)
  387. #define CWColormap        (1L<<13)
  388. #define CWCursor            (1L<<14)
  389.  
  390. /* ConfigureWindow structure */
  391.  
  392. #define CWX            (1<<0)
  393. #define CWY            (1<<1)
  394. #define CWWidth            (1<<2)
  395. #define CWHeight        (1<<3)
  396. #define CWBorderWidth        (1<<4)
  397. #define CWSibling        (1<<5)
  398. #define CWStackMode        (1<<6)
  399.  
  400.  
  401. /* Bit Gravity */
  402.  
  403. #define ForgetGravity        0
  404. #define NorthWestGravity    1
  405. #define NorthGravity        2
  406. #define NorthEastGravity    3
  407. #define WestGravity        4
  408. #define CenterGravity        5
  409. #define EastGravity        6
  410. #define SouthWestGravity    7
  411. #define SouthGravity        8
  412. #define SouthEastGravity    9
  413. #define StaticGravity        10
  414.  
  415. /* Window gravity + bit gravity above */
  416.  
  417. #define UnmapGravity        0
  418.  
  419. /* Used in CreateWindow for backing-store hint */
  420.  
  421. #define NotUseful               0
  422. #define WhenMapped              1
  423. #define Always                  2
  424.  
  425. /* Used in GetWindowAttributes reply */
  426.  
  427. #define IsUnmapped        0
  428. #define IsUnviewable        1
  429. #define IsViewable        2
  430.  
  431. /* Used in ChangeSaveSet */
  432.  
  433. #define SetModeInsert           0
  434. #define SetModeDelete           1
  435.  
  436. /* Used in ChangeCloseDownMode */
  437.  
  438. #define DestroyAll              0
  439. #define RetainPermanent         1
  440. #define RetainTemporary         2
  441.  
  442. /* Window stacking method (in configureWindow) */
  443.  
  444. #define Above                   0
  445. #define Below                   1
  446. #define TopIf                   2
  447. #define BottomIf                3
  448. #define Opposite                4
  449.  
  450. /* Circulation direction */
  451.  
  452. #define RaiseLowest             0
  453. #define LowerHighest            1
  454.  
  455. /* Property modes */
  456.  
  457. #define PropModeReplace         0
  458. #define PropModePrepend         1
  459. #define PropModeAppend          2
  460.  
  461. /*****************************************************************
  462.  * GRAPHICS DEFINITIONS
  463.  *****************************************************************/
  464.  
  465. /* graphics functions, as in GC.alu */
  466.  
  467. #define    GXclear            0x0        /* 0 */
  468. #define GXand            0x1        /* src AND dst */
  469. #define GXandReverse        0x2        /* src AND NOT dst */
  470. #define GXcopy            0x3        /* src */
  471. #define GXandInverted        0x4        /* NOT src AND dst */
  472. #define    GXnoop            0x5        /* dst */
  473. #define GXxor            0x6        /* src XOR dst */
  474. #define GXor            0x7        /* src OR dst */
  475. #define GXnor            0x8        /* NOT src AND NOT dst */
  476. #define GXequiv            0x9        /* NOT src XOR dst */
  477. #define GXinvert        0xa        /* NOT dst */
  478. #define GXorReverse        0xb        /* src OR NOT dst */
  479. #define GXcopyInverted        0xc        /* NOT src */
  480. #define GXorInverted        0xd        /* NOT src OR dst */
  481. #define GXnand            0xe        /* NOT src OR NOT dst */
  482. #define GXset            0xf        /* 1 */
  483.  
  484. /* LineStyle */
  485.  
  486. #define LineSolid        0
  487. #define LineOnOffDash        1
  488. #define LineDoubleDash        2
  489.  
  490. /* capStyle */
  491.  
  492. #define CapNotLast        0
  493. #define CapButt            1
  494. #define CapRound        2
  495. #define CapProjecting        3
  496.  
  497. /* joinStyle */
  498.  
  499. #define JoinMiter        0
  500. #define JoinRound        1
  501. #define JoinBevel        2
  502.  
  503. /* fillStyle */
  504.  
  505. #define FillSolid        0
  506. #define FillTiled        1
  507. #define FillStippled        2
  508. #define FillOpaqueStippled    3
  509.  
  510. /* fillRule */
  511.  
  512. #define EvenOddRule        0
  513. #define WindingRule        1
  514.  
  515. /* subwindow mode */
  516.  
  517. #define ClipByChildren        0
  518. #define IncludeInferiors    1
  519.  
  520. /* SetClipRectangles ordering */
  521.  
  522. #define Unsorted        0
  523. #define YSorted            1
  524. #define YXSorted        2
  525. #define YXBanded        3
  526.  
  527. /* CoordinateMode for drawing routines */
  528.  
  529. #define CoordModeOrigin        0    /* relative to the origin */
  530. #define CoordModePrevious       1    /* relative to previous point */
  531.  
  532. /* Polygon shapes */
  533.  
  534. #define Complex            0    /* paths may intersect */
  535. #define Nonconvex        1    /* no paths intersect, but not convex */
  536. #define Convex            2    /* wholly convex */
  537.  
  538. /* Arc modes for PolyFillArc */
  539.  
  540. #define ArcChord        0    /* join endpoints of arc */
  541. #define ArcPieSlice        1    /* join endpoints to center of arc */
  542.  
  543. /* GC components: masks used in CreateGC, CopyGC, ChangeGC, OR'ed into
  544.    GC.stateChanges */
  545.  
  546. #define GCFunction              (1L<<0)
  547. #define GCPlaneMask             (1L<<1)
  548. #define GCForeground            (1L<<2)
  549. #define GCBackground            (1L<<3)
  550. #define GCLineWidth             (1L<<4)
  551. #define GCLineStyle             (1L<<5)
  552. #define GCCapStyle              (1L<<6)
  553. #define GCJoinStyle        (1L<<7)
  554. #define GCFillStyle        (1L<<8)
  555. #define GCFillRule        (1L<<9) 
  556. #define GCTile            (1L<<10)
  557. #define GCStipple        (1L<<11)
  558. #define GCTileStipXOrigin    (1L<<12)
  559. #define GCTileStipYOrigin    (1L<<13)
  560. #define GCFont             (1L<<14)
  561. #define GCSubwindowMode        (1L<<15)
  562. #define GCGraphicsExposures     (1L<<16)
  563. #define GCClipXOrigin        (1L<<17)
  564. #define GCClipYOrigin        (1L<<18)
  565. #define GCClipMask        (1L<<19)
  566. #define GCDashOffset        (1L<<20)
  567. #define GCDashList        (1L<<21)
  568. #define GCArcMode        (1L<<22)
  569.  
  570. #define GCLastBit        22
  571. /*****************************************************************
  572.  * FONTS 
  573.  *****************************************************************/
  574.  
  575. /* used in QueryFont -- draw direction */
  576.  
  577. #define FontLeftToRight        0
  578. #define FontRightToLeft        1
  579.  
  580. #define FontChange        255
  581.  
  582. /*****************************************************************
  583.  *  IMAGING 
  584.  *****************************************************************/
  585.  
  586. /* ImageFormat -- PutImage, GetImage */
  587.  
  588. #define XYBitmap        0    /* depth 1, XYFormat */
  589. #define XYPixmap        1    /* depth == drawable depth */
  590. #define ZPixmap            2    /* depth == drawable depth */
  591.  
  592. /*****************************************************************
  593.  *  COLOR MAP STUFF 
  594.  *****************************************************************/
  595.  
  596. /* For CreateColormap */
  597.  
  598. #define AllocNone        0    /* create map with no entries */
  599. #define AllocAll        1    /* allocate entire map writeable */
  600.  
  601.  
  602. /* Flags used in StoreNamedColor, StoreColors */
  603.  
  604. #define DoRed            (1<<0)
  605. #define DoGreen            (1<<1)
  606. #define DoBlue            (1<<2)
  607.  
  608. /*****************************************************************
  609.  * CURSOR STUFF
  610.  *****************************************************************/
  611.  
  612. /* QueryBestSize Class */
  613.  
  614. #define CursorShape        0    /* largest size that can be displayed */
  615. #define TileShape        1    /* size tiled fastest */
  616. #define StippleShape        2    /* size stippled fastest */
  617.  
  618. /***************************************************************** 
  619.  * KEYBOARD/POINTER STUFF
  620.  *****************************************************************/
  621.  
  622. #define AutoRepeatModeOff    0
  623. #define AutoRepeatModeOn    1
  624. #define AutoRepeatModeDefault    2
  625.  
  626. #define LedModeOff        0
  627. #define LedModeOn        1
  628.  
  629. /* masks for ChangeKeyboardControl */
  630.  
  631. #define KBKeyClickPercent    (1L<<0)
  632. #define KBBellPercent        (1L<<1)
  633. #define KBBellPitch        (1L<<2)
  634. #define KBBellDuration        (1L<<3)
  635. #define KBLed            (1L<<4)
  636. #define KBLedMode        (1L<<5)
  637. #define KBKey            (1L<<6)
  638. #define KBAutoRepeatMode    (1L<<7)
  639.  
  640. #define MappingSuccess         0
  641. #define MappingBusy            1
  642. #define MappingFailed        2
  643.  
  644. #define MappingModifier        0
  645. #define MappingKeyboard        1
  646. #define MappingPointer        2
  647.  
  648. /*****************************************************************
  649.  * SCREEN SAVER STUFF 
  650.  *****************************************************************/
  651.  
  652. #define DontPreferBlanking    0
  653. #define PreferBlanking        1
  654. #define DefaultBlanking        2
  655.  
  656. #define DisableScreenSaver    0
  657. #define DisableScreenInterval    0
  658.  
  659. #define DontAllowExposures    0
  660. #define AllowExposures        1
  661. #define DefaultExposures    2
  662.  
  663. /* for ForceScreenSaver */
  664.  
  665. #define ScreenSaverReset 0
  666. #define ScreenSaverActive 1
  667.  
  668. /*****************************************************************
  669.  * HOSTS AND CONNECTIONS
  670.  *****************************************************************/
  671.  
  672. /* for ChangeHosts */
  673.  
  674. #define HostInsert        0
  675. #define HostDelete        1
  676.  
  677. /* for ChangeAccessControl */
  678.  
  679. #define EnableAccess        1      
  680. #define DisableAccess        0
  681.  
  682. /* Display classes  used in opening the connection 
  683.  * Note that the statically allocated ones are even numbered and the
  684.  * dynamically changeable ones are odd numbered */
  685.  
  686. #define StaticGray        0
  687. #define GrayScale        1
  688. #define StaticColor        2
  689. #define PseudoColor        3
  690. #define TrueColor        4
  691. #define DirectColor        5
  692.  
  693.  
  694. /* Byte order  used in imageByteOrder and bitmapBitOrder */
  695.  
  696. #define LSBFirst        0
  697. #define MSBFirst        1
  698.  
  699. #ifdef __MWERKS__
  700. #   undef Region
  701. #endif
  702.  
  703. #endif /* X_H */
  704.