X.h 20 KB

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