From 27b16ac60d10eb476711963a14ee45f5b09e5193 Mon Sep 17 00:00:00 2001 From: Sunghyun Kim Date: Thu, 8 Jul 2021 15:13:51 +0900 Subject: [PATCH] Add Api for getting window from view it need to getting window from view Change-Id: I37d9e389a1422c6c00ff4b1a88ab262789c88031 --- dali-csharp-binder/src/window.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/dali-csharp-binder/src/window.cpp b/dali-csharp-binder/src/window.cpp index 2cce071c..8ad1eaff 100644 --- a/dali-csharp-binder/src/window.cpp +++ b/dali-csharp-binder/src/window.cpp @@ -2881,6 +2881,35 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetParent(void* jarg1) return jresult; } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetWindow(void * jarg1) { + void * jresult ; + Dali::Window result; + + { + try { + result = Dali::DevelWindow::Get(*(Dali::Actor*)jarg1); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + jresult = new Dali::Window((const Dali::Window &)result); + return jresult; +} + SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_Transition_Effect_EventSignal(void * jarg1) { void * jresult ; Dali::Window *arg1 = (Dali::Window *) 0 ; -- 2.34.1