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 private uint numberOfTaps
135 NDalicPINVOKE.TapGesture_numberOfTaps_set(swigCPtr, value);
136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140 uint ret = NDalicPINVOKE.TapGesture_numberOfTaps_get(swigCPtr);
141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
146 private uint numberOfTouches
150 NDalicPINVOKE.TapGesture_numberOfTouches_set(swigCPtr, value);
151 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
155 uint ret = NDalicPINVOKE.TapGesture_numberOfTouches_get(swigCPtr);
156 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161 private Vector2 screenPoint
165 NDalicPINVOKE.TapGesture_screenPoint_set(swigCPtr, Vector2.getCPtr(value));
166 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
170 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_screenPoint_get(swigCPtr);
171 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
172 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
177 private Vector2 localPoint
181 NDalicPINVOKE.TapGesture_localPoint_set(swigCPtr, Vector2.getCPtr(value));
182 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
186 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_localPoint_get(swigCPtr);
187 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
188 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();