Mercurial > games > semicongine
comparison semiconginev2/thirdparty/x11/xinerama.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/xinerama.nim@239adab121a3 |
children |
comparison
equal
deleted
inserted
replaced
1217:f819a874058f | 1218:56781cc0fc7c |
---|---|
1 # Converted from X11/Xinerama.h | |
2 import | |
3 xlib | |
4 | |
5 const | |
6 xineramaLib = "libXinerama.so" | |
7 | |
8 type | |
9 PXineramaScreenInfo* = ptr XineramaScreenInfo | |
10 XineramaScreenInfo*{.final.} = object | |
11 screen_number*: cint | |
12 x_org*: int16 | |
13 y_org*: int16 | |
14 width*: int16 | |
15 height*: int16 | |
16 | |
17 proc XineramaQueryExtension*(dpy: PDisplay, event_base: Pcint, error_base: Pcint): XBool{. | |
18 cdecl, dynlib: xineramaLib, importc.} | |
19 proc XineramaQueryVersion*(dpy: PDisplay, major: Pcint, minor: Pcint): Status{. | |
20 cdecl, dynlib: xineramaLib, importc.} | |
21 proc XineramaIsActive*(dpy: PDisplay): XBool{.cdecl, dynlib: xineramaLib, importc.} | |
22 proc XineramaQueryScreens*(dpy: PDisplay, number: Pcint): PXineramaScreenInfo{. | |
23 cdecl, dynlib: xineramaLib, importc.} | |
24 |