annotate semiconginev2/old/thirdparty/x11/xinerama.nim @ 1222:3c3d4d7a8ecd compiletime-tests

did: cleanup config file
author sam <sam@basx.dev>
date Wed, 17 Jul 2024 21:08:15 +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 # Converted from X11/Xinerama.h
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2 import
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
3 xlib
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6 xineramaLib = "libXinerama.so"
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 PXineramaScreenInfo* = ptr XineramaScreenInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 XineramaScreenInfo*{.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 screen_number*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 x_org*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 y_org*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 width*: int16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 height*: int16
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 proc XineramaQueryExtension*(dpy: PDisplay, event_base: Pcint, error_base: Pcint): XBool{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18 cdecl, dynlib: xineramaLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 proc XineramaQueryVersion*(dpy: PDisplay, major: Pcint, minor: Pcint): Status{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 cdecl, dynlib: xineramaLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 proc XineramaIsActive*(dpy: PDisplay): XBool{.cdecl, dynlib: xineramaLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22 proc XineramaQueryScreens*(dpy: PDisplay, number: Pcint): PXineramaScreenInfo{.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23 cdecl, dynlib: xineramaLib, importc.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24