[Tizen] Add to get the status whether window is rotating or not 66/274266/1
authorWonsik Jung <sidein@samsung.com>
Tue, 18 Jan 2022 06:07:43 +0000 (15:07 +0900)
committerWonsik Jung <sidein@samsung.com>
Mon, 25 Apr 2022 07:48:23 +0000 (16:48 +0900)
Add to getter api of winow rotation stauts.
When window is rotating, the getter api will return true.
Otherwise false.

Change-Id: I56cdcf59dcb84fd21cba4ceb4d1272c2126b9f21

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

index 665edb8..ae91ba0 100644 (file)
@@ -2546,6 +2546,23 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_Accessibility_Highlight_Signal_de
   return;
 }
 
+SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_Window_IsWindowRotating(void* winHandle)
+{
+  Dali::Window* window = (Dali::Window*)winHandle;
+  bool result = false;
+  if (!window) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return result;
+  }
+  {
+    try {
+      result = Dali::DevelWindow::IsWindowRotating(*window);
+    } CALL_CATCH_EXCEPTION(false);
+  }
+
+  return result;
+}
+
 #ifdef __cplusplus
 }
 #endif