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 /// Base structure for different gestures that an application can receive.
16 /// A gesture is an event that is produced from a combination of several touch events
17 /// in a particular order or within a certain time frame (e.g pinch).
19 public class Gesture : global::System.IDisposable
21 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
22 protected bool swigCMemOwn;
24 internal Gesture(global::System.IntPtr cPtr, bool cMemoryOwn)
26 swigCMemOwn = cMemoryOwn;
27 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
30 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Gesture obj)
32 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
37 DisposeQueue.Instance.Add(this);
40 public virtual void Dispose()
42 if (!Stage.IsInstalled())
44 DisposeQueue.Instance.Add(this);
50 if (swigCPtr.Handle != global::System.IntPtr.Zero)
55 NDalicPINVOKE.delete_Gesture(swigCPtr);
57 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
59 global::System.GC.SuppressFinalize(this);
67 public Gesture.GestureType Type
76 /// The gesture state.
78 public Gesture.StateType State
87 /// The time the gesture took place.
100 /// <param name="rhs">A reference to the copied handle</param>
101 public Gesture(Gesture rhs) : this(NDalicPINVOKE.new_Gesture(Gesture.getCPtr(rhs)), true)
103 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107 /// Assignment operator.
109 /// <param name="rhs">A reference to the copied handle</param>
110 /// <returns>A reference to this</returns>
111 public Gesture Assign(Gesture rhs)
113 Gesture ret = new Gesture(NDalicPINVOKE.Gesture_Assign(swigCPtr, Gesture.getCPtr(rhs)), false);
114 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
118 private Gesture.GestureType type
122 NDalicPINVOKE.Gesture_type_set(swigCPtr, (int)value);
123 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
127 Gesture.GestureType ret = (Gesture.GestureType)NDalicPINVOKE.Gesture_type_get(swigCPtr);
128 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133 private Gesture.StateType state
137 NDalicPINVOKE.Gesture_state_set(swigCPtr, (int)value);
138 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142 Gesture.StateType ret = (Gesture.StateType)NDalicPINVOKE.Gesture_state_get(swigCPtr);
143 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152 NDalicPINVOKE.Gesture_time_set(swigCPtr, value);
153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
157 uint ret = NDalicPINVOKE.Gesture_time_get(swigCPtr);
158 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
164 /// Enumeration for type of gesture
166 public enum GestureType
175 /// Enumeration for state of the gesture.
177 public enum StateType