annotate semiconginev2/thirdparty/x11/xf86dga.nim @ 1223:55896320c8bf compiletime-tests

fix: references to new package not updated
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 21:13:54 +0700
parents 56781cc0fc7c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
1 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2 # Copyright (c) 1999 XFree86 Inc
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
3 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4 # $XFree86: xc/include/extensions/xf86dga.h,v 3.20 1999/10/13 04:20:48 dawes Exp $
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6 import
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7 x, xlib
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 libXxf86dga* = "libXxf86dga.so"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 #type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 # cfloat* = float32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 # $XFree86: xc/include/extensions/xf86dga1.h,v 1.2 1999/04/17 07:05:41 dawes Exp $
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
16 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
17 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18 #Copyright (c) 1995 Jon Tombs
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 #Copyright (c) 1995 XFree86 Inc
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22 #************************************************************************
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24 # THIS IS THE OLD DGA API AND IS OBSOLETE. PLEASE DO NOT USE IT ANYMORE
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
25 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
26 #************************************************************************
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
27
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
28 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
29 PPcchar* = ptr ptr cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
30
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
31 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
32 X_XF86DGAQueryVersion* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
33 X_XF86DGAGetVideoLL* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
34 X_XF86DGADirectVideo* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
35 X_XF86DGAGetViewPortSize* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
36 X_XF86DGASetViewPort* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
37 X_XF86DGAGetVidPage* = 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
38 X_XF86DGASetVidPage* = 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
39 X_XF86DGAInstallColormap* = 7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
40 X_XF86DGAQueryDirectVideo* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
41 X_XF86DGAViewPortChanged* = 9
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
42 XF86DGADirectPresent* = 0x00000001
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
43 XF86DGADirectGraphics* = 0x00000002
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
44 XF86DGADirectMouse* = 0x00000004
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
45 XF86DGADirectKeyb* = 0x00000008
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
46 XF86DGAHasColormap* = 0x00000100
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
47 XF86DGADirectColormap* = 0x00000200
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
48
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
49 proc XF86DGAQueryVersion*(dpy: PDisplay, majorVersion: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
50 minorVersion: Pcint): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
51 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
52 proc XF86DGAQueryExtension*(dpy: PDisplay, event_base: Pcint, error_base: Pcint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
53 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
54 proc XF86DGAGetVideoLL*(dpy: PDisplay, screen: cint, base_addr: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
55 width: Pcint, bank_size: Pcint, ram_size: Pcint): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
56 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
57 proc XF86DGAGetVideo*(dpy: PDisplay, screen: cint, base_addr: PPcchar,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
58 width: Pcint, bank_size: Pcint, ram_size: Pcint): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
59 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
60 proc XF86DGADirectVideo*(dpy: PDisplay, screen: cint, enable: cint): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
61 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
62 proc XF86DGADirectVideoLL*(dpy: PDisplay, screen: cint, enable: cint): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
63 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
64 proc XF86DGAGetViewPortSize*(dpy: PDisplay, screen: cint, width: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
65 height: Pcint): Status{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
66 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
67 proc XF86DGASetViewPort*(dpy: PDisplay, screen: cint, x: cint, y: cint): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
68 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
69 proc XF86DGAGetVidPage*(dpy: PDisplay, screen: cint, vid_page: Pcint): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
70 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
71 proc XF86DGASetVidPage*(dpy: PDisplay, screen: cint, vid_page: cint): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
72 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
73 proc XF86DGAInstallColormap*(dpy: PDisplay, screen: cint, Colormap: Colormap): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
74 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
75 proc XF86DGAForkApp*(screen: cint): cint{.cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
76 proc XF86DGAQueryDirectVideo*(dpy: PDisplay, screen: cint, flags: Pcint): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
77 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
78 proc XF86DGAViewPortChanged*(dpy: PDisplay, screen: cint, n: cint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
79 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
80 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
81 X_XDGAQueryVersion* = 0 # 1 through 9 are in xf86dga1.pp
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
82 # 10 and 11 are reserved to avoid conflicts with rogue DGA extensions
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
83 X_XDGAQueryModes* = 12
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
84 X_XDGASetMode* = 13
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
85 X_XDGASetViewport* = 14
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
86 X_XDGAInstallColormap* = 15
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
87 X_XDGASelectInput* = 16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
88 X_XDGAFillRectangle* = 17
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
89 X_XDGACopyArea* = 18
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
90 X_XDGACopyTransparentArea* = 19
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
91 X_XDGAGetViewportStatus* = 20
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
92 X_XDGASync* = 21
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
93 X_XDGAOpenFramebuffer* = 22
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
94 X_XDGACloseFramebuffer* = 23
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
95 X_XDGASetClientVersion* = 24
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
96 X_XDGAChangePixmapMode* = 25
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
97 X_XDGACreateColormap* = 26
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
98 XDGAConcurrentAccess* = 0x00000001
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
99 XDGASolidFillRect* = 0x00000002
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
100 XDGABlitRect* = 0x00000004
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
101 XDGABlitTransRect* = 0x00000008
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
102 XDGAPixmap* = 0x00000010
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
103 XDGAInterlaced* = 0x00010000
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
104 XDGADoublescan* = 0x00020000
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
105 XDGAFlipImmediate* = 0x00000001
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
106 XDGAFlipRetrace* = 0x00000002
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
107 XDGANeedRoot* = 0x00000001
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
108 XF86DGANumberEvents* = 7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
109 XDGAPixmapModeLarge* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
110 XDGAPixmapModeSmall* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
111 XF86DGAClientNotLocal* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
112 XF86DGANoDirectVideoMode* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
113 XF86DGAScreenNotActive* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
114 XF86DGADirectNotActivated* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
115 XF86DGAOperationNotSupported* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
116 XF86DGANumberErrors* = (XF86DGAOperationNotSupported + 1)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
117
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
118 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
119 PXDGAMode* = ptr XDGAMode
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
120 XDGAMode*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
121 num*: cint # A unique identifier for the mode (num > 0)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
122 name*: cstring # name of mode given in the XF86Config
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
123 verticalRefresh*: cfloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
124 flags*: cint # DGA_CONCURRENT_ACCESS, etc...
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
125 imageWidth*: cint # linear accessible portion (pixels)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
126 imageHeight*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
127 pixmapWidth*: cint # Xlib accessible portion (pixels)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
128 pixmapHeight*: cint # both fields ignored if no concurrent access
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
129 bytesPerScanline*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
130 byteOrder*: cint # MSBFirst, LSBFirst
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
131 depth*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
132 bitsPerPixel*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
133 redMask*: culong
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
134 greenMask*: culong
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
135 blueMask*: culong
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
136 visualClass*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
137 viewportWidth*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
138 viewportHeight*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
139 xViewportStep*: cint # viewport position granularity
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
140 yViewportStep*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
141 maxViewportX*: cint # max viewport origin
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
142 maxViewportY*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
143 viewportFlags*: cint # types of page flipping possible
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
144 reserved1*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
145 reserved2*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
146
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
147 PXDGADevice* = ptr XDGADevice
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
148 XDGADevice*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
149 mode*: XDGAMode
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
150 data*: Pcuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
151 pixmap*: Pixmap
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
152
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
153 PXDGAButtonEvent* = ptr XDGAButtonEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
154 XDGAButtonEvent*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
155 theType*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
156 serial*: culong
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
157 display*: PDisplay
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
158 screen*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
159 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
160 state*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
161 button*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
162
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
163 PXDGAKeyEvent* = ptr XDGAKeyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
164 XDGAKeyEvent*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
165 theType*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
166 serial*: culong
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
167 display*: PDisplay
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
168 screen*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
169 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
170 state*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
171 keycode*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
172
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
173 PXDGAMotionEvent* = ptr XDGAMotionEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
174 XDGAMotionEvent*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
175 theType*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
176 serial*: culong
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
177 display*: PDisplay
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
178 screen*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
179 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
180 state*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
181 dx*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
182 dy*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
183
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
184 PXDGAEvent* = ptr XDGAEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
185 XDGAEvent*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
186 pad*: array[0..23, clong] # sorry you have to cast if you want access
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
187 # Case LongInt Of
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
188 # 0 : (_type : cint);
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
189 # 1 : (xbutton : XDGAButtonEvent);
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
190 # 2 : (xkey : XDGAKeyEvent);
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
191 # 3 : (xmotion : XDGAMotionEvent);
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
192 # 4 : (pad : Array[0..23] Of clong);
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
193
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
194 proc XDGAQueryExtension*(dpy: PDisplay, eventBase: Pcint, erroBase: Pcint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
195 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
196 proc XDGAQueryVersion*(dpy: PDisplay, majorVersion: Pcint, minorVersion: Pcint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
197 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
198 proc XDGAQueryModes*(dpy: PDisplay, screen: cint, num: Pcint): PXDGAMode{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
199 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
200 proc XDGASetMode*(dpy: PDisplay, screen: cint, mode: cint): PXDGADevice{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
201 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
202 proc XDGAOpenFramebuffer*(dpy: PDisplay, screen: cint): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
203 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
204 proc XDGACloseFramebuffer*(dpy: PDisplay, screen: cint){.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
205 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
206 proc XDGASetViewport*(dpy: PDisplay, screen: cint, x: cint, y: cint, flags: cint){.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
207 cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
208 proc XDGAInstallColormap*(dpy: PDisplay, screen: cint, cmap: Colormap){.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
209 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
210 proc XDGACreateColormap*(dpy: PDisplay, screen: cint, device: PXDGADevice,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
211 alloc: cint): Colormap{.cdecl, dynlib: libXxf86dga,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
212 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
213 proc XDGASelectInput*(dpy: PDisplay, screen: cint, event_mask: clong){.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
214 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
215 proc XDGAFillRectangle*(dpy: PDisplay, screen: cint, x: cint, y: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
216 width: cuint, height: cuint, color: culong){.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
217 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
218 proc XDGACopyArea*(dpy: PDisplay, screen: cint, srcx: cint, srcy: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
219 width: cuint, height: cuint, dstx: cint, dsty: cint){.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
220 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
221 proc XDGACopyTransparentArea*(dpy: PDisplay, screen: cint, srcx: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
222 srcy: cint, width: cuint, height: cuint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
223 dstx: cint, dsty: cint, key: culong){.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
224 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
225 proc XDGAGetViewportStatus*(dpy: PDisplay, screen: cint): cint{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
226 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
227 proc XDGASync*(dpy: PDisplay, screen: cint){.cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
228 proc XDGASetClientVersion*(dpy: PDisplay): XBool{.cdecl, dynlib: libXxf86dga,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
229 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
230 proc XDGAChangePixmapMode*(dpy: PDisplay, screen: cint, x: Pcint, y: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
231 mode: cint){.cdecl, dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
232 proc XDGAKeyEventToXKeyEvent*(dk: PXDGAKeyEvent, xk: PXKeyEvent){.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
233 dynlib: libXxf86dga, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
234 # implementation