X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fmonitor.h;h=8d86d4e0c9507673df77444195dc3e250574d2ad;hb=1ea8498c4c729f849095e2f4aa3d282de2000a35;hp=d5e49bb3dbb210bc420f0bef3ff7e050b2cf728a;hpb=89ec4c335953556ca069960adf6ea3a5dc3bb499;p=libs%2Fgui.git diff --git a/source/graphics/monitor.h b/source/graphics/monitor.h index d5e49bb..8d86d4e 100644 --- a/source/graphics/monitor.h +++ b/source/graphics/monitor.h @@ -1,21 +1,30 @@ #ifndef MSP_GRAPHICS_MONITOR_H_ #define MSP_GRAPHICS_MONITOR_H_ -#include #include +#include +#include "videomode.h" namespace Msp { namespace Graphics { -struct VideoMode; - struct Monitor { - unsigned index; - std::list video_modes; - const VideoMode *desktop_mode; + struct Settings + { + const VideoMode *mode = nullptr; + VideoRotation rotation = ROTATE_NORMAL; + int x = 0; + int y = 0; + }; - Monitor(); + unsigned index = 0; + std::string name; + std::vector video_modes; + Settings desktop_settings; + Settings current_settings; + const Monitor *next_left = nullptr; + const Monitor *next_right = nullptr; }; } // namespace Graphics