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 TouchData : BaseHandle {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
16 internal TouchData(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TouchData_SWIGUpcast(cPtr), cMemoryOwn) {
17 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TouchData obj) {
21 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
28 public override void Dispose() {
30 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 NDalicPINVOKE.delete_TouchData(swigCPtr);
35 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 global::System.GC.SuppressFinalize(this);
42 public static TouchData GetTouchDataFromPtr(global::System.IntPtr cPtr) {
43 TouchData ret = new TouchData(cPtr, false);
44 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
48 public TouchData() : this(NDalicPINVOKE.new_TouchData__SWIG_0(), true) {
49 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
52 public TouchData(TouchData other) : this(NDalicPINVOKE.new_TouchData__SWIG_1(TouchData.getCPtr(other)), true) {
53 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
56 public TouchData Assign(TouchData other) {
57 TouchData ret = new TouchData(NDalicPINVOKE.TouchData_Assign(swigCPtr, TouchData.getCPtr(other)), false);
58 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
62 public uint GetTime() {
63 uint ret = NDalicPINVOKE.TouchData_GetTime(swigCPtr);
64 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
68 public uint GetPointCount() {
69 uint ret = NDalicPINVOKE.TouchData_GetPointCount(swigCPtr);
70 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
74 public int GetDeviceId(uint point) {
75 int ret = NDalicPINVOKE.TouchData_GetDeviceId(swigCPtr, point);
76 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
80 public PointStateType GetState(uint point) {
81 PointStateType ret = (PointStateType)NDalicPINVOKE.TouchData_GetState(swigCPtr, point);
82 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
86 public Actor GetHitActor(uint point) {
87 Actor ret = new Actor(NDalicPINVOKE.TouchData_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.TouchData_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.TouchData_GetScreenPosition(swigCPtr, point), false);
100 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104 public float GetRadius(uint point) {
105 float ret = NDalicPINVOKE.TouchData_GetRadius(swigCPtr, point);
106 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110 public Vector2 GetEllipseRadius(uint point) {
111 Vector2 ret = new Vector2(NDalicPINVOKE.TouchData_GetEllipseRadius(swigCPtr, point), false);
112 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116 public float GetPressure(uint point) {
117 float ret = NDalicPINVOKE.TouchData_GetPressure(swigCPtr, point);
118 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122 public Degree GetAngle(uint point) {
123 Degree ret = new Degree(NDalicPINVOKE.TouchData_GetAngle(swigCPtr, point), true);
124 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();