1 #ifndef MSP_GRAPHICS_WINDOW_H_
2 #define MSP_GRAPHICS_WINDOW_H_
5 #include <sigc++/signal.h>
6 #include "eventsource.h"
23 class Window: public EventSource
29 sigc::signal<void> signal_close;
33 WindowOptions options;
40 Window(Display &, unsigned w, unsigned h, bool fs = false);
41 Window(Display &, const WindowOptions &);
47 void set_title(const std::string &);
48 void reconfigure(const WindowOptions &);
49 void set_keyboard_autorepeat(bool);
50 bool get_keyboard_autorepeat() const { return kbd_autorepeat; }
51 void show_cursor(bool);
52 void warp_pointer(int, int);
54 Display &get_display() const { return display; }
55 const WindowOptions &get_options() const { return options; }
56 virtual unsigned get_width() const { return options.width; }
57 virtual unsigned get_height() const { return options.height; }
58 const Private &get_private() const { return *priv; }
63 bool event(const Event &evnt);
66 } // namespace Graphics