]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/videomode.h
d883d17d26ac8572928951ac68356f6d214f90bc
[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 VideoMode;
8
9 class unsupported_video_mode: public std::runtime_error
10 {
11 public:
12         unsupported_video_mode(const VideoMode &);
13         virtual ~unsupported_video_mode() throw () { }
14 };
15
16
17 struct VideoMode
18 {
19         unsigned width;
20         unsigned height;
21         unsigned rate;
22
23         VideoMode(): width(0), height(0), rate(0) { }
24         VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
25 };
26
27 } // namespace Graphics
28 } // namespace Msp
29
30 #endif