From: ANZ1217 Date: Wed, 1 Nov 2023 08:54:00 +0000 (+0900) Subject: Bind Window constructor using WindowData X-Git-Tag: dali_2.2.52~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c1eb5399ceecafe278f4eea34f32ffa2179bd4b;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Bind Window constructor using WindowData Change-Id: Id313651d31a0caf8f11a21514a39e2ca3f59a14d --- diff --git a/dali-csharp-binder/dali-adaptor/window-wrap.cpp b/dali-csharp-binder/dali-adaptor/window-wrap.cpp index 03483b4..0e7ac82 100644 --- a/dali-csharp-binder/dali-adaptor/window-wrap.cpp +++ b/dali-csharp-binder/dali-adaptor/window-wrap.cpp @@ -369,6 +369,51 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_New__SWIG_3(void * jarg1, char } +SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_Window_New__WithWindowData(char* nuiName, char* nuiClassName, void* nuiWindowData) +{ + void* jresult; + std::string* name = 0; + std::string* className = 0; + Dali::WindowData* pWindowData; + Dali::Window result; + + if(!nuiName) + { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "String NUI Name is NULL", 0); + return 0; + } + std::string name_str(nuiName); + name = &name_str; + + if(!nuiClassName) + { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "String NUI Class Name is NULL", 0); + return 0; + } + std::string className_str(nuiClassName); + className = &className_str; + + pWindowData = (Dali::WindowData*)nuiWindowData; + if(!pWindowData) + { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::WindowData", 0); + return 0; + } + + { + try + { + result = Dali::Window::New((std::string const&)*name, (std::string const&)*className, *pWindowData); + } + CALL_CATCH_EXCEPTION(0); + } + + jresult = new Dali::Window((const Dali::Window&)result); + + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Window__SWIG_0() { void * jresult ; Dali::Window *result = 0 ;