x.pp 8.9 KB

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