]> git.tdb.fi Git - libs/gui.git/blobdiff - source/gbase/window.h
Support mouse wheel on win32
[libs/gui.git] / source / gbase / window.h
index c48adc5fe3ff81b39ace83eb8402e0b3aa9d1e89..ad575af1ab236cbf92d2e77aaa192cf87b67b72e 100644 (file)
@@ -43,15 +43,22 @@ public:
 protected:
        Display &display;
        WindowOptions options;
+       bool visible;
+       bool kbd_autorepeat;
        Private *priv;
 
 public:
        Window(Display &, unsigned w, unsigned h, bool fs=false);
        Window(Display &, const WindowOptions &);
+private:
+       void init();
+public:
        ~Window();
 
        void set_title(const std::string &);
        void reconfigure(const WindowOptions &);
+       void set_keyboard_autorepeat(bool);
+       bool get_keyboard_autorepeat() const { return kbd_autorepeat; }
        void show_cursor(bool);
        void warp_pointer(int, int);
 
@@ -65,8 +72,6 @@ public:
        void hide();
 
        bool event(const Event &evnt);
-protected:
-       void init();
 };
 
 } // namespace Graphics