1191
|
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
|