#include #include #include namespace hgl { class XCBWindow:public Window { xcb_connection_t *connection; xcb_screen_t *screen; xcb_window_t window; xcb_intern_atom_reply_t *atom_wm_delete_window; private: bool InitConnection(); public: XCBWindow(const UTF8String &wn); ~XCBWindow(); bool Create(uint w,uint h)override; bool Create(uint,uint,uint)override{} void Close()override; xcb_connection_t *GetConnection(){return connection;} xcb_screen_t *GetScreen(){return screen;} xcb_window_t GetWindow(){return window;} void SetCaption(const OSString &caption) override; void Show()override{} void Hide()override{} void ToMinWindow() override; void ToMaxWindow() override; bool MessageProc() override; bool WaitMessage() override; };//class XCBWindow:public Window }//namespace hgl