1 #ifndef MSP_GRAPHICS_WINDOW_H_
2 #define MSP_GRAPHICS_WINDOW_H_
5 #include <sigc++/signal.h>
28 /** Provides input events. The event structure contents are platform-
29 specific. Applications will want to use the enclosed Keyboard and Mouse
31 sigc::signal<void, const Event &> signal_input_event;
33 sigc::signal<void, unsigned, unsigned> signal_resize;
34 sigc::signal<void> signal_close;
38 WindowOptions options;
45 Window(Display &, unsigned w, unsigned h, bool fs = false);
46 Window(Display &, const WindowOptions &);
52 void set_title(const std::string &);
53 void reconfigure(const WindowOptions &);
54 void set_keyboard_autorepeat(bool);
55 bool get_keyboard_autorepeat() const { return kbd_autorepeat; }
56 void show_cursor(bool);
57 void warp_pointer(int, int);
59 Display &get_display() const { return display; }
60 const WindowOptions &get_options() const { return options; }
61 virtual unsigned get_width() const { return options.width; }
62 virtual unsigned get_height() const { return options.height; }
63 const Private &get_private() const { return *priv; }
68 bool event(const Event &evnt);
71 } // namespace Graphics