Add a Hit-Test result events. 76/270976/6
authorjoogab.yun <joogab.yun@samsung.com>
Sat, 12 Feb 2022 06:26:44 +0000 (15:26 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Thu, 3 Mar 2022 02:57:30 +0000 (11:57 +0900)
In the case of TouchEvent or Gesture, there is no way to propagate the event to the view below that is not related.

So, before sending an touch event, send an hitTestResult event to the view in the hit-test process to ask whether it will be hit or not.
If it returns false, it means that it will not be hit, and the hit-test continues to the next view.

Change-Id: Iddd07ace348441e7a51683352bea59531a3548ad

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

index a25b6c9..bbe5cbb 100755 (executable)
@@ -24026,6 +24026,29 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Actor_RemoveRenderer__SWIG_1(void * jarg
 
 }
 
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Actor_HitTestResultSignal(void * jarg1) {
+  void * jresult ;
+  Dali::Actor arg1 ;
+  Dali::Actor *argp1 = (Dali::Actor *) 0 ;
+  Dali::Actor::TouchEventSignalType *result = 0 ;
+
+
+  argp1 = (Dali::Actor *)jarg1;
+  if (!argp1) {
+    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Actor", 0);
+    return 0;
+  }
+  arg1 = *argp1;
+  {
+    try {
+      result = (Dali::Actor::TouchEventSignalType *) &Dali::DevelActor::HitTestResultSignal(arg1);
+    } CALL_CATCH_EXCEPTION(0);
+  }
+
+  jresult = (void *)result;
+  return jresult;
+}
+
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Actor_InterceptTouchSignal(void * jarg1) {
   void * jresult ;
   Dali::Actor arg1 ;