1 //------------------------------------------------------------------------------
\r
2 // <auto-generated />
\r
4 // This file was automatically generated by SWIG (http://www.swig.org).
\r
7 // Do not make changes to this file unless you know what you are doing--modify
\r
8 // the SWIG interface file instead.
\r
9 //------------------------------------------------------------------------------
\r
14 public class Touch : BaseHandle
\r
16 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
18 internal Touch(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Touch_SWIGUpcast(cPtr), cMemoryOwn)
\r
20 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
23 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Touch obj)
\r
25 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
30 DisposeQueue.Instance.Add(this);
\r
33 public override void Dispose()
\r
35 if (!Stage.IsInstalled())
\r
37 DisposeQueue.Instance.Add(this);
\r
43 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
47 swigCMemOwn = false;
\r
48 NDalicPINVOKE.delete_Touch(swigCPtr);
\r
50 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
52 global::System.GC.SuppressFinalize(this);
\r
58 internal static Touch GetTouchFromPtr(global::System.IntPtr cPtr)
\r
60 Touch ret = new Touch(cPtr, false);
\r
61 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
65 public Touch() : this(NDalicPINVOKE.new_Touch__SWIG_0(), true)
\r
67 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
70 internal Touch(Touch other) : this(NDalicPINVOKE.new_Touch__SWIG_1(Touch.getCPtr(other)), true)
\r
72 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
75 internal Touch Assign(Touch other)
\r
77 Touch ret = new Touch(NDalicPINVOKE.Touch_Assign(swigCPtr, Touch.getCPtr(other)), false);
\r
78 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
82 public uint GetTime()
\r
84 uint ret = NDalicPINVOKE.Touch_GetTime(swigCPtr);
\r
85 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
89 public uint GetPointCount()
\r
91 uint ret = NDalicPINVOKE.Touch_GetPointCount(swigCPtr);
\r
92 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
96 public int GetDeviceId(uint point)
\r
98 int ret = NDalicPINVOKE.Touch_GetDeviceId(swigCPtr, point);
\r
99 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
103 public PointStateType GetState(uint point)
\r
105 PointStateType ret = (PointStateType)NDalicPINVOKE.Touch_GetState(swigCPtr, point);
\r
106 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
110 public Actor GetHitActor(uint point)
\r
112 Actor ret = new Actor(NDalicPINVOKE.Touch_GetHitActor(swigCPtr, point), true);
\r
113 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
117 public Vector2 GetLocalPosition(uint point)
\r
119 Vector2 ret = new Vector2(NDalicPINVOKE.Touch_GetLocalPosition(swigCPtr, point), false);
\r
120 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
124 public Vector2 GetScreenPosition(uint point)
\r
126 Vector2 ret = new Vector2(NDalicPINVOKE.Touch_GetScreenPosition(swigCPtr, point), false);
\r
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
131 public float GetRadius(uint point)
\r
133 float ret = NDalicPINVOKE.Touch_GetRadius(swigCPtr, point);
\r
134 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
138 public Vector2 GetEllipseRadius(uint point)
\r
140 Vector2 ret = new Vector2(NDalicPINVOKE.Touch_GetEllipseRadius(swigCPtr, point), false);
\r
141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
145 public float GetPressure(uint point)
\r
147 float ret = NDalicPINVOKE.Touch_GetPressure(swigCPtr, point);
\r
148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
152 internal Degree GetAngle(uint point)
\r
154 Degree ret = new Degree(NDalicPINVOKE.Touch_GetAngle(swigCPtr, point), true);
\r
155 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
161 public enum PointStateType
\r