x.pp 8.9 KB

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