29745bce5fe8927b8612bbdc9d758f46646a65e8
[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         /// <summary>
32         /// Dispose
33         /// </summary>
34         protected override void Dispose(DisposeTypes type)
35         {
36             if(disposed)
37             {
38                 return;
39             }
40
41             if(type == DisposeTypes.Explicit)
42             {
43                 //Called by User
44                 //Release your own managed resources here.
45                 //You should release all of your own disposable objects here.
46             }
47
48             //Release your own unmanaged resources here.
49             //You should not access any managed member here except static instance.
50             //because the execution order of Finalizes is non-deterministic.
51
52             if (swigCPtr.Handle != global::System.IntPtr.Zero)
53             {
54                 if (swigCMemOwn)
55                 {
56                     swigCMemOwn = false;
57                     NDalicPINVOKE.delete_TapGesture(swigCPtr);
58                 }
59                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
60             }
61
62             base.Dispose(type);
63         }
64
65
66         /// <summary>
67         /// Get TapGesture from the pointer.
68         /// </summary>
69         /// <param name="cPtr">The pointer to cast</param>
70         /// <returns>TapGesture object</returns>
71         internal static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
72         {
73             TapGesture ret = new TapGesture(cPtr, false);
74             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75             return ret;
76         }
77
78         /// <summary>
79         /// Number of taps property (read-only).
80         /// </summary>
81         public uint NumberOfTaps
82         {
83             get
84             {
85                 return numberOfTaps;
86             }
87         }
88
89         /// <summary>
90         /// Number of touches property (read-only).
91         /// </summary>
92         public uint NumberOfTouches
93         {
94             get
95             {
96                 return numberOfTouches;
97             }
98         }
99
100         /// <summary>
101         /// Screen point property (read-only).
102         /// </summary>
103         public Vector2 ScreenPoint
104         {
105             get
106             {
107                 return screenPoint;
108             }
109         }
110
111         /// <summary>
112         /// Local point property (read-only).
113         /// </summary>
114         public Vector2 LocalPoint
115         {
116             get
117             {
118                 return localPoint;
119             }
120         }
121
122         /// <summary>
123         /// Creates a TapGesture.
124         /// </summary>
125         public TapGesture() : this(NDalicPINVOKE.new_TapGesture__SWIG_0(), true)
126         {
127             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
128         }
129
130
131         private uint numberOfTaps
132         {
133             set
134             {
135                 NDalicPINVOKE.TapGesture_numberOfTaps_set(swigCPtr, value);
136                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
137             }
138             get
139             {
140                 uint ret = NDalicPINVOKE.TapGesture_numberOfTaps_get(swigCPtr);
141                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142                 return ret;
143             }
144         }
145
146         private uint numberOfTouches
147         {
148             set
149             {
150                 NDalicPINVOKE.TapGesture_numberOfTouches_set(swigCPtr, value);
151                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152             }
153             get
154             {
155                 uint ret = NDalicPINVOKE.TapGesture_numberOfTouches_get(swigCPtr);
156                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
157                 return ret;
158             }
159         }
160
161         private Vector2 screenPoint
162         {
163             set
164             {
165                 NDalicPINVOKE.TapGesture_screenPoint_set(swigCPtr, Vector2.getCPtr(value));
166                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
167             }
168             get
169             {
170                 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_screenPoint_get(swigCPtr);
171                 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
172                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
173                 return ret;
174             }
175         }
176
177         private Vector2 localPoint
178         {
179             set
180             {
181                 NDalicPINVOKE.TapGesture_localPoint_set(swigCPtr, Vector2.getCPtr(value));
182                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
183             }
184             get
185             {
186                 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_localPoint_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     }
194
195 }