Window();
public:
- Window(unsigned, unsigned);
- Window(const DisplayOptions &);
+ Window(unsigned w, unsigned h);
+ Window(const DisplayOptions &dopt);
virtual ~Window();
unsigned get_width() const { return options.width; }
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 *);
};