From 5f2ca9a01d2e493e222bead7222613e050871928 Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Tue, 23 May 2023 01:38:07 +0200 Subject: c++: Changing approach to a more exposed variant --- src/window/window.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/window/window.h') diff --git a/src/window/window.h b/src/window/window.h index 216c866..a6baae1 100644 --- a/src/window/window.h +++ b/src/window/window.h @@ -1,7 +1,8 @@ #pragma once #include -#include +#include +#include #include #include @@ -9,7 +10,23 @@ #include "video_mode.h" namespace saw { +namespace schema { +using WindowResize = Struct< + NamedMember, + NamedMember +>; +using WindowEvents = Union< + NamedMember +>; +} +} +#ifdef SAW_UNIX_XCB +#include "xcb.h" +#endif + +/** +namespace saw { class window { public: class event { @@ -47,7 +64,7 @@ public: virtual void show() = 0; virtual void hide() = 0; - virtual const video_mode &videoMode() const = 0; + virtual const video_mode &get_video_mode() const = 0; virtual const std::string_view title() const = 0; virtual void resize(size_t width, size_t height) = 0; @@ -55,3 +72,4 @@ public: virtual conveyor on_event() = 0; }; } // namespace saw +*/ -- cgit v1.2.3