Binding RotationCompletedAcknowledgement APIs 92/289992/1
authorWonsik Jung <sidein@samsung.com>
Fri, 17 Mar 2023 00:47:42 +0000 (09:47 +0900)
committerWonsik Jung <sidein@samsung.com>
Fri, 17 Mar 2023 00:47:42 +0000 (09:47 +0900)
Binding RotationCompletedAcknowledgement APIs in Window.
The APIs are SetNeedsRotationCompletedAcknowledgement and SendRotationCompletedAcknowledgement

Change-Id: Ib8aa37055ab6d5fb71100f9badea7f0a91a8873e

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

index 888e99a..71e5aea 100644 (file)
@@ -2715,6 +2715,34 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetLastTouchEvent(void* winHand
   return jresult;
 }
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetNeedsRotationCompletedAcknowledgement(void* winHandle, bool needAcknowledgement)
+{
+  Dali::Window* window = (Dali::Window*)winHandle;
+  if (!window) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return;
+  }
+  {
+    try {
+      Dali::DevelWindow::SetNeedsRotationCompletedAcknowledgement(*window, needAcknowledgement);
+    } CALL_CATCH_EXCEPTION();
+  }
+}
+
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SendRotationCompletedAcknowledgement(void* winHandle)
+{
+  Dali::Window* window = (Dali::Window*)winHandle;
+  if (!window) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return;
+  }
+  {
+    try {
+      Dali::DevelWindow::SendRotationCompletedAcknowledgement(*window);
+    } CALL_CATCH_EXCEPTION();
+  }
+}
+
 /* Moved signal binding */
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_Moved_Signal(void* winHandle)
 {