diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-07-03 01:15:50 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-07-03 01:15:50 +0200 |
commit | b6996385381485d9d829987d031557a8a7b0c557 (patch) | |
tree | 55b976ddbed7702ddfcdeda463f6c396ad6b87b0 | |
parent | 03a9b58a0b9c13f5e30240fdea6d1c81ef264415 (diff) |
c++,window: Progressing to rework. Compilation errors persist
-rw-r--r-- | src/window/xcb.cpp | 1 | ||||
-rw-r--r-- | src/window/xcb.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/window/xcb.cpp b/src/window/xcb.cpp index 62f8182..5e6540c 100644 --- a/src/window/xcb.cpp +++ b/src/window/xcb.cpp @@ -212,6 +212,7 @@ error_or<own<device<backend::linux_xcb>>> create_xcb_device(io_provider& provide return heap<device<backend::linux_xcb>>(display, screen, xcb_connection, xcb_screen, std::move(fd_wrapped)); } +template<> window<backend::linux_xcb>::window(device<backend::linux_xcb>& 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}, diff --git a/src/window/xcb.h b/src/window/xcb.h index 53aac5f..c031cbd 100644 --- a/src/window/xcb.h +++ b/src/window/xcb.h @@ -15,6 +15,12 @@ namespace saw { namespace gfx { +template<typename T> +class window; + +template<typename T> +class device; + template<> class device<backend::linux_xcb> final { private: |