summaryrefslogtreecommitdiff
path: root/src/window/window.h
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-07-01 18:45:33 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-07-01 18:45:33 +0200
commit03a9b58a0b9c13f5e30240fdea6d1c81ef264415 (patch)
tree07f7961f07a7a5533144e57c1a5ac7a9a835a06b /src/window/window.h
parentcc92e6fa0095df2e8244ee6fe247eea049eb3443 (diff)
c++,window: Rewriting window code to match new code
Diffstat (limited to 'src/window/window.h')
-rw-r--r--src/window/window.h14
1 files changed, 9 insertions, 5 deletions
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 <forstio/async/async.h>
#include <forstio/core/common.h>
#include <forstio/codec/schema.h>
@@ -7,10 +9,10 @@
#include <string_view>
#include <variant>
-#include "video_mode.h"
-
namespace saw {
+namespace gfx {
namespace schema {
+using namespace saw::schema;
using WindowResize = Struct<
Member<UInt32, "width">,
Member<UInt32, "height">
@@ -19,11 +21,13 @@ using WindowEvents = Union<
Member<WindowResize, "resize">
>;
}
+
+template<typename T>
+class window;
+}
}
-#ifdef SAW_UNIX_XCB
-#include "xcb.h"
-#endif
+#include "linux_xcb.h"
/**
namespace saw {