PageRenderTime 57ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/gcl-2.6.8/xgcl-2/gcl_X.lsp

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