dali 1.2.28 version upgrade
[platform/core/csapi/nui.git] / Tizen.NUI / src / public / Touch.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 Tizen.NUI
12 {
13
14     public class Touch : BaseHandle
15     {
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17
18         internal Touch(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Touch_SWIGUpcast(cPtr), cMemoryOwn)
19         {
20             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
21         }
22
23         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Touch obj)
24         {
25             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26         }
27
28         ~Touch()
29         {
30             DisposeQueue.Instance.Add(this);
31         }
32
33         public override void Dispose()
34         {
35             if (!Stage.IsInstalled())
36             {
37                 DisposeQueue.Instance.Add(this);
38                 return;
39             }
40
41             lock (this)
42             {
43                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
44                 {
45                     if (swigCMemOwn)
46                     {
47                         swigCMemOwn = false;
48                         NDalicPINVOKE.delete_Touch(swigCPtr);
49                     }
50                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
51                 }
52                 global::System.GC.SuppressFinalize(this);
53                 base.Dispose();
54             }
55         }
56
57
58         internal static Touch GetTouchFromPtr(global::System.IntPtr cPtr)
59         {
60             Touch ret = new Touch(cPtr, false);
61             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
62             return ret;
63         }
64
65         public Touch() : this(NDalicPINVOKE.new_Touch__SWIG_0(), true)
66         {
67             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
68         }
69
70         internal Touch(Touch other) : this(NDalicPINVOKE.new_Touch__SWIG_1(Touch.getCPtr(other)), true)
71         {
72             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73         }
74
75         internal Touch Assign(Touch other)
76         {
77             Touch ret = new Touch(NDalicPINVOKE.Touch_Assign(swigCPtr, Touch.getCPtr(other)), false);
78             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79             return ret;
80         }
81
82         public uint GetTime()
83         {
84             uint ret = NDalicPINVOKE.Touch_GetTime(swigCPtr);
85             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
86             return ret;
87         }
88
89         public uint GetPointCount()
90         {
91             uint ret = NDalicPINVOKE.Touch_GetPointCount(swigCPtr);
92             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93             return ret;
94         }
95
96         public int GetDeviceId(uint point)
97         {
98             int ret = NDalicPINVOKE.Touch_GetDeviceId(swigCPtr, point);
99             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
100             return ret;
101         }
102
103         public PointStateType GetState(uint point)
104         {
105             PointStateType ret = (PointStateType)NDalicPINVOKE.Touch_GetState(swigCPtr, point);
106             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107             return ret;
108         }
109
110         public Actor GetHitActor(uint point)
111         {
112             Actor ret = new Actor(NDalicPINVOKE.Touch_GetHitActor(swigCPtr, point), true);
113             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
114             return ret;
115         }
116
117         public Vector2 GetLocalPosition(uint point)
118         {
119             Vector2 ret = new Vector2(NDalicPINVOKE.Touch_GetLocalPosition(swigCPtr, point), false);
120             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121             return ret;
122         }
123
124         public Vector2 GetScreenPosition(uint point)
125         {
126             Vector2 ret = new Vector2(NDalicPINVOKE.Touch_GetScreenPosition(swigCPtr, point), false);
127             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
128             return ret;
129         }
130
131         public float GetRadius(uint point)
132         {
133             float ret = NDalicPINVOKE.Touch_GetRadius(swigCPtr, point);
134             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135             return ret;
136         }
137
138         public Vector2 GetEllipseRadius(uint point)
139         {
140             Vector2 ret = new Vector2(NDalicPINVOKE.Touch_GetEllipseRadius(swigCPtr, point), false);
141             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142             return ret;
143         }
144
145         public float GetPressure(uint point)
146         {
147             float ret = NDalicPINVOKE.Touch_GetPressure(swigCPtr, point);
148             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149             return ret;
150         }
151
152         internal Degree GetAngle(uint point)
153         {
154             Degree ret = new Degree(NDalicPINVOKE.Touch_GetAngle(swigCPtr, point), true);
155             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156             return ret;
157         }
158
159     }
160
161     public enum PointStateType
162     {
163         Started,
164         Finished,
165         Down = Started,
166         Up = Finished,
167         Motion,
168         Leave,
169         Stationary,
170         Interrupted
171     }
172
173 }