[Tizen] Bind Window::SetLayout 07/290707/1 accepted/tizen/7.0/unified/20230403.235608 accepted/tizen/7.0/unified/20230404.033740
authorDaekwang Ryu <dkdk.ryu@samsung.com>
Thu, 23 Mar 2023 08:53:17 +0000 (17:53 +0900)
committerDaekwang Ryu <dkdk.ryu@samsung.com>
Fri, 31 Mar 2023 05:55:38 +0000 (14:55 +0900)
Change-Id: If464378d368284ced3762f6db5a2396fa8d82671

dali-csharp-binder/src/window-wrap.cpp

index 71e5aea..8cafe94 100644 (file)
@@ -1585,6 +1585,25 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetPositionSize(void* jarg1, void
 
 }
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetLayout(void* handle, unsigned int numCols, unsigned int numRows, unsigned int column, unsigned int row, unsigned int colSpan, unsigned int rowSpan)
+{
+  Dali::Window *pWindow;
+  Dali::Window window;
+
+  pWindow = (Dali::Window *)handle;
+  if (!pWindow) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return ;
+  }
+  window = *pWindow;
+
+  {
+    try {
+      window.SetLayout(numCols, numRows, column, row, colSpan, rowSpan);
+    } CALL_CATCH_EXCEPTION();
+  }
+}
+
 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetTransparency(void * jarg1, unsigned int jarg2) {
   Dali::Window arg1 ;
   bool arg2 ;