X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fvideomode.h;h=a9c58bd003d1cb26c0f8c052832194cc1446bcb6;hb=9ffb9f22faf7c540083e6df828500d54aabcbb56;hp=d883d17d26ac8572928951ac68356f6d214f90bc;hpb=e09c2211539f417474b1d3226f56f021938329bf;p=libs%2Fgui.git diff --git a/source/graphics/videomode.h b/source/graphics/videomode.h index d883d17..a9c58bd 100644 --- a/source/graphics/videomode.h +++ b/source/graphics/videomode.h @@ -1,9 +1,12 @@ #ifndef MSP_GRAPHICS_VIDEOMODE_H_ #define MSP_GRAPHICS_VIDEOMODE_H_ +#include + namespace Msp { namespace Graphics { +struct Monitor; struct VideoMode; class unsupported_video_mode: public std::runtime_error @@ -14,14 +17,26 @@ public: }; +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(): width(0), height(0), rate(0) { } - VideoMode(unsigned w, unsigned h): width(w), height(h), rate(0) { } + VideoMode(); + VideoMode(unsigned, unsigned); }; } // namespace Graphics