]> git.tdb.fi Git - libs/gui.git/blobdiff - source/gbase/window.h
Various fixes to Window resizing and fullscreen handling on X11
[libs/gui.git] / source / gbase / window.h
index 53c2d958fbf9eeebf094e34476f70aa88acc3190..38ffb6d5aee967ad81121f8bde8a1abc34b971b6 100644 (file)
@@ -43,16 +43,25 @@ public:
 protected:
        Display &display;
        WindowOptions options;
+       bool visible;
+       bool kbd_autorepeat;
+       bool resizing;
        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);
 
        Display &get_display() const { return display; }
        const WindowOptions &get_options() const { return options; }
@@ -64,8 +73,6 @@ public:
        void hide();
 
        bool event(const Event &evnt);
-protected:
-       void init();
 };
 
 } // namespace Graphics