]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/videomode.h
Initial XRandR support
[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         unsigned index;
21         const Monitor *monitor;
22         unsigned width;
23         unsigned height;
24         unsigned rate;
25
26         VideoMode();
27         VideoMode(unsigned, unsigned);
28 };
29
30 } // namespace Graphics
31 } // namespace Msp
32
33 #endif