]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/videomode.h
Initial XRandR support
[libs/gui.git] / source / graphics / videomode.h
index d883d17d26ac8572928951ac68356f6d214f90bc..f1715c0428d6dfc49a62d5a4de71af4bf9883afe 100644 (file)
@@ -4,6 +4,7 @@
 namespace Msp {
 namespace Graphics {
 
+struct Monitor;
 struct VideoMode;
 
 class unsupported_video_mode: public std::runtime_error
@@ -16,12 +17,14 @@ public:
 
 struct VideoMode
 {
+       unsigned index;
+       const Monitor *monitor;
        unsigned width;
        unsigned height;
        unsigned rate;
 
-       VideoMode(): width(0), height(0), rate(0) { }
-       VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
+       VideoMode();
+       VideoMode(unsigned, unsigned);
 };
 
 } // namespace Graphics