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; }
void hide();
bool event(const Event &evnt);
-protected:
- void init();
};
} // namespace Graphics