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 //------------------------------------------------------------------------------
13 public class Touch : BaseHandle {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
16 internal Touch(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Touch_SWIGUpcast(cPtr), cMemoryOwn) {
17 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Touch obj) {
21 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
25 DisposeQueue.Instance.Add(this);
28 public override void Dispose() {
29 if (!Window.IsInstalled()) {
30 DisposeQueue.Instance.Add(this);
35 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
38 NDalicPINVOKE.delete_Touch(swigCPtr);
40 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
42 global::System.GC.SuppressFinalize(this);
48 internal static Touch GetTouchFromPtr(global::System.IntPtr cPtr) {
49 Touch ret = new Touch(cPtr, false);
50 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
54 public Touch() : this(NDalicPINVOKE.new_Touch__SWIG_0(), true) {
55 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
58 public Touch(Touch other) : this(NDalicPINVOKE.new_Touch__SWIG_1(Touch.getCPtr(other)), true) {
59 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
62 public uint GetTime() {
63 uint ret = NDalicPINVOKE.Touch_GetTime(swigCPtr);
64 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
68 public uint GetPointCount() {
69 uint ret = NDalicPINVOKE.Touch_GetPointCount(swigCPtr);
70 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
74 public int GetDeviceId(uint point) {
75 int ret = NDalicPINVOKE.Touch_GetDeviceId(swigCPtr, point);
76 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
80 public PointStateType GetState(uint point) {
81 PointStateType ret = (PointStateType)NDalicPINVOKE.Touch_GetState(swigCPtr, point);
82 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
86 public View GetHitView(uint point) {
87 View ret = new View(NDalicPINVOKE.Touch_GetHitActor(swigCPtr, point), true);
88 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92 public Vector2 GetLocalPosition(uint point) {
93 Vector2 ret = new Vector2(NDalicPINVOKE.Touch_GetLocalPosition(swigCPtr, point), false);
94 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
98 public Vector2 GetScreenPosition(uint point) {
99 Vector2 ret = new Vector2(NDalicPINVOKE.Touch_GetScreenPosition(swigCPtr, point), false);
100 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104 public float GetRadius(uint point) {
105 float ret = NDalicPINVOKE.Touch_GetRadius(swigCPtr, point);
106 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110 public Vector2 GetEllipseRadius(uint point) {
111 Vector2 ret = new Vector2(NDalicPINVOKE.Touch_GetEllipseRadius(swigCPtr, point), false);
112 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116 public float GetPressure(uint point) {
117 float ret = NDalicPINVOKE.Touch_GetPressure(swigCPtr, point);
118 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122 public Degree GetAngle(uint point) {
123 Degree ret = new Degree(NDalicPINVOKE.Touch_GetAngle(swigCPtr, point), true);
124 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();