Revert "Add bidning for devel apis to create valid handle for Gesture classes"
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 16 Sep 2020 05:18:47 +0000 (14:18 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Wed, 16 Sep 2020 05:18:47 +0000 (14:18 +0900)
This reverts commit 89c34885e9b9e353a0de77268fe01f35415a936a.

dali-csharp-binder/src/dali_wrap.cpp
dali-csharp-binder/src/gestures.cpp

index 8083d50..19ad75e 100755 (executable)
@@ -429,10 +429,6 @@ void SWIG_CSharpException(int code, const char *msg) {
 #include <dali/devel-api/events/wheel-event-devel.h>
 #include <dali/devel-api/events/hover-event-devel.h>
 #include <dali/devel-api/events/touch-point.h>
-#include <dali/devel-api/events/pan-gesture-devel.h>
-#include <dali/devel-api/events/pinch-gesture-devel.h>
-#include <dali/devel-api/events/long-press-gesture-devel.h>
-#include <dali/devel-api/events/tap-gesture-devel.h>
 
 #include <dali/public-api/math/matrix.h>
 #include <dali/public-api/math/matrix3.h>
@@ -20236,23 +20232,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LongPressGesture__SWIG_0() {
 }
 
 
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LongPressGesture_New(int jarg1) {
-  void * jresult ;
-  Dali::GestureState arg1 ;
-  Dali::LongPressGesture result;
-
-  arg1 = (Dali::GestureState)jarg1;
-  {
-    try {
-      result = DevelLongPressGesture::New(arg1);
-    } CALL_CATCH_EXCEPTION(0);
-  }
-
-  jresult = new Dali::LongPressGesture((const Dali::LongPressGesture &)result);
-  return jresult;
-}
-
-
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LongPressGesture__SWIG_1(void * jarg1) {
   void * jresult ;
   Dali::LongPressGesture *arg1 = 0 ;
@@ -25389,20 +25368,36 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PanGesture__SWIG_0() {
   return jresult;
 }
 
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PanGesture_New(int jarg1) {
+// Need to delete this
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PanGesture__SWIG_1(int jarg1) {
   void * jresult ;
   Dali::GestureState arg1 ;
-  Dali::PanGesture result;
+  Dali::PanGesture *result = 0 ;
 
   arg1 = (Dali::GestureState)jarg1;
   {
     try {
-      result = DevelPanGesture::New(arg1);
-    } CALL_CATCH_EXCEPTION(0);
+      result = (Dali::PanGesture *)new Dali::PanGesture();
+    } catch (std::out_of_range& e) {
+      {
+        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
+      };
+    } catch (std::exception& e) {
+      {
+        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
+      };
+    } catch (Dali::DaliException e) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
+      };
+    } catch (...) {
+      {
+        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
+      };
+    }
   }
 
-  jresult = new Dali::PanGesture((const Dali::PanGesture &)result);
+  jresult = (void *)result;
   return jresult;
 }
 
@@ -25877,23 +25872,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PinchGesture__SWIG_0() {
 }
 
 
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_PinchGesture_New(int jarg1) {
-  void * jresult ;
-  Dali::GestureState arg1 ;
-  Dali::PinchGesture result;
-
-  arg1 = (Dali::GestureState)jarg1;
-  {
-    try {
-      result = DevelPinchGesture::New(arg1);
-    } CALL_CATCH_EXCEPTION(0);
-  }
-
-  jresult = new Dali::PinchGesture((const Dali::PinchGesture &)result);
-  return jresult;
-}
-
-
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_PinchGesture__SWIG_1(void * jarg1) {
   void * jresult ;
   Dali::PinchGesture *arg1 = 0 ;
@@ -26262,23 +26240,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TapGesture__SWIG_0() {
 }
 
 
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TapGesture_New(int jarg1) {
-  void * jresult ;
-  Dali::GestureState arg1 ;
-  Dali::TapGesture result;
-
-  arg1 = (Dali::GestureState)jarg1;
-  {
-    try {
-      result = DevelTapGesture::New(arg1);
-    } CALL_CATCH_EXCEPTION(0);
-  }
-
-  jresult = new Dali::TapGesture((const Dali::TapGesture &)result);
-  return jresult;
-}
-
-
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TapGesture__SWIG_1(void * jarg1) {
   void * jresult ;
   Dali::TapGesture *arg1 = 0 ;
index 68ab335..99dc54b 100755 (executable)
@@ -22,7 +22,6 @@
 #include "common.h"
 #include <dali/public-api/events/rotation-gesture.h>
 #include <dali/public-api/events/rotation-gesture-detector.h>
-#include <dali/devel-api/events/rotation-gesture-devel.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -325,39 +324,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_RotationGesture__SWIG_0() {
 }
 
 
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_RotationGesture_New(int jarg1) {
-  void * jresult ;
-  Dali::GestureState arg1 ;
-  Dali::RotationGesture result;
-
-  arg1 = (Dali::GestureState)jarg1;
-  {
-    try {
-      result = DevelRotationGesture::New(arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException& e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
-  }
-
-  jresult = new Dali::RotationGesture((const Dali::RotationGesture &)result);
-  return jresult;
-}
-
-
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_RotationGesture__SWIG_1(void * jarg1) {
   void * jresult ;
   Dali::RotationGesture *arg1 = 0 ;