]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/videomode.h
Use nullptr in place of 0 or NULL
[libs/gui.git] / source / graphics / videomode.h
index 328d6ea31d3034b81c68fa667f3b6b015d1fd48f..c527ed75de9d75b2d42b45a8635f87ee7c854be9 100644 (file)
@@ -13,19 +13,28 @@ class unsupported_video_mode: public std::runtime_error
 {
 public:
        unsupported_video_mode(const VideoMode &);
-       virtual ~unsupported_video_mode() throw () { }
 };
 
 
-struct VideoMode
+enum VideoRotation
 {
-       unsigned index;
-       const Monitor *monitor;
-       unsigned width;
-       unsigned height;
-       unsigned rate;
+       ROTATE_ANY,
+       ROTATE_NORMAL,
+       ROTATE_LEFT,
+       ROTATE_RIGHT,
+       ROTATE_INVERTED
+};
 
-       VideoMode();
+struct VideoMode
+{
+       unsigned index = 0;
+       const Monitor *monitor = nullptr;
+       unsigned width = 0;
+       unsigned height = 0;
+       float rate = 0.0f;
+       VideoRotation rotation = ROTATE_ANY;
+
+       VideoMode() = default;
        VideoMode(unsigned, unsigned);
 };