[NUI] Create valid handle from Gesture constructors (#1996)
authorRichard Huang <hrdisaac@users.noreply.github.com>
Thu, 10 Sep 2020 10:25:16 +0000 (11:25 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Sep 2020 10:25:16 +0000 (19:25 +0900)
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
src/Tizen.NUI/src/internal/Interop/Interop.LongPressGesture.cs
src/Tizen.NUI/src/internal/Interop/Interop.PanGestureDetector.cs
src/Tizen.NUI/src/internal/Interop/Interop.PinchGesture.cs
src/Tizen.NUI/src/internal/Interop/Interop.RotationGesture.cs
src/Tizen.NUI/src/internal/Interop/Interop.TapGesture.cs
src/Tizen.NUI/src/public/LongPressGesture.cs
src/Tizen.NUI/src/public/PanGesture.cs
src/Tizen.NUI/src/public/PinchGesture.cs
src/Tizen.NUI/src/public/RotationGesture.cs
src/Tizen.NUI/src/public/TapGesture.cs

index f1d7ab0..b933230 100755 (executable)
@@ -11,6 +11,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_LongPressGesture__SWIG_0")]
             public static extern global::System.IntPtr new_LongPressGesture__SWIG_0(int jarg1);
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_LongPressGesture_New")]
+            public static extern global::System.IntPtr LongPressGesture_New(int jarg1);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_LongPressGesture__SWIG_1")]
             public static extern global::System.IntPtr new_LongPressGesture__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
 
index 08b9599..1ae37e4 100755 (executable)
@@ -128,8 +128,8 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_PanGesture__SWIG_0")]
             public static extern global::System.IntPtr new_PanGesture__SWIG_0();
 
-            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_PanGesture__SWIG_1")]
-            public static extern global::System.IntPtr new_PanGesture__SWIG_1(int jarg1);
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_PanGesture_New")]
+            public static extern global::System.IntPtr PanGesture_New(int jarg1);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_PanGesture__SWIG_2")]
             public static extern global::System.IntPtr new_PanGesture__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1);
index 081c80b..60a44e5 100755 (executable)
@@ -32,6 +32,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_PinchGesture__SWIG_0")]
             public static extern global::System.IntPtr new_PinchGesture__SWIG_0(int jarg1);
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_PinchGesture_New")]
+            public static extern global::System.IntPtr PinchGesture_New(int jarg1);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_PinchGesture__SWIG_1")]
             public static extern global::System.IntPtr new_PinchGesture__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
 
index 7a02180..5efe41a 100755 (executable)
@@ -32,6 +32,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_RotationGesture__SWIG_0")]
             public static extern global::System.IntPtr new_RotationGesture__SWIG_0(int jarg1);
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_RotationGesture_New")]
+            public static extern global::System.IntPtr RotationGesture_New(int jarg1);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_RotationGesture__SWIG_1")]
             public static extern global::System.IntPtr new_RotationGesture__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
 
index c771ff1..62e76d7 100755 (executable)
@@ -14,6 +14,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_TapGesture__SWIG_0")]
             public static extern global::System.IntPtr new_TapGesture__SWIG_0();
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TapGesture_New")]
+            public static extern global::System.IntPtr TapGesture_New(int jarg1);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_TapGesture__SWIG_1")]
             public static extern global::System.IntPtr new_TapGesture__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
 
index 393fd6b..54c0037 100755 (executable)
@@ -32,7 +32,7 @@ namespace Tizen.NUI
         /// </summary>
         /// <param name="state">The state of the gesture</param>
         /// <since_tizen> 3 </since_tizen>
-        public LongPressGesture(Gesture.StateType state) : this(Interop.LongPressGesture.new_LongPressGesture__SWIG_0((int)state), true)
+        public LongPressGesture(Gesture.StateType state) : this(Interop.LongPressGesture.LongPressGesture_New((int)state), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
@@ -147,4 +147,4 @@ namespace Tizen.NUI
             Interop.LongPressGesture.delete_LongPressGesture(swigCPtr);
         }
     }
-}
\ No newline at end of file
+}
index d18c30e..dcf2016 100755 (executable)
@@ -35,7 +35,7 @@ namespace Tizen.NUI
         /// The default constructor.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
-        public PanGesture() : this(Interop.PanGestureDetector.new_PanGesture__SWIG_0(), true)
+        public PanGesture() : this(Interop.PanGestureDetector.PanGesture_New(0), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
@@ -44,7 +44,7 @@ namespace Tizen.NUI
         /// The constructor.
         /// </summary>
         /// <param name="state">The state of the gesture</param>
-        internal PanGesture(Gesture.StateType state) : this(Interop.PanGestureDetector.new_PanGesture__SWIG_1((int)state), true)
+        internal PanGesture(Gesture.StateType state) : this(Interop.PanGestureDetector.PanGesture_New((int)state), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
index 6074680..7c1da7a 100755 (executable)
@@ -89,7 +89,7 @@ namespace Tizen.NUI
         /// <param name="state">The state of the gesture.</param>
         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public PinchGesture(Gesture.StateType state) : this(Interop.PinchGesture.new_PinchGesture__SWIG_0((int)state), true)
+        public PinchGesture(Gesture.StateType state) : this(Interop.PinchGesture.PinchGesture_New((int)state), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
@@ -175,4 +175,4 @@ namespace Tizen.NUI
             Interop.PinchGesture.delete_PinchGesture(swigCPtr);
         }
     }
-}
\ No newline at end of file
+}
index 5290e86..289ae21 100755 (executable)
@@ -78,7 +78,7 @@ namespace Tizen.NUI
         /// <param name="state">The state of the gesture.</param>
         /// This will be made public in the next tizen release after an ACR is done. Till then, it needs to be hidden as an inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public RotationGesture(Gesture.StateType state) : this(Interop.RotationGesture.new_RotationGesture__SWIG_0((int)state), true)
+        public RotationGesture(Gesture.StateType state) : this(Interop.RotationGesture.RotationGesture_New((int)state), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
index 064383b..47dea70 100755 (executable)
@@ -30,7 +30,7 @@ namespace Tizen.NUI
         /// Creates a TapGesture.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
-        public TapGesture() : this(Interop.TapGesture.new_TapGesture__SWIG_0(), true)
+        public TapGesture() : this(Interop.TapGesture.TapGesture_New(0), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
@@ -173,4 +173,4 @@ namespace Tizen.NUI
             Interop.TapGesture.delete_TapGesture(swigCPtr);
         }
     }
-}
\ No newline at end of file
+}