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;
33 DisposeQueue.Instance.Add(this);
39 public override void Dispose()
41 if (!Stage.IsInstalled())
43 DisposeQueue.Instance.Add(this);
49 if (swigCPtr.Handle != global::System.IntPtr.Zero)
54 NDalicPINVOKE.delete_TapGesture(swigCPtr);
56 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
58 global::System.GC.SuppressFinalize(this);
65 /// Get TapGesture from the pointer.
67 /// <param name="cPtr">The pointer to cast</param>
68 /// <returns>TapGesture object</returns>
69 internal static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
71 TapGesture ret = new TapGesture(cPtr, false);
72 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
77 /// Number of taps property (read-only).
79 public uint NumberOfTaps
88 /// Number of touches property (read-only).
90 public uint NumberOfTouches
94 return numberOfTouches;
99 /// Screen point property (read-only).
101 public Vector2 ScreenPoint
110 /// Local point property (read-only).
112 public Vector2 LocalPoint
121 /// Creates a TapGesture.
123 public TapGesture() : this(NDalicPINVOKE.new_TapGesture__SWIG_0(), true)
125 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
129 /// Copy constructor.
131 /// <param name="rhs">TapGesture to copy</param>
132 public TapGesture(TapGesture rhs) : this(NDalicPINVOKE.new_TapGesture__SWIG_1(TapGesture.getCPtr(rhs)), true)
134 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140 /// <param name="rhs">A reference to the copied handle</param>
141 /// <returns>A reference to this</returns>
142 public TapGesture Assign(TapGesture rhs)
144 TapGesture ret = new TapGesture(NDalicPINVOKE.TapGesture_Assign(swigCPtr, TapGesture.getCPtr(rhs)), false);
145 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149 private uint numberOfTaps
153 NDalicPINVOKE.TapGesture_numberOfTaps_set(swigCPtr, value);
154 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
158 uint ret = NDalicPINVOKE.TapGesture_numberOfTaps_get(swigCPtr);
159 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
164 private uint numberOfTouches
168 NDalicPINVOKE.TapGesture_numberOfTouches_set(swigCPtr, value);
169 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
173 uint ret = NDalicPINVOKE.TapGesture_numberOfTouches_get(swigCPtr);
174 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
179 private Vector2 screenPoint
183 NDalicPINVOKE.TapGesture_screenPoint_set(swigCPtr, Vector2.getCPtr(value));
184 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
188 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_screenPoint_get(swigCPtr);
189 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
190 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
195 private Vector2 localPoint
199 NDalicPINVOKE.TapGesture_localPoint_set(swigCPtr, Vector2.getCPtr(value));
200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_localPoint_get(swigCPtr);
205 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
206 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();