]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/monitor.h
Refactor storage of monitor settings
[libs/gui.git] / source / graphics / monitor.h
index d5e49bb3dbb210bc420f0bef3ff7e050b2cf728a..fefd9867f8f78e2962696fe26f07f654c3f1982c 100644 (file)
@@ -3,17 +3,29 @@
 
 #include <list>
 #include <string>
+#include "videomode.h"
 
 namespace Msp {
 namespace Graphics {
 
-struct VideoMode;
-
 struct Monitor
 {
+       struct Settings
+       {
+               const VideoMode *mode;
+               VideoRotation rotation;
+               int x, y;
+
+               Settings();
+       };
+
        unsigned index;
+       std::string name;
        std::list<const VideoMode *> video_modes;
-       const VideoMode *desktop_mode;
+       Settings desktop_settings;
+       Settings current_settings;
+       const Monitor *next_left;
+       const Monitor *next_right;
 
        Monitor();
 };