summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/x11/src/xinerama.pp
blob: 62a3ba1e799105f7210e6b1b85849a4cf28febf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
unit xinerama;
interface
uses
 ctypes, xlib;
{ Converted from X11/Xinerama.h }

{$PACKRECORDS C}


type

   PXineramaScreenInfo = ^TXineramaScreenInfo;
   TXineramaScreenInfo = record
        screen_number : cint;
        x_org         : cshort;
        y_org         : cshort;
        width         : cshort;
        height        : cshort;
     end;

function XineramaQueryExtension(dpy:PDisplay; event_base:Pcint; error_base:Pcint):TBoolResult;cdecl;external 'Xinerama';
function XineramaQueryVersion(dpy:PDisplay; major:Pcint; minor:Pcint):TStatus;cdecl;external 'Xinerama';
function XineramaIsActive(dpy:PDisplay):TBoolResult;cdecl;external 'Xinerama';
function XineramaQueryScreens(dpy:PDisplay; number:Pcint):PXineramaScreenInfo;cdecl;external 'Xinerama';

implementation

end.