Ensure text-controller returns false when it doesn't use key.
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / public / PanGesture.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
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 PanGesture : Gesture {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
16   internal PanGesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.PanGesture_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19
20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PanGesture obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23
24   ~PanGesture() {
25     DisposeQueue.Instance.Add(this);
26   }
27
28   public override void Dispose() {
29     if (!Window.IsInstalled()) {
30       DisposeQueue.Instance.Add(this);
31       return;
32     }
33
34     lock(this) {
35       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
36         if (swigCMemOwn) {
37           swigCMemOwn = false;
38           NDalicPINVOKE.delete_PanGesture(swigCPtr);
39         }
40         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
41       }
42       global::System.GC.SuppressFinalize(this);
43       base.Dispose();
44     }
45   }
46
47
48   internal static PanGesture GetPanGestureFromPtr(global::System.IntPtr cPtr) {
49     PanGesture ret = new PanGesture(cPtr, false);
50     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51     return ret;
52   }
53
54   public Vector2 Velocity
55   {
56     get
57     {
58       return velocity;
59     }
60   }
61
62   public Vector2 Displacement
63   {
64     get
65     {
66       return displacement;
67     }
68   }
69
70   public Vector2 Position
71   {
72     get
73     {
74       return position;
75     }
76   }
77
78   public Vector2 ScreenVelocity
79   {
80     get
81     {
82       return screenVelocity;
83     }
84   }
85
86   public Vector2 ScreenDisplacement
87   {
88     get
89     {
90       return screenDisplacement;
91     }
92   }
93
94   public Vector2 ScreenPosition
95   {
96     get
97     {
98       return screenPosition;
99     }
100   }
101
102   public uint NumberOfTouches
103   {
104     get
105     {
106       return numberOfTouches;
107     }
108   }
109
110   public PanGesture() : this(NDalicPINVOKE.new_PanGesture__SWIG_0(), true) {
111     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
112   }
113
114   internal PanGesture(Gesture.StateType state) : this(NDalicPINVOKE.new_PanGesture__SWIG_1((int)state), true) {
115     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116   }
117
118   private Vector2 velocity {
119     set {
120       NDalicPINVOKE.PanGesture_velocity_set(swigCPtr, Vector2.getCPtr(value));
121       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122     } 
123     get {
124       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_velocity_get(swigCPtr);
125       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
126       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
127       return ret;
128     } 
129   }
130
131   private Vector2 displacement {
132     set {
133       NDalicPINVOKE.PanGesture_displacement_set(swigCPtr, Vector2.getCPtr(value));
134       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135     } 
136     get {
137       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_displacement_get(swigCPtr);
138       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
139       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140       return ret;
141     } 
142   }
143
144   private Vector2 position {
145     set {
146       NDalicPINVOKE.PanGesture_position_set(swigCPtr, Vector2.getCPtr(value));
147       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
148     } 
149     get {
150       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_position_get(swigCPtr);
151       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
152       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153       return ret;
154     } 
155   }
156
157   private Vector2 screenVelocity {
158     set {
159       NDalicPINVOKE.PanGesture_screenVelocity_set(swigCPtr, Vector2.getCPtr(value));
160       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161     } 
162     get {
163       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_screenVelocity_get(swigCPtr);
164       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
165       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166       return ret;
167     } 
168   }
169
170   private Vector2 screenDisplacement {
171     set {
172       NDalicPINVOKE.PanGesture_screenDisplacement_set(swigCPtr, Vector2.getCPtr(value));
173       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174     } 
175     get {
176       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_screenDisplacement_get(swigCPtr);
177       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
178       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
179       return ret;
180     } 
181   }
182
183   private Vector2 screenPosition {
184     set {
185       NDalicPINVOKE.PanGesture_screenPosition_set(swigCPtr, Vector2.getCPtr(value));
186       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
187     } 
188     get {
189       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_screenPosition_get(swigCPtr);
190       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
191       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192       return ret;
193     } 
194   }
195
196   private uint numberOfTouches {
197     set {
198       NDalicPINVOKE.PanGesture_numberOfTouches_set(swigCPtr, value);
199       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
200     } 
201     get {
202       uint ret = NDalicPINVOKE.PanGesture_numberOfTouches_get(swigCPtr);
203       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204       return ret;
205     } 
206   }
207
208   public float GetSpeed() {
209     float ret = NDalicPINVOKE.PanGesture_GetSpeed(swigCPtr);
210     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
211     return ret;
212   }
213
214   public float GetDistance() {
215     float ret = NDalicPINVOKE.PanGesture_GetDistance(swigCPtr);
216     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
217     return ret;
218   }
219
220   public float GetScreenSpeed() {
221     float ret = NDalicPINVOKE.PanGesture_GetScreenSpeed(swigCPtr);
222     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
223     return ret;
224   }
225
226   public float GetScreenDistance() {
227     float ret = NDalicPINVOKE.PanGesture_GetScreenDistance(swigCPtr);
228     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
229     return ret;
230   }
231
232 }
233
234 }