]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/window.h
Make Window's functions non-virtual
[libs/gui.git] / source / graphics / window.h
index 443cac79210afe3904b5cbc2008daceabc907197..325f8c97d6bbcb2b2bb1bdf7b3767fbb8255ef32 100644 (file)
@@ -8,6 +8,7 @@ namespace Msp {
 namespace Graphics {
 
 class Display;
+struct Monitor;
 
 struct WindowOptions
 {
@@ -17,6 +18,8 @@ struct WindowOptions
        unsigned width;
        unsigned height;
        bool fullscreen;
+       const Monitor *fullscreen_monitor;
+       bool fullscreen_exclusive;
        bool resizable;
 
        WindowOptions();
@@ -59,7 +62,7 @@ private:
        void platform_init();
        void platform_cleanup();
 public:
-       virtual ~Window();
+       ~Window();
 
        void set_title(const std::string &);
        void reconfigure(const WindowOptions &);
@@ -79,8 +82,8 @@ public:
 
        Display &get_display() const { return display; }
        const WindowOptions &get_options() const { return options; }
-       virtual unsigned get_width() const { return options.width; }
-       virtual unsigned get_height() const { return options.height; }
+       unsigned get_width() const { return options.width; }
+       unsigned get_height() const { return options.height; }
        const Private &get_private() const { return *priv; }
 
        void show();