]> 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 2d4376e1761baf82c7e59316b7823e5436721d9b..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,11 +62,12 @@ private:
        void platform_init();
        void platform_cleanup();
 public:
-       virtual ~Window();
+       ~Window();
 
        void set_title(const std::string &);
        void reconfigure(const WindowOptions &);
 private:
+       void set_fullscreen_mode();
        void platform_reconfigure(bool);
 public:
        void set_keyboard_autorepeat(bool);
@@ -78,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();