]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/videomode.h
Extend the video mode API to support multiple monitors
[libs/gui.git] / source / graphics / videomode.h
1 #ifndef MSP_GRAPHICS_VIDEOMODE_H_
2 #define MSP_GRAPHICS_VIDEOMODE_H_
3
4 namespace Msp {
5 namespace Graphics {
6
7 struct Monitor;
8 struct VideoMode;
9
10 class unsupported_video_mode: public std::runtime_error
11 {
12 public:
13         unsupported_video_mode(const VideoMode &);
14         virtual ~unsupported_video_mode() throw () { }
15 };
16
17
18 struct VideoMode
19 {
20         const Monitor *monitor;
21         unsigned width;
22         unsigned height;
23         unsigned rate;
24
25         VideoMode();
26         VideoMode(unsigned, unsigned);
27 };
28
29 } // namespace Graphics
30 } // namespace Msp
31
32 #endif