]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/videomode.h
Use the override specifier where appropriate
[libs/gui.git] / source / graphics / videomode.h
index 4054b4bb1308398e5278d926d082d811c529d003..205245c630ff98e43179ecc1f94dac723a5f57bd 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef MSP_GRAPHICS_VIDEOMODE_H_
 #define MSP_GRAPHICS_VIDEOMODE_H_
 
+#include <stdexcept>
+
 namespace Msp {
 namespace Graphics {
 
@@ -11,16 +13,26 @@ class unsupported_video_mode: public std::runtime_error
 {
 public:
        unsupported_video_mode(const VideoMode &);
-       virtual ~unsupported_video_mode() throw () { }
 };
 
 
+enum VideoRotation
+{
+       ROTATE_ANY,
+       ROTATE_NORMAL,
+       ROTATE_LEFT,
+       ROTATE_RIGHT,
+       ROTATE_INVERTED
+};
+
 struct VideoMode
 {
+       unsigned index;
        const Monitor *monitor;
        unsigned width;
        unsigned height;
-       unsigned rate;
+       float rate;
+       VideoRotation rotation;
 
        VideoMode();
        VideoMode(unsigned, unsigned);