aboutsummaryrefslogtreecommitdiff
path: root/src/ui/Helper.cpp
diff options
context:
space:
mode:
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..6f67e701
--- /dev/null
+++ b/src/ui/Helper.cpp
@@ -0,0 +1,15 @@
+#include "Helper.hpp"
+
+#include "cru/platform/graph/Factory.hpp"
+#include "cru/platform/native/UiApplication.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