X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgraphics%2Fvideomode.h;h=ea69e1b8fc7dfd42545463216f33928695da6d1e;hb=d7686e3867e3c68cec0d3767a21f9d2408383085;hp=328d6ea31d3034b81c68fa667f3b6b015d1fd48f;hpb=9a1b03ad820b49c4ed73f20d2cf82e445d245254;p=libs%2Fgui.git diff --git a/source/graphics/videomode.h b/source/graphics/videomode.h index 328d6ea..ea69e1b 100644 --- a/source/graphics/videomode.h +++ b/source/graphics/videomode.h @@ -2,6 +2,7 @@ #define MSP_GRAPHICS_VIDEOMODE_H_ #include +#include "mspgui_api.h" namespace Msp { namespace Graphics { @@ -9,23 +10,32 @@ namespace Graphics { struct Monitor; struct VideoMode; -class unsupported_video_mode: public std::runtime_error +class MSPGUI_API 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 MSPGUI_API 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); };