X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FTapGesture.cs;h=05354ea6025d6ed6ec7e2ca8b3aede5281f980a9;hb=013550adda2b112b0b8aba069d01b0d8d43e554e;hp=29745bce5fe8927b8612bbdc9d758f46646a65e8;hpb=0fa1f62cb107e2e21bfa4d9c5f7b3f2a6a5626a0;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.NUI/src/public/TapGesture.cs b/src/Tizen.NUI/src/public/TapGesture.cs
index 29745bc..05354ea 100755
--- a/src/Tizen.NUI/src/public/TapGesture.cs
+++ b/src/Tizen.NUI/src/public/TapGesture.cs
@@ -1,12 +1,20 @@
-//------------------------------------------------------------------------------
-//
-//
-// This file was automatically generated by SWIG (http://www.swig.org).
-// Version 3.0.9
-//
-// Do not make changes to this file unless you know what you are doing--modify
-// the SWIG interface file instead.
-//------------------------------------------------------------------------------
+/*
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+using System.ComponentModel;
namespace Tizen.NUI
{
@@ -14,70 +22,27 @@ namespace Tizen.NUI
///
/// A TapGesture is emitted when the user taps the screen with the stated number of fingers a stated number of times.
///
+ /// 3
public class TapGesture : Gesture
{
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-
- internal TapGesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TapGesture_SWIGUpcast(cPtr), cMemoryOwn)
- {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TapGesture obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
///
- /// Dispose
+ /// Creates a TapGesture.
///
- protected override void Dispose(DisposeTypes type)
+ /// 3
+ public TapGesture() : this(Interop.TapGesture.New(0), true)
{
- if(disposed)
- {
- return;
- }
-
- if(type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_TapGesture(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
-
- base.Dispose(type);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
-
- ///
- /// Get TapGesture from the pointer.
- ///
- /// The pointer to cast
- /// TapGesture object
- internal static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
+ internal TapGesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.TapGesture.Upcast(cPtr), cMemoryOwn)
{
- TapGesture ret = new TapGesture(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
}
///
- /// Number of taps property (read-only).
+ /// The number of taps property (read-only).
///
+ /// 3
public uint NumberOfTaps
{
get
@@ -87,8 +52,9 @@ namespace Tizen.NUI
}
///
- /// Number of touches property (read-only).
+ /// The number of touches property (read-only).
///
+ /// 3
public uint NumberOfTouches
{
get
@@ -98,8 +64,9 @@ namespace Tizen.NUI
}
///
- /// Screen point property (read-only).
+ /// The screen point property (read-only).
///
+ /// 3
public Vector2 ScreenPoint
{
get
@@ -109,8 +76,9 @@ namespace Tizen.NUI
}
///
- /// Local point property (read-only).
+ /// The local point property (read-only).
///
+ /// 3
public Vector2 LocalPoint
{
get
@@ -119,25 +87,16 @@ namespace Tizen.NUI
}
}
- ///
- /// Creates a TapGesture.
- ///
- public TapGesture() : this(NDalicPINVOKE.new_TapGesture__SWIG_0(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
-
private uint numberOfTaps
{
set
{
- NDalicPINVOKE.TapGesture_numberOfTaps_set(swigCPtr, value);
+ Interop.TapGesture.NumberOfTapsSet(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- uint ret = NDalicPINVOKE.TapGesture_numberOfTaps_get(swigCPtr);
+ uint ret = Interop.TapGesture.NumberOfTapsGet(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
@@ -147,12 +106,12 @@ namespace Tizen.NUI
{
set
{
- NDalicPINVOKE.TapGesture_numberOfTouches_set(swigCPtr, value);
+ Interop.TapGesture.NumberOfTouchesSet(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- uint ret = NDalicPINVOKE.TapGesture_numberOfTouches_get(swigCPtr);
+ uint ret = Interop.TapGesture.NumberOfTouchesGet(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
@@ -162,12 +121,12 @@ namespace Tizen.NUI
{
set
{
- NDalicPINVOKE.TapGesture_screenPoint_set(swigCPtr, Vector2.getCPtr(value));
+ Interop.TapGesture.ScreenPointSet(swigCPtr, Vector2.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_screenPoint_get(swigCPtr);
+ global::System.IntPtr cPtr = Interop.TapGesture.ScreenPointGet(swigCPtr);
Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
@@ -178,18 +137,40 @@ namespace Tizen.NUI
{
set
{
- NDalicPINVOKE.TapGesture_localPoint_set(swigCPtr, Vector2.getCPtr(value));
+ Interop.TapGesture.LocalPointSet(swigCPtr, Vector2.getCPtr(value));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_localPoint_get(swigCPtr);
+ global::System.IntPtr cPtr = Interop.TapGesture.LocalPointGet(swigCPtr);
Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
- }
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TapGesture obj)
+ {
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ }
+ ///
+ /// Gets the TapGesture from the pointer.
+ ///
+ /// The pointer to cast.
+ /// The TapGesture object.
+ internal static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
+ {
+ TapGesture ret = new TapGesture(cPtr, false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// This will not be public opened.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
+ {
+ Interop.TapGesture.DeleteTapGesture(swigCPtr);
+ }
+ }
}