x.pp 9.1 KB

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