]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/videomode.h
Expose a lot more information through the Monitor struct
[libs/gui.git] / source / graphics / videomode.h
index f1715c0428d6dfc49a62d5a4de71af4bf9883afe..2836e11a5c134f00d0f610b54833089efeaa04ef 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef MSP_GRAPHICS_VIDEOMODE_H_
 #define MSP_GRAPHICS_VIDEOMODE_H_
 
+#include <stdexcept>
+
 namespace Msp {
 namespace Graphics {
 
@@ -15,6 +17,15 @@ public:
 };
 
 
+enum VideoRotation
+{
+       ROTATE_ANY,
+       ROTATE_NORMAL,
+       ROTATE_LEFT,
+       ROTATE_RIGHT,
+       ROTATE_INVERTED
+};
+
 struct VideoMode
 {
        unsigned index;
@@ -22,6 +33,7 @@ struct VideoMode
        unsigned width;
        unsigned height;
        unsigned rate;
+       VideoRotation rotation;
 
        VideoMode();
        VideoMode(unsigned, unsigned);