aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/gui/xcb/Base.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-08-31 21:48:29 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-03 22:48:05 +0800
commitcf1a0aea8080c06d70bba5984743c2948d4215c3 (patch)
tree5c4df7ca235418b13ed416f6e04d726fd3d17d57 /include/cru/platform/gui/xcb/Base.h
parent454dd39992b221d7394da4c99616d9eedeaee25a (diff)
downloadcru-cf1a0aea8080c06d70bba5984743c2948d4215c3.tar.gz
cru-cf1a0aea8080c06d70bba5984743c2948d4215c3.tar.bz2
cru-cf1a0aea8080c06d70bba5984743c2948d4215c3.zip
Bootstrap xcb.
Diffstat (limited to 'include/cru/platform/gui/xcb/Base.h')
-rw-r--r--include/cru/platform/gui/xcb/Base.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/cru/platform/gui/xcb/Base.h b/include/cru/platform/gui/xcb/Base.h
new file mode 100644
index 00000000..f3bcfd01
--- /dev/null
+++ b/include/cru/platform/gui/xcb/Base.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <cru/base/Exception.h>
+
+#include "../../Resource.h"
+
+namespace cru::platform::gui::xcb {
+class XcbResource : public Object, public virtual IPlatformResource {
+ public:
+ static String kPlatformId;
+
+ protected:
+ XcbResource() = default;
+
+ public:
+ String GetPlatformId() const final { return kPlatformId; }
+};
+
+class XcbException : public PlatformException {
+ public:
+ using PlatformException::PlatformException;
+};
+} // namespace cru::platform::gui::xcb