Add SetPartialUpdateEnabled to Window 37/294637/2
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 22 Jun 2023 04:28:41 +0000 (13:28 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 26 Jun 2023 00:16:55 +0000 (00:16 +0000)
Change-Id: Idf3d13044db3eadfa2c8b562c0cd46d9624fac1d

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

index bca82c6d3b6bde5d014af50cef2e2b0823659124..38a867fbd52fac980b3b001a63cfae50fb2a8980 100644 (file)
@@ -2655,6 +2655,42 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_KeepRendering(void* winHandle, fl
   }
 }
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetPartialUpdateEnabled(void* winHandle, bool enabled)
+{
+  Dali::Window* window = static_cast<Dali::Window*>(winHandle);
+  if(!window)
+  {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return;
+  }
+  {
+    try
+    {
+      window->SetPartialUpdateEnabled(enabled);
+    }
+    CALL_CATCH_EXCEPTION();
+  }
+}
+
+SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_Window_IsPartialUpdateEnabled(void* winHandle)
+{
+  Dali::Window* window = static_cast<Dali::Window*>(winHandle);
+  bool enabled = false;
+  if(!window)
+  {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return false;
+  }
+  {
+    try
+    {
+      enabled = window->IsPartialUpdateEnabled();
+    }
+    CALL_CATCH_EXCEPTION(false);
+  }
+  return enabled;
+}
+
 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_Window_Accessibility_Highlight_Signal(void* winHandle) {
   Dali::Window* window = (Dali::Window*) winHandle;
   Dali::DevelWindow::AccessibilityHighlightSignalType* result = 0;