3 This file is part of libmspgbase
4 Copyright © 2007-2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GBASE_WINDOW_H_
9 #define MSP_GBASE_WINDOW_H_
12 #include <sigc++/signal.h>
35 sigc::signal<void, int, int, unsigned, unsigned> signal_button_press;
36 sigc::signal<void, int, int, unsigned, unsigned> signal_button_release;
37 sigc::signal<void, int, int> signal_pointer_motion;
38 sigc::signal<void, unsigned, unsigned, unsigned> signal_key_press;
39 sigc::signal<void, unsigned, unsigned> signal_key_release;
40 sigc::signal<void, unsigned, unsigned> signal_resize;
41 sigc::signal<void> signal_close;
45 WindowOptions options;
52 Window(Display &, unsigned w, unsigned h, bool fs=false);
53 Window(Display &, const WindowOptions &);
59 void set_title(const std::string &);
60 void reconfigure(const WindowOptions &);
61 void set_keyboard_autorepeat(bool);
62 bool get_keyboard_autorepeat() const { return kbd_autorepeat; }
63 void show_cursor(bool);
64 void warp_pointer(int, int);
66 Display &get_display() const { return display; }
67 const WindowOptions &get_options() const { return options; }
68 unsigned get_width() const { return options.width; }
69 unsigned get_height() const { return options.height; }
70 const Private &get_private() const { return *priv; }
75 bool event(const Event &evnt);
78 } // namespace Graphics