x.pp 8.7 KB

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