-//------------------------------------------------------------------------------
-// <auto-generated />
-//
-// 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
{
/// <summary>
/// A TapGesture is emitted when the user taps the screen with the stated number of fingers a stated number of times.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
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;
- }
/// <summary>
- /// Dispose
+ /// Creates a TapGesture.
/// </summary>
- protected override void Dispose(DisposeTypes type)
+ /// <since_tizen> 3 </since_tizen>
+ 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();
}
-
- /// <summary>
- /// Get TapGesture from the pointer.
- /// </summary>
- /// <param name="cPtr">The pointer to cast</param>
- /// <returns>TapGesture object</returns>
- 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;
}
/// <summary>
- /// Number of taps property (read-only).
+ /// The number of taps property (read-only).
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public uint NumberOfTaps
{
get
}
/// <summary>
- /// Number of touches property (read-only).
+ /// The number of touches property (read-only).
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public uint NumberOfTouches
{
get
}
/// <summary>
- /// Screen point property (read-only).
+ /// The screen point property (read-only).
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public Vector2 ScreenPoint
{
get
}
/// <summary>
- /// Local point property (read-only).
+ /// The local point property (read-only).
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public Vector2 LocalPoint
{
get
}
}
- /// <summary>
- /// Creates a TapGesture.
- /// </summary>
- 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;
}
{
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;
}
{
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;
{
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;
+ }
+ /// <summary>
+ /// Gets the TapGesture from the pointer.
+ /// </summary>
+ /// <param name="cPtr">The pointer to cast.</param>
+ /// <returns>The TapGesture object.</returns>
+ 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);
+ }
+ }
}