diff options
author | crupest <crupest@outlook.com> | 2021-09-18 16:13:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-09-18 16:13:40 +0800 |
commit | 9a42f6fd709feaa9e9e3cc4530c67e2a237d5bee (patch) | |
tree | b063fadfa6197947b975195f967898ee9b926f2d /src/osx/gui | |
parent | e5b3502b03bdbdbecbd2e8b328e0f874499b452b (diff) | |
download | cru-9a42f6fd709feaa9e9e3cc4530c67e2a237d5bee.tar.gz cru-9a42f6fd709feaa9e9e3cc4530c67e2a237d5bee.tar.bz2 cru-9a42f6fd709feaa9e9e3cc4530c67e2a237d5bee.zip |
...
Diffstat (limited to 'src/osx/gui')
-rw-r--r-- | src/osx/gui/CMakeLists.txt | 15 | ||||
-rw-r--r-- | src/osx/gui/Resource.cpp | 6 | ||||
-rw-r--r-- | src/osx/gui/UiApplication.cpp | 0 | ||||
-rw-r--r-- | src/osx/gui/Window.cpp | 0 |
4 files changed, 21 insertions, 0 deletions
diff --git a/src/osx/gui/CMakeLists.txt b/src/osx/gui/CMakeLists.txt new file mode 100644 index 00000000..26191655 --- /dev/null +++ b/src/osx/gui/CMakeLists.txt @@ -0,0 +1,15 @@ +set(CRU_OSX_GUI_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/osx/gui) + +add_library(cru_osx_gui SHARED + Resource.cpp + UiApplication.cpp + Window.cpp +) + +target_sources(cru_osx_gui PUBLIC + ${CRU_OSX_GUI_INCLUDE_DIR}/Resource.hpp + ${CRU_OSX_GUI_INCLUDE_DIR}/UiApplication.hpp + ${CRU_OSX_GUI_INCLUDE_DIR}/Window.hpp +) + +target_link_libraries(cru_osx_gui PUBLIC cru_platform_gui cru_osx_graphics_quartz) diff --git a/src/osx/gui/Resource.cpp b/src/osx/gui/Resource.cpp new file mode 100644 index 00000000..3e9782e2 --- /dev/null +++ b/src/osx/gui/Resource.cpp @@ -0,0 +1,6 @@ +#include "cru/osx/gui/Resource.hpp" + +namespace cru::platform::gui::osx { +OsxGuiResource::OsxGuiResource(IUiApplication* ui_application) + : ui_application_(ui_application) {} +} // namespace cru::platform::gui::osx diff --git a/src/osx/gui/UiApplication.cpp b/src/osx/gui/UiApplication.cpp new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/osx/gui/UiApplication.cpp diff --git a/src/osx/gui/Window.cpp b/src/osx/gui/Window.cpp new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/osx/gui/Window.cpp |