From 9110574bb51e9e2959842a7641f598d34c3cd847 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 13 Dec 2019 01:02:47 +0800 Subject: ... --- src/ui/helper.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/ui/helper.cpp (limited to 'src/ui/helper.cpp') 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 -- cgit v1.2.3