[Tizen] Binding RotationCompletedAcknowledgement APIs 87/289987/1
authorWonsik Jung <sidein@samsung.com>
Fri, 17 Mar 2023 00:30:55 +0000 (09:30 +0900)
committerWonsik Jung <sidein@samsung.com>
Fri, 17 Mar 2023 00:34:10 +0000 (09:34 +0900)
Binding RotationCompletedAcknowledgement APIs in Window.
The APIs are SetNeedsRotationCompletedAcknowledgement and SendRotationCompletedAcknowledgement

Change-Id: If69afb24ec852ae893625031f0d6f58403fd6d2b

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)
 {