#ifndef SAW_UNIX_XCB #error "XCB is not supported" #endif #include "xcb.h" namespace saw { device::device(::Display* disp, int screen, xcb_connection_t *xcb_connection, xcb_screen_t *xcb_screen, own&& an): display_{disp}, screen_{screen}, xcb_connection_{xcb_connection}, xcb_screen_{xcb_screen}, async_notifier_{std::move(an)} { // TODO } device::~device(){ // TODO } void device::xcb_window_was_destroyed(xcb_window_t window_id){ // TODO } void device::handle_events(){ // TODO } own device::create_window(const video_mode& vid_mode, std::string_view title_view){ // TODO } void device::flush(){ // TODO } window::window(device& dev_, xcb_window_t xcb_win, xcb_colormap_t xcb_colormap_, const video_mode& vid_mode_, std::string_view& title_view): device_{&dev_}, xcb_window_{xcb_win}, xcb_colormap_{xcb_colormap_}, video_mode_{vid_mode_}, window_title_{tile_view_} { // TODO } window::~window(){ // TODO } void window::show(){ // TODO } void window::hide(){ // TODO } }