Merge "Add PIXEL_SIZE and ELLIPSIS property in text-controls" into devel/master
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / 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 (!Stage.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   public 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   public 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   public PanGesture(PanGesture rhs) : this(NDalicPINVOKE.new_PanGesture__SWIG_2(PanGesture.getCPtr(rhs)), true) {
119     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120   }
121
122   public PanGesture Assign(PanGesture rhs) {
123     PanGesture ret = new PanGesture(NDalicPINVOKE.PanGesture_Assign(swigCPtr, PanGesture.getCPtr(rhs)), false);
124     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
125     return ret;
126   }
127
128   private Vector2 velocity {
129     set {
130       NDalicPINVOKE.PanGesture_velocity_set(swigCPtr, Vector2.getCPtr(value));
131       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132     } 
133     get {
134       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_velocity_get(swigCPtr);
135       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
136       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
137       return ret;
138     } 
139   }
140
141   private Vector2 displacement {
142     set {
143       NDalicPINVOKE.PanGesture_displacement_set(swigCPtr, Vector2.getCPtr(value));
144       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
145     } 
146     get {
147       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_displacement_get(swigCPtr);
148       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
149       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
150       return ret;
151     } 
152   }
153
154   private Vector2 position {
155     set {
156       NDalicPINVOKE.PanGesture_position_set(swigCPtr, Vector2.getCPtr(value));
157       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
158     } 
159     get {
160       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_position_get(swigCPtr);
161       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
162       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
163       return ret;
164     } 
165   }
166
167   private Vector2 screenVelocity {
168     set {
169       NDalicPINVOKE.PanGesture_screenVelocity_set(swigCPtr, Vector2.getCPtr(value));
170       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
171     } 
172     get {
173       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_screenVelocity_get(swigCPtr);
174       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
175       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
176       return ret;
177     } 
178   }
179
180   private Vector2 screenDisplacement {
181     set {
182       NDalicPINVOKE.PanGesture_screenDisplacement_set(swigCPtr, Vector2.getCPtr(value));
183       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
184     } 
185     get {
186       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_screenDisplacement_get(swigCPtr);
187       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
188       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
189       return ret;
190     } 
191   }
192
193   private Vector2 screenPosition {
194     set {
195       NDalicPINVOKE.PanGesture_screenPosition_set(swigCPtr, Vector2.getCPtr(value));
196       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
197     } 
198     get {
199       global::System.IntPtr cPtr = NDalicPINVOKE.PanGesture_screenPosition_get(swigCPtr);
200       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
201       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202       return ret;
203     } 
204   }
205
206   private uint numberOfTouches {
207     set {
208       NDalicPINVOKE.PanGesture_numberOfTouches_set(swigCPtr, value);
209       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
210     } 
211     get {
212       uint ret = NDalicPINVOKE.PanGesture_numberOfTouches_get(swigCPtr);
213       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
214       return ret;
215     } 
216   }
217
218   public float GetSpeed() {
219     float ret = NDalicPINVOKE.PanGesture_GetSpeed(swigCPtr);
220     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221     return ret;
222   }
223
224   public float GetDistance() {
225     float ret = NDalicPINVOKE.PanGesture_GetDistance(swigCPtr);
226     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227     return ret;
228   }
229
230   public float GetScreenSpeed() {
231     float ret = NDalicPINVOKE.PanGesture_GetScreenSpeed(swigCPtr);
232     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
233     return ret;
234   }
235
236   public float GetScreenDistance() {
237     float ret = NDalicPINVOKE.PanGesture_GetScreenDistance(swigCPtr);
238     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
239     return ret;
240   }
241
242 }
243
244 }