summaryrefslogtreecommitdiff
path: root/lib/libXrandr/include/X11/extensions/Xrandr.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libXrandr/include/X11/extensions/Xrandr.h')
-rw-r--r--lib/libXrandr/include/X11/extensions/Xrandr.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/libXrandr/include/X11/extensions/Xrandr.h b/lib/libXrandr/include/X11/extensions/Xrandr.h
index f3948640c..65940bbdb 100644
--- a/lib/libXrandr/include/X11/extensions/Xrandr.h
+++ b/lib/libXrandr/include/X11/extensions/Xrandr.h
@@ -552,6 +552,36 @@ XRRGetProviderProperty (Display *dpy, RRProvider provider,
unsigned long *nitems, unsigned long *bytes_after,
unsigned char **prop);
+
+typedef struct _XRRMonitorInfo {
+ Atom name;
+ Bool primary;
+ Bool automatic;
+ int noutput;
+ int x;
+ int y;
+ int width;
+ int height;
+ int mwidth;
+ int mheight;
+ RROutput *outputs;
+} XRRMonitorInfo;
+
+XRRMonitorInfo *
+XRRAllocateMonitor(Display *dpy, int noutput);
+
+XRRMonitorInfo *
+XRRGetMonitors(Display *dpy, Window window, Bool get_active, int *nmonitors);
+
+void
+XRRSetMonitor(Display *dpy, Window window, XRRMonitorInfo *monitor);
+
+void
+XRRDeleteMonitor(Display *dpy, Window window, Atom name);
+
+void
+XRRFreeMonitors(XRRMonitorInfo *monitors);
+
_XFUNCPROTOEND
#endif /* _XRANDR_H_ */