Binding GetLastHoverEvent 55/298755/2
authorjoogab.yun <joogab.yun@samsung.com>
Wed, 13 Sep 2023 06:45:54 +0000 (15:45 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Wed, 13 Sep 2023 07:24:41 +0000 (16:24 +0900)
Change-Id: Ib5adff5e3f47607ee7abb6bee922241b058711af

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

index c08714c..40d6cf5 100644 (file)
@@ -2914,6 +2914,24 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetLastTouchEvent(void* winHand
   return jresult;
 }
 
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetLastHoverEvent(void* winHandle)
+{
+  Dali::Window* window = (Dali::Window*)winHandle;
+  void * jresult;
+  Dali::HoverEvent *result = 0;
+  if (!window) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return 0;
+  }
+  {
+    try {
+      result = (Dali::HoverEvent *)&Dali::DevelWindow::GetLastHoverEvent(*window);
+    } CALL_CATCH_EXCEPTION(0);
+  }
+  jresult = (void *)result;
+  return jresult;
+}
+
 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_InternalRetrievingLastKeyEvent(void* winHandle, void* keyHandle)
 {
   Dali::Window* window = (Dali::Window*)winHandle;
@@ -2954,6 +2972,27 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_InternalRetrievingLastTouchEvent(
   }
 }
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_InternalRetrievingLastHoverEvent(void* winHandle, void* hoverHandle)
+{
+  Dali::Window* window = (Dali::Window*)winHandle;
+  Dali::HoverEvent* hoverEvent = (Dali::HoverEvent*)hoverHandle;
+
+  if (!window) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0);
+    return;
+  }
+  if (!hoverEvent) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::HoverEvent", 0);
+    return;
+  }
+  {
+    try {
+      (*hoverEvent) = *((Dali::HoverEvent *)&Dali::DevelWindow::GetLastHoverEvent(*window));
+    } CALL_CATCH_EXCEPTION();
+  }
+}
+
+
 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetNeedsRotationCompletedAcknowledgement(void* winHandle, bool needAcknowledgement)
 {
   Dali::Window* window = (Dali::Window*)winHandle;