]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/monitor.h
Update .gitignore to include build products on Windows
[libs/gui.git] / source / graphics / monitor.h
1 #ifndef MSP_GRAPHICS_MONITOR_H_
2 #define MSP_GRAPHICS_MONITOR_H_
3
4 #include <string>
5 #include <vector>
6 #include "videomode.h"
7
8 namespace Msp {
9 namespace Graphics {
10
11 struct Monitor
12 {
13         struct Settings
14         {
15                 const VideoMode *mode = nullptr;
16                 VideoRotation rotation = ROTATE_NORMAL;
17                 int x = 0;
18                 int y = 0;
19         };
20
21         unsigned index = 0;
22         std::string name;
23         std::vector<const VideoMode *> video_modes;
24         Settings desktop_settings;
25         Settings current_settings;
26         const Monitor *next_left = nullptr;
27         const Monitor *next_right = nullptr;
28 };
29
30 } // namespace Graphics
31 } // namespace Msp
32
33 #endif