Mercurial > games > semicongine
comparison semiconginev2/old/thirdparty/x11/x.nim @ 1218:56781cc0fc7c compiletime-tests
did: renamge main package
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 17 Jul 2024 21:01:37 +0700 |
| parents | semicongine/old/thirdparty/x11/x.nim@239adab121a3 |
| children |
comparison
equal
deleted
inserted
replaced
| 1217:f819a874058f | 1218:56781cc0fc7c |
|---|---|
| 1 | |
| 2 # | |
| 3 # Automatically converted by H2Pas 0.99.15 from x.h | |
| 4 # The following command line parameters were used: | |
| 5 # -p | |
| 6 # -T | |
| 7 # -S | |
| 8 # -d | |
| 9 # -c | |
| 10 # x.h | |
| 11 # | |
| 12 # Pointers to basic pascal types, inserted by h2pas conversion program. | |
| 13 | |
| 14 const | |
| 15 X_PROTOCOL* = 11 | |
| 16 X_PROTOCOL_REVISION* = 0 | |
| 17 | |
| 18 type | |
| 19 PXID* = ptr XID | |
| 20 XID* = culong | |
| 21 | |
| 22 PMask* = ptr Mask | |
| 23 Mask* = culong | |
| 24 | |
| 25 PPAtom* = ptr PAtom | |
| 26 PAtom* = ptr Atom | |
| 27 Atom* = culong | |
| 28 | |
| 29 PVisualID* = ptr VisualID | |
| 30 VisualID* = culong | |
| 31 | |
| 32 PTime* = ptr Time | |
| 33 Time* = culong | |
| 34 | |
| 35 PPWindow* = ptr PWindow | |
| 36 PWindow* = ptr Window | |
| 37 Window* = XID | |
| 38 | |
| 39 PDrawable* = ptr Drawable | |
| 40 Drawable* = XID | |
| 41 | |
| 42 PFont* = ptr Font | |
| 43 Font* = XID | |
| 44 | |
| 45 PPixmap* = ptr Pixmap | |
| 46 Pixmap* = XID | |
| 47 | |
| 48 PCursor* = ptr Cursor | |
| 49 Cursor* = XID | |
| 50 | |
| 51 PColormap* = ptr Colormap | |
| 52 Colormap* = XID | |
| 53 | |
| 54 PGContext* = ptr GContext | |
| 55 GContext* = XID | |
| 56 | |
| 57 PKeySym* = ptr KeySym | |
| 58 KeySym* = XID | |
| 59 | |
| 60 PKeyCode* = ptr KeyCode | |
| 61 KeyCode* = char | |
| 62 | |
| 63 const | |
| 64 None* = 0 | |
| 65 ParentRelative* = 1 | |
| 66 CopyFromParent* = 0 | |
| 67 PointerWindow* = 0 | |
| 68 InputFocus* = 1 | |
| 69 PointerRoot* = 1 | |
| 70 AnyPropertyType* = 0 | |
| 71 AnyKey* = 0 | |
| 72 AnyButton* = 0 | |
| 73 AllTemporary* = 0 | |
| 74 CurrentTime* = 0 | |
| 75 NoSymbol* = 0 | |
| 76 NoEventMask* = 0 | |
| 77 KeyPressMask* = 1 shl 0 | |
| 78 KeyReleaseMask* = 1 shl 1 | |
| 79 ButtonPressMask* = 1 shl 2 | |
| 80 ButtonReleaseMask* = 1 shl 3 | |
| 81 EnterWindowMask* = 1 shl 4 | |
| 82 LeaveWindowMask* = 1 shl 5 | |
| 83 PointerMotionMask* = 1 shl 6 | |
| 84 PointerMotionHintMask* = 1 shl 7 | |
| 85 Button1MotionMask* = 1 shl 8 | |
| 86 Button2MotionMask* = 1 shl 9 | |
| 87 Button3MotionMask* = 1 shl 10 | |
| 88 Button4MotionMask* = 1 shl 11 | |
| 89 Button5MotionMask* = 1 shl 12 | |
| 90 ButtonMotionMask* = 1 shl 13 | |
| 91 KeymapStateMask* = 1 shl 14 | |
| 92 ExposureMask* = 1 shl 15 | |
| 93 VisibilityChangeMask* = 1 shl 16 | |
| 94 StructureNotifyMask* = 1 shl 17 | |
| 95 ResizeRedirectMask* = 1 shl 18 | |
| 96 SubstructureNotifyMask* = 1 shl 19 | |
| 97 SubstructureRedirectMask* = 1 shl 20 | |
| 98 FocusChangeMask* = 1 shl 21 | |
| 99 PropertyChangeMask* = 1 shl 22 | |
| 100 ColormapChangeMask* = 1 shl 23 | |
| 101 OwnerGrabButtonMask* = 1 shl 24 | |
| 102 KeyPress* = 2 | |
| 103 KeyRelease* = 3 | |
| 104 ButtonPress* = 4 | |
| 105 ButtonRelease* = 5 | |
| 106 MotionNotify* = 6 | |
| 107 EnterNotify* = 7 | |
| 108 LeaveNotify* = 8 | |
| 109 FocusIn* = 9 | |
| 110 FocusOut* = 10 | |
| 111 KeymapNotify* = 11 | |
| 112 Expose* = 12 | |
| 113 GraphicsExpose* = 13 | |
| 114 NoExpose* = 14 | |
| 115 VisibilityNotify* = 15 | |
| 116 CreateNotify* = 16 | |
| 117 DestroyNotify* = 17 | |
| 118 UnmapNotify* = 18 | |
| 119 MapNotify* = 19 | |
| 120 MapRequest* = 20 | |
| 121 ReparentNotify* = 21 | |
| 122 ConfigureNotify* = 22 | |
| 123 ConfigureRequest* = 23 | |
| 124 GravityNotify* = 24 | |
| 125 ResizeRequest* = 25 | |
| 126 CirculateNotify* = 26 | |
| 127 CirculateRequest* = 27 | |
| 128 PropertyNotify* = 28 | |
| 129 SelectionClear* = 29 | |
| 130 SelectionRequest* = 30 | |
| 131 SelectionNotify* = 31 | |
| 132 ColormapNotify* = 32 | |
| 133 ClientMessage* = 33 | |
| 134 MappingNotify* = 34 | |
| 135 GenericEvent* = 35 | |
| 136 LASTEvent* = 36 | |
| 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 FamilyInternet6* = 6 | |
| 186 FamilyServerInterpreted* = 5 | |
| 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* = None | |
| 207 RevertToPointerRoot* = PointerRoot | |
| 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* = 0x00000000 | |
| 287 GXand* = 0x00000001 | |
| 288 GXandReverse* = 0x00000002 | |
| 289 GXcopy* = 0x00000003 | |
| 290 GXandInverted* = 0x00000004 | |
| 291 GXnoop* = 0x00000005 | |
| 292 GXxor* = 0x00000006 | |
| 293 GXor* = 0x00000007 | |
| 294 GXnor* = 0x00000008 | |
| 295 GXequiv* = 0x00000009 | |
| 296 GXinvert* = 0x0000000A | |
| 297 GXorReverse* = 0x0000000B | |
| 298 GXcopyInverted* = 0x0000000C | |
| 299 GXorInverted* = 0x0000000D | |
| 300 GXnand* = 0x0000000E | |
| 301 GXset* = 0x0000000F | |
| 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 | |
| 411 # implementation |
