From: joogab.yun Date: Wed, 13 Sep 2023 06:45:54 +0000 (+0900) Subject: Binding GetLastHoverEvent X-Git-Tag: accepted/tizen/unified/20230915.085417~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d487b9d9a98be0f2b980de0c6e284ee21de403ab;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Binding GetLastHoverEvent Change-Id: Ib5adff5e3f47607ee7abb6bee922241b058711af --- diff --git a/dali-csharp-binder/dali-adaptor/window-wrap.cpp b/dali-csharp-binder/dali-adaptor/window-wrap.cpp index c08714c9..40d6cf5a 100644 --- a/dali-csharp-binder/dali-adaptor/window-wrap.cpp +++ b/dali-csharp-binder/dali-adaptor/window-wrap.cpp @@ -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;