Display &display;
WindowOptions options;
WindowHandle window;
+#ifndef WIN32
Atom wm_delete_window;
+#endif
public:
Window(Display &, unsigned w, unsigned h, bool fs=false);
void set_title(const std::string &);
void reconfigure(const WindowOptions &);
+ Display &get_display() const { return display; }
const WindowOptions &get_options() const { return options; }
unsigned get_width() const { return options.width; }
unsigned get_height() const { return options.height; }
void show();
void hide();
+#ifndef WIN32
void event(const XEvent &ev);
+#endif
protected:
void init();
+#ifdef WIN32
+ int wndproc(UINT, WPARAM, LPARAM);
+ static LRESULT CALLBACK wndproc_(HWND, UINT, WPARAM, LPARAM);
+#endif
};
} // namespace Graphics