Add comments for API reference of part 4
[platform/core/csapi/tizenfx.git] / src / 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 Ptr.
66         /// </summary>
67         public static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
68         {
69             TapGesture ret = new TapGesture(cPtr, false);
70             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
71             return ret;
72         }
73
74         /// <summary>
75         /// NumberOfTaps.
76         /// </summary>
77         public uint NumberOfTaps
78         {
79             get
80             {
81                 return numberOfTaps;
82             }
83         }
84
85         /// <summary>
86         /// NumberOfTouches.
87         /// </summary>
88         public uint NumberOfTouches
89         {
90             get
91             {
92                 return numberOfTouches;
93             }
94         }
95
96         /// <summary>
97         /// ScreenPoint.
98         /// </summary>
99         public Vector2 ScreenPoint
100         {
101             get
102             {
103                 return screenPoint;
104             }
105         }
106
107         /// <summary>
108         /// LocalPoint.
109         /// </summary>
110         public Vector2 LocalPoint
111         {
112             get
113             {
114                 return localPoint;
115             }
116         }
117
118         /// <summary>
119         /// Default constructor.
120         /// </summary>
121         public TapGesture() : this(NDalicPINVOKE.new_TapGesture__SWIG_0(), true)
122         {
123             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
124         }
125
126         /// <summary>
127         /// Copy constructor.
128         /// </summary>
129         public TapGesture(TapGesture rhs) : this(NDalicPINVOKE.new_TapGesture__SWIG_1(TapGesture.getCPtr(rhs)), true)
130         {
131             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132         }
133
134         /// <summary>
135         /// Assignment.
136         /// </summary>
137         public TapGesture Assign(TapGesture rhs)
138         {
139             TapGesture ret = new TapGesture(NDalicPINVOKE.TapGesture_Assign(swigCPtr, TapGesture.getCPtr(rhs)), false);
140             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
141             return ret;
142         }
143
144         private uint numberOfTaps
145         {
146             set
147             {
148                 NDalicPINVOKE.TapGesture_numberOfTaps_set(swigCPtr, value);
149                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
150             }
151             get
152             {
153                 uint ret = NDalicPINVOKE.TapGesture_numberOfTaps_get(swigCPtr);
154                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
155                 return ret;
156             }
157         }
158
159         private uint numberOfTouches
160         {
161             set
162             {
163                 NDalicPINVOKE.TapGesture_numberOfTouches_set(swigCPtr, value);
164                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
165             }
166             get
167             {
168                 uint ret = NDalicPINVOKE.TapGesture_numberOfTouches_get(swigCPtr);
169                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
170                 return ret;
171             }
172         }
173
174         private Vector2 screenPoint
175         {
176             set
177             {
178                 NDalicPINVOKE.TapGesture_screenPoint_set(swigCPtr, Vector2.getCPtr(value));
179                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
180             }
181             get
182             {
183                 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_screenPoint_get(swigCPtr);
184                 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
185                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
186                 return ret;
187             }
188         }
189
190         private Vector2 localPoint
191         {
192             set
193             {
194                 NDalicPINVOKE.TapGesture_localPoint_set(swigCPtr, Vector2.getCPtr(value));
195                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196             }
197             get
198             {
199                 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_localPoint_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     }
207
208 }