aboutsummaryrefslogtreecommitdiff
path: root/src/ui/helper.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-12-13 01:02:47 +0800
committercrupest <crupest@outlook.com>2019-12-13 01:02:47 +0800
commit9110574bb51e9e2959842a7641f598d34c3cd847 (patch)
tree96ee1f5b3c40095e4e923fc763de0663ee6a01aa /src/ui/helper.cpp
parentf2aa96fba0b72eeeadf5160ea5df2c8143ec8aa0 (diff)
downloadcru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.gz
cru-9110574bb51e9e2959842a7641f598d34c3cd847.tar.bz2
cru-9110574bb51e9e2959842a7641f598d34c3cd847.zip
...
Diffstat (limited to 'src/ui/helper.cpp')
-rw-r--r--src/ui/helper.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui/helper.cpp b/src/ui/helper.cpp
new file mode 100644
index 00000000..4d5d8665
--- /dev/null
+++ b/src/ui/helper.cpp
@@ -0,0 +1,15 @@
+#include "helper.hpp"
+
+#include "cru/platform/graph/factory.hpp"
+#include "cru/platform/native/ui_application.hpp"
+
+namespace cru::ui {
+using cru::platform::graph::IGraphFactory;
+using cru::platform::native::IUiApplication;
+
+IGraphFactory* GetGraphFactory() {
+ return IUiApplication::GetInstance()->GetGraphFactory();
+}
+
+IUiApplication* GetUiApplication() { return IUiApplication::GetInstance(); }
+} // namespace cru::ui