annotate semiconginev2/thirdparty/x11/xf86vmode.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/xf86vmode.nim@239adab121a3
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 # $XFree86: xc/include/extensions/xf86vmode.h,v 3.30 2001/05/07 20:09:50 mvojkovi Exp $
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2 #
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 #Copyright 1995 Kaleb S. KEITHLEY
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 #Permission is hereby granted, free of charge, to any person obtaining
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7 #a copy of this software and associated documentation files (the
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8 #"Software"), to deal in the Software without restriction, including
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 #without limitation the rights to use, copy, modify, merge, publish,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 #distribute, sublicense, and/or sell copies of the Software, and to
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 #permit persons to whom the Software is furnished to do so, subject to
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 #the following conditions:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 #The above copyright notice and this permission notice shall be
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 #included in all copies or substantial portions of the Software.
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 #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18 #EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 #MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 #IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 #OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22 #ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23 #OTHER DEALINGS IN THE SOFTWARE.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24 #
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
25 #Except as contained in this notice, the name of Kaleb S. KEITHLEY
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
26 #shall not be used in advertising or otherwise to promote the sale, use
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
27 #or other dealings in this Software without prior written authorization
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
28 #from Kaleb S. KEITHLEY
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
29 #
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 # $Xorg: xf86vmode.h,v 1.3 2000/08/18 04:05:46 coskrey Exp $
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
32 # THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
33
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
34 import
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
35 x, xlib
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
36
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
37 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
38 libXxf86vm* = "libXxf86vm.so"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
39
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
40 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
41 PINT32* = ptr int32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
42
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
43 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
44 X_XF86VidModeQueryVersion* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
45 X_XF86VidModeGetModeLine* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
46 X_XF86VidModeModModeLine* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
47 X_XF86VidModeSwitchMode* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
48 X_XF86VidModeGetMonitor* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
49 X_XF86VidModeLockModeSwitch* = 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
50 X_XF86VidModeGetAllModeLines* = 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
51 X_XF86VidModeAddModeLine* = 7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
52 X_XF86VidModeDeleteModeLine* = 8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
53 X_XF86VidModeValidateModeLine* = 9
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
54 X_XF86VidModeSwitchToMode* = 10
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
55 X_XF86VidModeGetViewPort* = 11
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
56 X_XF86VidModeSetViewPort* = 12 # new for version 2.x of this extension
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
57 X_XF86VidModeGetDotClocks* = 13
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
58 X_XF86VidModeSetClientVersion* = 14
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
59 X_XF86VidModeSetGamma* = 15
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
60 X_XF86VidModeGetGamma* = 16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
61 X_XF86VidModeGetGammaRamp* = 17
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
62 X_XF86VidModeSetGammaRamp* = 18
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
63 X_XF86VidModeGetGammaRampSize* = 19
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
64 X_XF86VidModeGetPermissions* = 20
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
65 CLKFLAG_PROGRAMABLE* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
66
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
67 when defined(XF86VIDMODE_EVENTS):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
68 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
69 XF86VidModeNotify* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
70 XF86VidModeNumberEvents* = (XF86VidModeNotify + 1)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
71 XF86VidModeNotifyMask* = 0x00000001
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
72 XF86VidModeNonEvent* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
73 XF86VidModeModeChange* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
74 else:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
75 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
76 XF86VidModeNumberEvents* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
77 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
78 XF86VidModeBadClock* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
79 XF86VidModeBadHTimings* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
80 XF86VidModeBadVTimings* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
81 XF86VidModeModeUnsuitable* = 3
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
82 XF86VidModeExtensionDisabled* = 4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
83 XF86VidModeClientNotLocal* = 5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
84 XF86VidModeZoomLocked* = 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
85 XF86VidModeNumberErrors* = (XF86VidModeZoomLocked + 1)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
86 XF86VM_READ_PERMISSION* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
87 XF86VM_WRITE_PERMISSION* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
88
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
89 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
90 PXF86VidModeModeLine* = ptr XF86VidModeModeLine
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
91 XF86VidModeModeLine*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
92 hdisplay*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
93 hsyncstart*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
94 hsyncend*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
95 htotal*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
96 hskew*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
97 vdisplay*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
98 vsyncstart*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
99 vsyncend*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
100 vtotal*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
101 flags*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
102 privsize*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
103 c_private*: PINT32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
104
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
105 PPPXF86VidModeModeInfo* = ptr PPXF86VidModeModeInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
106 PPXF86VidModeModeInfo* = ptr PXF86VidModeModeInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
107 PXF86VidModeModeInfo* = ptr XF86VidModeModeInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
108 XF86VidModeModeInfo*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
109 dotclock*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
110 hdisplay*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
111 hsyncstart*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
112 hsyncend*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
113 htotal*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
114 hskew*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
115 vdisplay*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
116 vsyncstart*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
117 vsyncend*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
118 vtotal*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
119 flags*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
120 privsize*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
121 c_private*: PINT32
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
122
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
123 PXF86VidModeSyncRange* = ptr XF86VidModeSyncRange
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
124 XF86VidModeSyncRange*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
125 hi*: cfloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
126 lo*: cfloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
127
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
128 PXF86VidModeMonitor* = ptr XF86VidModeMonitor
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
129 XF86VidModeMonitor*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
130 vendor*: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
131 model*: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
132 EMPTY*: cfloat
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
133 nhsync*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
134 hsync*: PXF86VidModeSyncRange
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
135 nvsync*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
136 vsync*: PXF86VidModeSyncRange
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
137
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
138 PXF86VidModeNotifyEvent* = ptr XF86VidModeNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
139 XF86VidModeNotifyEvent*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
140 theType*: cint # of event
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
141 serial*: culong # # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
142 send_event*: XBool # true if this came from a SendEvent req
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
143 display*: PDisplay # Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
144 root*: Window # root window of event screen
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
145 state*: cint # What happened
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
146 kind*: cint # What happened
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
147 forced*: XBool # extents of new region
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
148 time*: Time # event timestamp
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
149
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
150 PXF86VidModeGamma* = ptr XF86VidModeGamma
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
151 XF86VidModeGamma*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
152 red*: cfloat # Red Gamma value
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
153 green*: cfloat # Green Gamma value
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
154 blue*: cfloat # Blue Gamma value
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
155
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
156 when defined(MACROS):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
157 proc XF86VidModeSelectNextMode*(disp: PDisplay, scr: cint): XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
158 proc XF86VidModeSelectPrevMode*(disp: PDisplay, scr: cint): XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
159 proc XF86VidModeQueryVersion*(dpy: PDisplay, majorVersion: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
160 minorVersion: Pcint): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
161 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
162 proc XF86VidModeQueryExtension*(dpy: PDisplay, event_base: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
163 error_base: Pcint): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
164 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
165 proc XF86VidModeSetClientVersion*(dpy: PDisplay): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
166 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
167 proc XF86VidModeGetModeLine*(dpy: PDisplay, screen: cint, dotclock: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
168 modeline: PXF86VidModeModeLine): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
169 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
170 proc XF86VidModeGetAllModeLines*(dpy: PDisplay, screen: cint, modecount: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
171 modelinesPtr: PPPXF86VidModeModeInfo): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
172 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
173 proc XF86VidModeAddModeLine*(dpy: PDisplay, screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
174 new_modeline: PXF86VidModeModeInfo,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
175 after_modeline: PXF86VidModeModeInfo): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
176 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
177 proc XF86VidModeDeleteModeLine*(dpy: PDisplay, screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
178 modeline: PXF86VidModeModeInfo): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
179 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
180 proc XF86VidModeModModeLine*(dpy: PDisplay, screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
181 modeline: PXF86VidModeModeLine): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
182 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
183 proc XF86VidModeValidateModeLine*(dpy: PDisplay, screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
184 modeline: PXF86VidModeModeInfo): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
185 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
186 proc XF86VidModeSwitchMode*(dpy: PDisplay, screen: cint, zoom: cint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
187 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
188 proc XF86VidModeSwitchToMode*(dpy: PDisplay, screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
189 modeline: PXF86VidModeModeInfo): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
190 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
191 proc XF86VidModeLockModeSwitch*(dpy: PDisplay, screen: cint, lock: cint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
192 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
193 proc XF86VidModeGetMonitor*(dpy: PDisplay, screen: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
194 monitor: PXF86VidModeMonitor): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
195 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
196 proc XF86VidModeGetViewPort*(dpy: PDisplay, screen: cint, x_return: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
197 y_return: Pcint): XBool{.cdecl, dynlib: libXxf86vm,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
198 importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
199 proc XF86VidModeSetViewPort*(dpy: PDisplay, screen: cint, x: cint, y: cint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
200 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
201 proc XF86VidModeGetDotClocks*(dpy: PDisplay, screen: cint, flags_return: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
202 number_of_clocks_return: Pcint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
203 max_dot_clock_return: Pcint, clocks_return: PPcint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
204 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
205 proc XF86VidModeGetGamma*(dpy: PDisplay, screen: cint, Gamma: PXF86VidModeGamma): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
206 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
207 proc XF86VidModeSetGamma*(dpy: PDisplay, screen: cint, Gamma: PXF86VidModeGamma): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
208 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
209 proc XF86VidModeSetGammaRamp*(dpy: PDisplay, screen: cint, size: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
210 red_array: Pcushort, green_array: Pcushort,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
211 blue_array: Pcushort): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
212 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
213 proc XF86VidModeGetGammaRamp*(dpy: PDisplay, screen: cint, size: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
214 red_array: Pcushort, green_array: Pcushort,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
215 blue_array: Pcushort): XBool{.cdecl,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
216 dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
217 proc XF86VidModeGetGammaRampSize*(dpy: PDisplay, screen: cint, size: Pcint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
218 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
219 proc XF86VidModeGetPermissions*(dpy: PDisplay, screen: cint, permissions: Pcint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
220 cdecl, dynlib: libXxf86vm, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
221 # implementation
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
222
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
223 #when defined(MACROS):
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
224 proc XF86VidModeSelectNextMode(disp: PDisplay, scr: cint): XBool =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
225 XF86VidModeSwitchMode(disp, scr, 1)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
226
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
227 proc XF86VidModeSelectPrevMode(disp: PDisplay, scr: cint): XBool =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
228 XF86VidModeSwitchMode(disp, scr, - 1)