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