to resolve TCT issues
[platform/core/csapi/nui.git] / Tizen.NUI / src / public / TapGesture.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     /// <summary>
15     /// A TapGesture is emitted when the user taps the screen with the stated number of fingers a stated number of times.
16     /// </summary>
17     public class TapGesture : Gesture
18     {
19         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20
21         internal TapGesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TapGesture_SWIGUpcast(cPtr), cMemoryOwn)
22         {
23             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
24         }
25
26         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TapGesture obj)
27         {
28             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
29         }
30
31         ~TapGesture()
32         {
33             DisposeQueue.Instance.Add(this);
34         }
35
36         /// <summary>
37         /// Dispose
38         /// </summary>
39         public override void Dispose()
40         {
41             if (!Stage.IsInstalled())
42             {
43                 DisposeQueue.Instance.Add(this);
44                 return;
45             }
46
47             lock (this)
48             {
49                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
50                 {
51                     if (swigCMemOwn)
52                     {
53                         swigCMemOwn = false;
54                         NDalicPINVOKE.delete_TapGesture(swigCPtr);
55                     }
56                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
57                 }
58                 global::System.GC.SuppressFinalize(this);
59                 base.Dispose();
60             }
61         }
62
63
64         /// <summary>
65         /// Get TapGesture from the pointer.
66         /// </summary>
67         /// <param name="cPtr">The pointer to cast</param>
68         /// <returns>TapGesture object</returns>
69         internal static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
70         {
71             TapGesture ret = new TapGesture(cPtr, false);
72             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73             return ret;
74         }
75
76         /// <summary>
77         /// Number of taps property (read-only).
78         /// </summary>
79         public uint NumberOfTaps
80         {
81             get
82             {
83                 return numberOfTaps;
84             }
85         }
86
87         /// <summary>
88         /// Number of touches property (read-only).
89         /// </summary>
90         public uint NumberOfTouches
91         {
92             get
93             {
94                 return numberOfTouches;
95             }
96         }
97
98         /// <summary>
99         /// Screen point property (read-only).
100         /// </summary>
101         public Vector2 ScreenPoint
102         {
103             get
104             {
105                 return screenPoint;
106             }
107         }
108
109         /// <summary>
110         /// Local point property (read-only).
111         /// </summary>
112         public Vector2 LocalPoint
113         {
114             get
115             {
116                 return localPoint;
117             }
118         }
119
120         /// <summary>
121         /// Creates a TapGesture.
122         /// </summary>
123         public TapGesture() : this(NDalicPINVOKE.new_TapGesture__SWIG_0(), true)
124         {
125             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126         }
127
128         /// <summary>
129         /// Copy constructor.
130         /// </summary>
131         /// <param name="rhs">TapGesture to copy</param>
132         public TapGesture(TapGesture rhs) : this(NDalicPINVOKE.new_TapGesture__SWIG_1(TapGesture.getCPtr(rhs)), true)
133         {
134             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135         }
136
137         /// <summary>
138         /// Assignment
139         /// </summary>
140         /// <param name="rhs">A reference to the copied handle</param>
141         /// <returns>A reference to this</returns>
142         public TapGesture Assign(TapGesture rhs)
143         {
144             TapGesture ret = new TapGesture(NDalicPINVOKE.TapGesture_Assign(swigCPtr, TapGesture.getCPtr(rhs)), false);
145             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
146             return ret;
147         }
148
149         private uint numberOfTaps
150         {
151             set
152             {
153                 NDalicPINVOKE.TapGesture_numberOfTaps_set(swigCPtr, value);
154                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
155             }
156             get
157             {
158                 uint ret = NDalicPINVOKE.TapGesture_numberOfTaps_get(swigCPtr);
159                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
160                 return ret;
161             }
162         }
163
164         private uint numberOfTouches
165         {
166             set
167             {
168                 NDalicPINVOKE.TapGesture_numberOfTouches_set(swigCPtr, value);
169                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
170             }
171             get
172             {
173                 uint ret = NDalicPINVOKE.TapGesture_numberOfTouches_get(swigCPtr);
174                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
175                 return ret;
176             }
177         }
178
179         private Vector2 screenPoint
180         {
181             set
182             {
183                 NDalicPINVOKE.TapGesture_screenPoint_set(swigCPtr, Vector2.getCPtr(value));
184                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
185             }
186             get
187             {
188                 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_screenPoint_get(swigCPtr);
189                 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
190                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
191                 return ret;
192             }
193         }
194
195         private Vector2 localPoint
196         {
197             set
198             {
199                 NDalicPINVOKE.TapGesture_localPoint_set(swigCPtr, Vector2.getCPtr(value));
200                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
201             }
202             get
203             {
204                 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_localPoint_get(swigCPtr);
205                 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
206                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
207                 return ret;
208             }
209         }
210
211     }
212
213 }