1 //------------------------------------------------------------------------------
4 // This file was automatically generated by SWIG (http://www.swig.org).
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
15 /// A TapGesture is emitted when the user taps the screen with the stated number of fingers a stated number of times.
17 public class TapGesture : Gesture
19 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
21 internal TapGesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TapGesture_SWIGUpcast(cPtr), cMemoryOwn)
23 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
26 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TapGesture obj)
28 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
34 protected override void Dispose(DisposeTypes type)
41 if(type == DisposeTypes.Explicit)
44 //Release your own managed resources here.
45 //You should release all of your own disposable objects here.
48 //Release your own unmanaged resources here.
49 //You should not access any managed member here except static instance.
50 //because the execution order of Finalizes is non-deterministic.
52 if (swigCPtr.Handle != global::System.IntPtr.Zero)
57 NDalicPINVOKE.delete_TapGesture(swigCPtr);
59 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
67 /// Get TapGesture from the pointer.
69 /// <param name="cPtr">The pointer to cast</param>
70 /// <returns>TapGesture object</returns>
71 internal static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
73 TapGesture ret = new TapGesture(cPtr, false);
74 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79 /// Number of taps property (read-only).
81 public uint NumberOfTaps
90 /// Number of touches property (read-only).
92 public uint NumberOfTouches
96 return numberOfTouches;
101 /// Screen point property (read-only).
103 public Vector2 ScreenPoint
112 /// Local point property (read-only).
114 public Vector2 LocalPoint
123 /// Creates a TapGesture.
125 public TapGesture() : this(NDalicPINVOKE.new_TapGesture__SWIG_0(), true)
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131 /// Copy constructor.
133 /// <param name="rhs">TapGesture to copy</param>
134 public TapGesture(TapGesture rhs) : this(NDalicPINVOKE.new_TapGesture__SWIG_1(TapGesture.getCPtr(rhs)), true)
136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142 /// <param name="rhs">A reference to the copied handle</param>
143 /// <returns>A reference to this</returns>
144 public TapGesture Assign(TapGesture rhs)
146 TapGesture ret = new TapGesture(NDalicPINVOKE.TapGesture_Assign(swigCPtr, TapGesture.getCPtr(rhs)), false);
147 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
151 private uint numberOfTaps
155 NDalicPINVOKE.TapGesture_numberOfTaps_set(swigCPtr, value);
156 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
160 uint ret = NDalicPINVOKE.TapGesture_numberOfTaps_get(swigCPtr);
161 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166 private uint numberOfTouches
170 NDalicPINVOKE.TapGesture_numberOfTouches_set(swigCPtr, value);
171 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
175 uint ret = NDalicPINVOKE.TapGesture_numberOfTouches_get(swigCPtr);
176 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
181 private Vector2 screenPoint
185 NDalicPINVOKE.TapGesture_screenPoint_set(swigCPtr, Vector2.getCPtr(value));
186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
190 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_screenPoint_get(swigCPtr);
191 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
192 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
197 private Vector2 localPoint
201 NDalicPINVOKE.TapGesture_localPoint_set(swigCPtr, Vector2.getCPtr(value));
202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
206 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_localPoint_get(swigCPtr);
207 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
208 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();