Window();
public:
- Window(unsigned, unsigned);
- Window(const DisplayOptions &);
+ Window(unsigned w, unsigned h);
+ Window(const DisplayOptions &dopt);
virtual ~Window();
+ void set_title(const std::string &);
+
unsigned get_width() const { return options.width; }
unsigned get_height() const { return options.height; }
void show();
void tick();
protected:
void prepare();
- void create();
+ void set_window(Handle wnd);
void init();
- void process_event(const XEvent &);
- virtual void on_resize() { }
+ void process_event(const XEvent &event);
+ virtual void on_event(const XEvent &event) { (void)event; }
static int x_error_handler(Display *, XErrorEvent *);
};