Mercurial > games > semicongine
comparison semicongine/thirdparty/x11/xinerama.nim @ 1123:657bb0b2af45
add: thirdparty libraries into repo
author | sam <sam@basx.dev> |
---|---|
date | Sat, 27 Apr 2024 22:04:30 +0700 |
parents | |
children | 055eb17ce31e |
comparison
equal
deleted
inserted
replaced
1121:21690a5aa280 | 1123:657bb0b2af45 |
---|---|
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 {.deprecated: [TXineramaScreenInfo: XineramaScreenInfo].} | |
18 | |
19 proc XineramaQueryExtension*(dpy: PDisplay, event_base: Pcint, error_base: Pcint): XBool{. | |
20 cdecl, dynlib: xineramaLib, importc.} | |
21 proc XineramaQueryVersion*(dpy: PDisplay, major: Pcint, minor: Pcint): Status{. | |
22 cdecl, dynlib: xineramaLib, importc.} | |
23 proc XineramaIsActive*(dpy: PDisplay): XBool{.cdecl, dynlib: xineramaLib, importc.} | |
24 proc XineramaQueryScreens*(dpy: PDisplay, number: Pcint): PXineramaScreenInfo{. | |
25 cdecl, dynlib: xineramaLib, importc.} | |
26 |