More SVACE fixes
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / TouchData.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Dali {
12
13 public class TouchData : BaseHandle {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
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);
18   }
19
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;
22   }
23
24   ~TouchData() {
25     Dispose();
26   }
27
28   public override void Dispose() {
29     lock(this) {
30       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
31         if (swigCMemOwn) {
32           swigCMemOwn = false;
33           NDalicPINVOKE.delete_TouchData(swigCPtr);
34         }
35         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36       }
37       global::System.GC.SuppressFinalize(this);
38       base.Dispose();
39     }
40   }
41
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();
45     return ret;
46   }
47
48   public TouchData() : this(NDalicPINVOKE.new_TouchData__SWIG_0(), true) {
49     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
50   }
51
52   public TouchData(TouchData other) : this(NDalicPINVOKE.new_TouchData__SWIG_1(TouchData.getCPtr(other)), true) {
53     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
54   }
55
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();
59     return ret;
60   }
61
62   public uint GetTime() {
63     uint ret = NDalicPINVOKE.TouchData_GetTime(swigCPtr);
64     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
65     return ret;
66   }
67
68   public uint GetPointCount() {
69     uint ret = NDalicPINVOKE.TouchData_GetPointCount(swigCPtr);
70     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
71     return ret;
72   }
73
74   public int GetDeviceId(uint point) {
75     int ret = NDalicPINVOKE.TouchData_GetDeviceId(swigCPtr, point);
76     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
77     return ret;
78   }
79
80   public PointStateType GetState(uint point) {
81     PointStateType ret = (PointStateType)NDalicPINVOKE.TouchData_GetState(swigCPtr, point);
82     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83     return ret;
84   }
85
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();
89     return ret;
90   }
91
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();
95     return ret;
96   }
97
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();
101     return ret;
102   }
103
104   public float GetRadius(uint point) {
105     float ret = NDalicPINVOKE.TouchData_GetRadius(swigCPtr, point);
106     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107     return ret;
108   }
109
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();
113     return ret;
114   }
115
116   public float GetPressure(uint point) {
117     float ret = NDalicPINVOKE.TouchData_GetPressure(swigCPtr, point);
118     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
119     return ret;
120   }
121
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();
125     return ret;
126   }
127
128 }
129
130 }