PageRenderTime 40ms CodeModel.GetById 21ms app.highlight 14ms RepoModel.GetById 1ms app.codeStats 0ms

/binding/x/xinerama.d

http://github.com/wilkie/djehuty
D | 54 lines | 25 code | 10 blank | 19 comment | 0 complexity | 5b6f5a73416460c05a190ba3b0f0b6f4 MD5 | raw file
 1/*
 2 * xinerama.d
 3 *
 4 * This file holds bindings to xinerama. This file was created from xinerama.h
 5 * which is provided with xinerama proper.
 6 *
 7 * Author: Dave Wilkinson
 8 * Originated: May 20th, 2009
 9 *
10 */
11
12module binding.x.xinerama;
13
14import binding.x.Xlib;
15
16struct XineramaScreenInfo {
17   int   screen_number;
18   short x_org;
19   short y_org;
20   short width;
21   short height;
22}
23
24//_XFUNCPROTOBEGIN
25
26Bool XineramaQueryExtension (
27   Display *dpy,
28   int     *event_base,
29   int     *error_base
30)
31
32Status XineramaQueryVersion(
33   Display *dpy,
34   int     *major,
35   int     *minor
36)
37
38Bool XineramaIsActive(Display *dpy);
39
40/*
41   Returns the number of heads and a pointer to an array of
42   structures describing the position and size of the individual
43   heads.  Returns NULL and number = 0 if Xinerama is not active.
44
45   Returned array should be freed with XFree().
46*/
47
48XineramaScreenInfo *
49XineramaQueryScreens(
50   Display *dpy,
51   int     *number
52);
53
54//_XFUNCPROTOEND