Mercurial > games > semicongine
comparison semiconginev2/thirdparty/x11/xshm.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/xshm.nim@239adab121a3 |
children |
comparison
equal
deleted
inserted
replaced
1217:f819a874058f | 1218:56781cc0fc7c |
---|---|
1 import | |
2 x, xlib | |
3 | |
4 const | |
5 libXext* = "libXext.so(.6|)" | |
6 | |
7 # | |
8 # Automatically converted by H2Pas 0.99.15 from xshm.h | |
9 # The following command line parameters were used: | |
10 # -p | |
11 # -T | |
12 # -S | |
13 # -d | |
14 # -c | |
15 # xshm.h | |
16 # | |
17 | |
18 const | |
19 constX_ShmQueryVersion* = 0 | |
20 constX_ShmAttach* = 1 | |
21 constX_ShmDetach* = 2 | |
22 constX_ShmPutImage* = 3 | |
23 constX_ShmGetImage* = 4 | |
24 constX_ShmCreatePixmap* = 5 | |
25 ShmCompletion* = 0 | |
26 ShmNumberEvents* = ShmCompletion + 1 | |
27 BadShmSeg* = 0 | |
28 ShmNumberErrors* = BadShmSeg + 1 | |
29 | |
30 type | |
31 PShmSeg* = ptr ShmSeg | |
32 ShmSeg* = culong | |
33 | |
34 PXShmCompletionEvent* = ptr XShmCompletionEvent | |
35 XShmCompletionEvent*{.final.} = object | |
36 theType*: cint | |
37 serial*: culong | |
38 send_event*: XBool | |
39 display*: PDisplay | |
40 drawable*: Drawable | |
41 major_code*: cint | |
42 minor_code*: cint | |
43 shmseg*: ShmSeg | |
44 offset*: culong | |
45 | |
46 PXShmSegmentInfo* = ptr XShmSegmentInfo | |
47 XShmSegmentInfo*{.final.} = object | |
48 shmseg*: ShmSeg | |
49 shmid*: cint | |
50 shmaddr*: cstring | |
51 readOnly*: XBool | |
52 | |
53 proc XShmQueryExtension*(para1: PDisplay): XBool{.cdecl, dynlib: libXext, importc.} | |
54 proc XShmGetEventBase*(para1: PDisplay): cint{.cdecl, dynlib: libXext, importc.} | |
55 proc XShmQueryVersion*(para1: PDisplay, para2: Pcint, para3: Pcint, para4: PBool): XBool{. | |
56 cdecl, dynlib: libXext, importc.} | |
57 proc XShmPixmapFormat*(para1: PDisplay): cint{.cdecl, dynlib: libXext, importc.} | |
58 proc XShmAttach*(para1: PDisplay, para2: PXShmSegmentInfo): Status{.cdecl, | |
59 dynlib: libXext, importc.} | |
60 proc XShmDetach*(para1: PDisplay, para2: PXShmSegmentInfo): Status{.cdecl, | |
61 dynlib: libXext, importc.} | |
62 proc XShmPutImage*(para1: PDisplay, para2: Drawable, para3: GC, | |
63 para4: PXImage, para5: cint, para6: cint, para7: cint, | |
64 para8: cint, para9: cuint, para10: cuint, para11: XBool): Status{. | |
65 cdecl, dynlib: libXext, importc.} | |
66 proc XShmGetImage*(para1: PDisplay, para2: Drawable, para3: PXImage, | |
67 para4: cint, para5: cint, para6: culong): Status{.cdecl, | |
68 dynlib: libXext, importc.} | |
69 proc XShmCreateImage*(para1: PDisplay, para2: PVisual, para3: cuint, | |
70 para4: cint, para5: cstring, para6: PXShmSegmentInfo, | |
71 para7: cuint, para8: cuint): PXImage{.cdecl, | |
72 dynlib: libXext, importc.} | |
73 proc XShmCreatePixmap*(para1: PDisplay, para2: Drawable, para3: cstring, | |
74 para4: PXShmSegmentInfo, para5: cuint, para6: cuint, | |
75 para7: cuint): Pixmap{.cdecl, dynlib: libXext, importc.} | |
76 # implementation |