x.nim 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. #
  2. # Automatically converted by H2Pas 0.99.15 from x.h
  3. # The following command line parameters were used:
  4. # -p
  5. # -T
  6. # -S
  7. # -d
  8. # -c
  9. # x.h
  10. #
  11. # Pointers to basic pascal types, inserted by h2pas conversion program.
  12. const
  13. X_PROTOCOL* = 11
  14. X_PROTOCOL_REVISION* = 0
  15. type
  16. PXID* = ptr TXID
  17. TXID* = culong
  18. PMask* = ptr TMask
  19. TMask* = culong
  20. PPAtom* = ptr PAtom
  21. PAtom* = ptr TAtom
  22. TAtom* = culong
  23. PVisualID* = ptr TVisualID
  24. TVisualID* = culong
  25. PTime* = ptr TTime
  26. TTime* = culong
  27. PPWindow* = ptr PWindow
  28. PWindow* = ptr TWindow
  29. TWindow* = TXID
  30. PDrawable* = ptr TDrawable
  31. TDrawable* = TXID
  32. PFont* = ptr TFont
  33. TFont* = TXID
  34. PPixmap* = ptr TPixmap
  35. TPixmap* = TXID
  36. PCursor* = ptr TCursor
  37. TCursor* = TXID
  38. PColormap* = ptr TColormap
  39. TColormap* = TXID
  40. PGContext* = ptr TGContext
  41. TGContext* = TXID
  42. PKeySym* = ptr TKeySym
  43. TKeySym* = TXID
  44. PKeyCode* = ptr TKeyCode
  45. TKeyCode* = cuchar
  46. proc `==`*(a, b: TAtom): bool =
  47. return system.`==`(a,b)
  48. const
  49. None* = 0
  50. ParentRelative* = 1
  51. CopyFromParent* = 0
  52. PointerWindow* = 0
  53. InputFocus* = 1
  54. PointerRoot* = 1
  55. AnyPropertyType* = 0
  56. AnyKey* = 0
  57. AnyButton* = 0
  58. AllTemporary* = 0
  59. CurrentTime* = 0
  60. NoSymbol* = 0
  61. NoEventMask* = 0
  62. KeyPressMask* = 1 shl 0
  63. KeyReleaseMask* = 1 shl 1
  64. ButtonPressMask* = 1 shl 2
  65. ButtonReleaseMask* = 1 shl 3
  66. EnterWindowMask* = 1 shl 4
  67. LeaveWindowMask* = 1 shl 5
  68. PointerMotionMask* = 1 shl 6
  69. PointerMotionHintMask* = 1 shl 7
  70. Button1MotionMask* = 1 shl 8
  71. Button2MotionMask* = 1 shl 9
  72. Button3MotionMask* = 1 shl 10
  73. Button4MotionMask* = 1 shl 11
  74. Button5MotionMask* = 1 shl 12
  75. ButtonMotionMask* = 1 shl 13
  76. KeymapStateMask* = 1 shl 14
  77. ExposureMask* = 1 shl 15
  78. VisibilityChangeMask* = 1 shl 16
  79. StructureNotifyMask* = 1 shl 17
  80. ResizeRedirectMask* = 1 shl 18
  81. SubstructureNotifyMask* = 1 shl 19
  82. SubstructureRedirectMask* = 1 shl 20
  83. FocusChangeMask* = 1 shl 21
  84. PropertyChangeMask* = 1 shl 22
  85. ColormapChangeMask* = 1 shl 23
  86. OwnerGrabButtonMask* = 1 shl 24
  87. KeyPress* = 2
  88. KeyRelease* = 3
  89. ButtonPress* = 4
  90. ButtonRelease* = 5
  91. MotionNotify* = 6
  92. EnterNotify* = 7
  93. LeaveNotify* = 8
  94. FocusIn* = 9
  95. FocusOut* = 10
  96. KeymapNotify* = 11
  97. Expose* = 12
  98. GraphicsExpose* = 13
  99. NoExpose* = 14
  100. VisibilityNotify* = 15
  101. CreateNotify* = 16
  102. DestroyNotify* = 17
  103. UnmapNotify* = 18
  104. MapNotify* = 19
  105. MapRequest* = 20
  106. ReparentNotify* = 21
  107. ConfigureNotify* = 22
  108. ConfigureRequest* = 23
  109. GravityNotify* = 24
  110. ResizeRequest* = 25
  111. CirculateNotify* = 26
  112. CirculateRequest* = 27
  113. PropertyNotify* = 28
  114. SelectionClear* = 29
  115. SelectionRequest* = 30
  116. SelectionNotify* = 31
  117. ColormapNotify* = 32
  118. ClientMessage* = 33
  119. MappingNotify* = 34
  120. LASTEvent* = 35
  121. ShiftMask* = 1 shl 0
  122. LockMask* = 1 shl 1
  123. ControlMask* = 1 shl 2
  124. Mod1Mask* = 1 shl 3
  125. Mod2Mask* = 1 shl 4
  126. Mod3Mask* = 1 shl 5
  127. Mod4Mask* = 1 shl 6
  128. Mod5Mask* = 1 shl 7
  129. ShiftMapIndex* = 0
  130. LockMapIndex* = 1
  131. ControlMapIndex* = 2
  132. Mod1MapIndex* = 3
  133. Mod2MapIndex* = 4
  134. Mod3MapIndex* = 5
  135. Mod4MapIndex* = 6
  136. Mod5MapIndex* = 7
  137. Button1Mask* = 1 shl 8
  138. Button2Mask* = 1 shl 9
  139. Button3Mask* = 1 shl 10
  140. Button4Mask* = 1 shl 11
  141. Button5Mask* = 1 shl 12
  142. AnyModifier* = 1 shl 15
  143. Button1* = 1
  144. Button2* = 2
  145. Button3* = 3
  146. Button4* = 4
  147. Button5* = 5
  148. NotifyNormal* = 0
  149. NotifyGrab* = 1
  150. NotifyUngrab* = 2
  151. NotifyWhileGrabbed* = 3
  152. NotifyHint* = 1
  153. NotifyAncestor* = 0
  154. NotifyVirtual* = 1
  155. NotifyInferior* = 2
  156. NotifyNonlinear* = 3
  157. NotifyNonlinearVirtual* = 4
  158. NotifyPointer* = 5
  159. NotifyPointerRoot* = 6
  160. NotifyDetailNone* = 7
  161. VisibilityUnobscured* = 0
  162. VisibilityPartiallyObscured* = 1
  163. VisibilityFullyObscured* = 2
  164. PlaceOnTop* = 0
  165. PlaceOnBottom* = 1
  166. FamilyInternet* = 0
  167. FamilyDECnet* = 1
  168. FamilyChaos* = 2
  169. FamilyInternet6* = 6
  170. FamilyServerInterpreted* = 5
  171. PropertyNewValue* = 0
  172. PropertyDelete* = 1
  173. ColormapUninstalled* = 0
  174. ColormapInstalled* = 1
  175. GrabModeSync* = 0
  176. GrabModeAsync* = 1
  177. GrabSuccess* = 0
  178. AlreadyGrabbed* = 1
  179. GrabInvalidTime* = 2
  180. GrabNotViewable* = 3
  181. GrabFrozen* = 4
  182. AsyncPointer* = 0
  183. SyncPointer* = 1
  184. ReplayPointer* = 2
  185. AsyncKeyboard* = 3
  186. SyncKeyboard* = 4
  187. ReplayKeyboard* = 5
  188. AsyncBoth* = 6
  189. SyncBoth* = 7
  190. RevertToNone* = None
  191. RevertToPointerRoot* = PointerRoot
  192. RevertToParent* = 2
  193. Success* = 0
  194. BadRequest* = 1
  195. BadValue* = 2
  196. BadWindow* = 3
  197. BadPixmap* = 4
  198. BadAtom* = 5
  199. BadCursor* = 6
  200. BadFont* = 7
  201. BadMatch* = 8
  202. BadDrawable* = 9
  203. BadAccess* = 10
  204. BadAlloc* = 11
  205. BadColor* = 12
  206. BadGC* = 13
  207. BadIDChoice* = 14
  208. BadName* = 15
  209. BadLength* = 16
  210. BadImplementation* = 17
  211. FirstExtensionError* = 128
  212. LastExtensionError* = 255
  213. InputOutput* = 1
  214. InputOnly* = 2
  215. CWBackPixmap* = 1 shl 0
  216. CWBackPixel* = 1 shl 1
  217. CWBorderPixmap* = 1 shl 2
  218. CWBorderPixel* = 1 shl 3
  219. CWBitGravity* = 1 shl 4
  220. CWWinGravity* = 1 shl 5
  221. CWBackingStore* = 1 shl 6
  222. CWBackingPlanes* = 1 shl 7
  223. CWBackingPixel* = 1 shl 8
  224. CWOverrideRedirect* = 1 shl 9
  225. CWSaveUnder* = 1 shl 10
  226. CWEventMask* = 1 shl 11
  227. CWDontPropagate* = 1 shl 12
  228. CWColormap* = 1 shl 13
  229. CWCursor* = 1 shl 14
  230. CWX* = 1 shl 0
  231. CWY* = 1 shl 1
  232. CWWidth* = 1 shl 2
  233. CWHeight* = 1 shl 3
  234. CWBorderWidth* = 1 shl 4
  235. CWSibling* = 1 shl 5
  236. CWStackMode* = 1 shl 6
  237. ForgetGravity* = 0
  238. NorthWestGravity* = 1
  239. NorthGravity* = 2
  240. NorthEastGravity* = 3
  241. WestGravity* = 4
  242. CenterGravity* = 5
  243. EastGravity* = 6
  244. SouthWestGravity* = 7
  245. SouthGravity* = 8
  246. SouthEastGravity* = 9
  247. StaticGravity* = 10
  248. UnmapGravity* = 0
  249. NotUseful* = 0
  250. WhenMapped* = 1
  251. Always* = 2
  252. IsUnmapped* = 0
  253. IsUnviewable* = 1
  254. IsViewable* = 2
  255. SetModeInsert* = 0
  256. SetModeDelete* = 1
  257. DestroyAll* = 0
  258. RetainPermanent* = 1
  259. RetainTemporary* = 2
  260. Above* = 0
  261. Below* = 1
  262. TopIf* = 2
  263. BottomIf* = 3
  264. Opposite* = 4
  265. RaiseLowest* = 0
  266. LowerHighest* = 1
  267. PropModeReplace* = 0
  268. PropModePrepend* = 1
  269. PropModeAppend* = 2
  270. GXclear* = 0x00000000
  271. GXand* = 0x00000001
  272. GXandReverse* = 0x00000002
  273. GXcopy* = 0x00000003
  274. GXandInverted* = 0x00000004
  275. GXnoop* = 0x00000005
  276. GXxor* = 0x00000006
  277. GXor* = 0x00000007
  278. GXnor* = 0x00000008
  279. GXequiv* = 0x00000009
  280. GXinvert* = 0x0000000A
  281. GXorReverse* = 0x0000000B
  282. GXcopyInverted* = 0x0000000C
  283. GXorInverted* = 0x0000000D
  284. GXnand* = 0x0000000E
  285. GXset* = 0x0000000F
  286. LineSolid* = 0
  287. LineOnOffDash* = 1
  288. LineDoubleDash* = 2
  289. CapNotLast* = 0
  290. CapButt* = 1
  291. CapRound* = 2
  292. CapProjecting* = 3
  293. JoinMiter* = 0
  294. JoinRound* = 1
  295. JoinBevel* = 2
  296. FillSolid* = 0
  297. FillTiled* = 1
  298. FillStippled* = 2
  299. FillOpaqueStippled* = 3
  300. EvenOddRule* = 0
  301. WindingRule* = 1
  302. ClipByChildren* = 0
  303. IncludeInferiors* = 1
  304. Unsorted* = 0
  305. YSorted* = 1
  306. YXSorted* = 2
  307. YXBanded* = 3
  308. CoordModeOrigin* = 0
  309. CoordModePrevious* = 1
  310. Complex* = 0
  311. Nonconvex* = 1
  312. Convex* = 2
  313. ArcChord* = 0
  314. ArcPieSlice* = 1
  315. GCFunction* = 1 shl 0
  316. GCPlaneMask* = 1 shl 1
  317. GCForeground* = 1 shl 2
  318. GCBackground* = 1 shl 3
  319. GCLineWidth* = 1 shl 4
  320. GCLineStyle* = 1 shl 5
  321. GCCapStyle* = 1 shl 6
  322. GCJoinStyle* = 1 shl 7
  323. GCFillStyle* = 1 shl 8
  324. GCFillRule* = 1 shl 9
  325. GCTile* = 1 shl 10
  326. GCStipple* = 1 shl 11
  327. GCTileStipXOrigin* = 1 shl 12
  328. GCTileStipYOrigin* = 1 shl 13
  329. GCFont* = 1 shl 14
  330. GCSubwindowMode* = 1 shl 15
  331. GCGraphicsExposures* = 1 shl 16
  332. GCClipXOrigin* = 1 shl 17
  333. GCClipYOrigin* = 1 shl 18
  334. GCClipMask* = 1 shl 19
  335. GCDashOffset* = 1 shl 20
  336. GCDashList* = 1 shl 21
  337. GCArcMode* = 1 shl 22
  338. GCLastBit* = 22
  339. FontLeftToRight* = 0
  340. FontRightToLeft* = 1
  341. FontChange* = 255
  342. XYBitmap* = 0
  343. XYPixmap* = 1
  344. ZPixmap* = 2
  345. AllocNone* = 0
  346. AllocAll* = 1
  347. DoRed* = 1 shl 0
  348. DoGreen* = 1 shl 1
  349. DoBlue* = 1 shl 2
  350. CursorShape* = 0
  351. TileShape* = 1
  352. StippleShape* = 2
  353. AutoRepeatModeOff* = 0
  354. AutoRepeatModeOn* = 1
  355. AutoRepeatModeDefault* = 2
  356. LedModeOff* = 0
  357. LedModeOn* = 1
  358. KBKeyClickPercent* = 1 shl 0
  359. KBBellPercent* = 1 shl 1
  360. KBBellPitch* = 1 shl 2
  361. KBBellDuration* = 1 shl 3
  362. KBLed* = 1 shl 4
  363. KBLedMode* = 1 shl 5
  364. KBKey* = 1 shl 6
  365. KBAutoRepeatMode* = 1 shl 7
  366. MappingSuccess* = 0
  367. MappingBusy* = 1
  368. MappingFailed* = 2
  369. MappingModifier* = 0
  370. MappingKeyboard* = 1
  371. MappingPointer* = 2
  372. DontPreferBlanking* = 0
  373. PreferBlanking* = 1
  374. DefaultBlanking* = 2
  375. DisableScreenSaver* = 0
  376. DisableScreenInterval* = 0
  377. DontAllowExposures* = 0
  378. AllowExposures* = 1
  379. DefaultExposures* = 2
  380. ScreenSaverReset* = 0
  381. ScreenSaverActive* = 1
  382. HostInsert* = 0
  383. HostDelete* = 1
  384. EnableAccess* = 1
  385. DisableAccess* = 0
  386. StaticGray* = 0
  387. GrayScale* = 1
  388. StaticColor* = 2
  389. PseudoColor* = 3
  390. TrueColor* = 4
  391. DirectColor* = 5
  392. LSBFirst* = 0
  393. MSBFirst* = 1
  394. # implementation