From 03a9b58a0b9c13f5e30240fdea6d1c81ef264415 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 1 Jul 2023 18:45:33 +0200 Subject: c++,window: Rewriting window code to match new code --- src/window/window.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/window/window.h') diff --git a/src/window/window.h b/src/window/window.h index 716b25d..36786de 100644 --- a/src/window/window.h +++ b/src/window/window.h @@ -1,5 +1,7 @@ #pragma once +#include "video_mode.h" + #include #include #include @@ -7,10 +9,10 @@ #include #include -#include "video_mode.h" - namespace saw { +namespace gfx { namespace schema { +using namespace saw::schema; using WindowResize = Struct< Member, Member @@ -19,11 +21,13 @@ using WindowEvents = Union< Member >; } + +template +class window; +} } -#ifdef SAW_UNIX_XCB -#include "xcb.h" -#endif +#include "linux_xcb.h" /** namespace saw { -- cgit v1.2.3