aboutsummaryrefslogtreecommitdiff
path: root/include/cru/osx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-09-18 16:13:40 +0800
committercrupest <crupest@outlook.com>2021-09-18 16:13:40 +0800
commit9a42f6fd709feaa9e9e3cc4530c67e2a237d5bee (patch)
treeb063fadfa6197947b975195f967898ee9b926f2d /include/cru/osx
parente5b3502b03bdbdbecbd2e8b328e0f874499b452b (diff)
downloadcru-9a42f6fd709feaa9e9e3cc4530c67e2a237d5bee.tar.gz
cru-9a42f6fd709feaa9e9e3cc4530c67e2a237d5bee.tar.bz2
cru-9a42f6fd709feaa9e9e3cc4530c67e2a237d5bee.zip
...
Diffstat (limited to 'include/cru/osx')
-rw-r--r--include/cru/osx/gui/Resource.hpp24
-rw-r--r--include/cru/osx/gui/UiApplication.hpp0
-rw-r--r--include/cru/osx/gui/Window.hpp18
3 files changed, 42 insertions, 0 deletions
diff --git a/include/cru/osx/gui/Resource.hpp b/include/cru/osx/gui/Resource.hpp
new file mode 100644
index 00000000..3e44bb9b
--- /dev/null
+++ b/include/cru/osx/gui/Resource.hpp
@@ -0,0 +1,24 @@
+#pragma once
+#include "../Resource.hpp"
+
+#include "cru/platform/gui/Base.hpp"
+
+namespace cru::platform::gui::osx {
+class OsxGuiResource : public platform::osx::OsxResource {
+ public:
+ explicit OsxGuiResource(IUiApplication* ui_application);
+
+ CRU_DELETE_COPY(OsxGuiResource)
+ CRU_DELETE_MOVE(OsxGuiResource)
+
+ ~OsxGuiResource() override = default;
+
+ public:
+ String GetPlatformId() const override { return u"OSX GUI"; }
+
+ IUiApplication* GetUiApplication() const { return ui_application_; }
+
+ private:
+ IUiApplication* ui_application_;
+};
+} // namespace cru::platform::gui::osx
diff --git a/include/cru/osx/gui/UiApplication.hpp b/include/cru/osx/gui/UiApplication.hpp
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/include/cru/osx/gui/UiApplication.hpp
diff --git a/include/cru/osx/gui/Window.hpp b/include/cru/osx/gui/Window.hpp
new file mode 100644
index 00000000..14ad05ad
--- /dev/null
+++ b/include/cru/osx/gui/Window.hpp
@@ -0,0 +1,18 @@
+#pragma once
+#include "Resource.hpp"
+#include "cru/platform/gui/Base.hpp"
+#include "cru/platform/gui/Window.hpp"
+
+namespace cru::platform::gui::osx {
+class OsxWindow : public OsxGuiResource, public virtual INativeWindow {
+ public:
+ OsxWindow();
+
+ CRU_DELETE_COPY(OsxWindow)
+ CRU_DELETE_MOVE(OsxWindow)
+
+ ~OsxWindow() override;
+
+ private:
+};
+} // namespace cru::platform::gui::osx