]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/videomode.h
Move struct VideoMode to its own header
[libs/gui.git] / source / graphics / videomode.h
diff --git a/source/graphics/videomode.h b/source/graphics/videomode.h
new file mode 100644 (file)
index 0000000..d883d17
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef MSP_GRAPHICS_VIDEOMODE_H_
+#define MSP_GRAPHICS_VIDEOMODE_H_
+
+namespace Msp {
+namespace Graphics {
+
+struct VideoMode;
+
+class unsupported_video_mode: public std::runtime_error
+{
+public:
+       unsupported_video_mode(const VideoMode &);
+       virtual ~unsupported_video_mode() throw () { }
+};
+
+
+struct VideoMode
+{
+       unsigned width;
+       unsigned height;
+       unsigned rate;
+
+       VideoMode(): width(0), height(0), rate(0) { }
+       VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { }
+};
+
+} // namespace Graphics
+} // namespace Msp
+
+#endif