Add the window wrappers about input region 09/262309/3
authorWonsik Jung <sidein@samsung.com>
Fri, 6 Aug 2021 08:30:06 +0000 (17:30 +0900)
committerWonsik Jung <sidein@samsung.com>
Mon, 23 Aug 2021 15:05:05 +0000 (00:05 +0900)
Add the window wrappers about input region.
Add and Subtract region.

Change-Id: I2f23f63f11548d8e4c728f215e98fb076f214866

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

index 66139d8..382209c 100644 (file)
@@ -3925,6 +3925,71 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_EnableFloatingMode(void* jarg1, b
 
 }
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_IncludeInputRegion(void* winHandle, void* region)
+{
+  Dali::Window* window = (Dali::Window*)winHandle;
+  Dali::Rect<int> *addedRegion = (Dali::Rect<int> *)region;
+  if (!window) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return;
+  }
+  {
+    try {
+      Dali::DevelWindow::IncludeInputRegion(*window, *addedRegion);
+    } catch (std::out_of_range& e) {
+      {
+        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
+      };
+    } catch (std::exception& e) {
+      {
+        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
+      };
+    } catch (Dali::DaliException e) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
+      };
+    } catch (...) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
+      };
+    }
+  }
+
+}
+
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_ExcludeInputRegion(void* winHandle, void* region)
+{
+  Dali::Window* window = (Dali::Window*)winHandle;
+  Dali::Rect<int> *subtractedRegion = (Dali::Rect<int> *)region;
+  if (!window) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return;
+  }
+  {
+    try {
+      Dali::DevelWindow::ExcludeInputRegion(*window, *subtractedRegion);
+    } catch (std::out_of_range& e) {
+      {
+        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
+      };
+    } catch (std::exception& e) {
+      {
+        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
+      };
+    } catch (Dali::DaliException e) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
+      };
+    } catch (...) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
+      };
+    }
+  }
+
+}
+
+
 #ifdef __cplusplus
 }
 #endif