00011cf7d214a1e7e93bcfef1fb368a75661a63f
[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     public class TapGesture : Gesture
15     {
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17
18         internal TapGesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TapGesture_SWIGUpcast(cPtr), cMemoryOwn)
19         {
20             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
21         }
22
23         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TapGesture obj)
24         {
25             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26         }
27
28         ~TapGesture()
29         {
30             DisposeQueue.Instance.Add(this);
31         }
32
33         public override void Dispose()
34         {
35             if (!Stage.IsInstalled())
36             {
37                 DisposeQueue.Instance.Add(this);
38                 return;
39             }
40
41             lock (this)
42             {
43                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
44                 {
45                     if (swigCMemOwn)
46                     {
47                         swigCMemOwn = false;
48                         NDalicPINVOKE.delete_TapGesture(swigCPtr);
49                     }
50                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
51                 }
52                 global::System.GC.SuppressFinalize(this);
53                 base.Dispose();
54             }
55         }
56
57
58         public static TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr)
59         {
60             TapGesture ret = new TapGesture(cPtr, false);
61             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
62             return ret;
63         }
64
65         public uint NumberOfTaps
66         {
67             get
68             {
69                 return numberOfTaps;
70             }
71         }
72
73         public uint NumberOfTouches
74         {
75             get
76             {
77                 return numberOfTouches;
78             }
79         }
80
81         public Vector2 ScreenPoint
82         {
83             get
84             {
85                 return screenPoint;
86             }
87         }
88
89         public Vector2 LocalPoint
90         {
91             get
92             {
93                 return localPoint;
94             }
95         }
96
97         public TapGesture() : this(NDalicPINVOKE.new_TapGesture__SWIG_0(), true)
98         {
99             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
100         }
101
102         public TapGesture(TapGesture rhs) : this(NDalicPINVOKE.new_TapGesture__SWIG_1(TapGesture.getCPtr(rhs)), true)
103         {
104             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105         }
106
107         public TapGesture Assign(TapGesture rhs)
108         {
109             TapGesture ret = new TapGesture(NDalicPINVOKE.TapGesture_Assign(swigCPtr, TapGesture.getCPtr(rhs)), false);
110             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111             return ret;
112         }
113
114         private uint numberOfTaps
115         {
116             set
117             {
118                 NDalicPINVOKE.TapGesture_numberOfTaps_set(swigCPtr, value);
119                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120             }
121             get
122             {
123                 uint ret = NDalicPINVOKE.TapGesture_numberOfTaps_get(swigCPtr);
124                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
125                 return ret;
126             }
127         }
128
129         private uint numberOfTouches
130         {
131             set
132             {
133                 NDalicPINVOKE.TapGesture_numberOfTouches_set(swigCPtr, value);
134                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135             }
136             get
137             {
138                 uint ret = NDalicPINVOKE.TapGesture_numberOfTouches_get(swigCPtr);
139                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140                 return ret;
141             }
142         }
143
144         private Vector2 screenPoint
145         {
146             set
147             {
148                 NDalicPINVOKE.TapGesture_screenPoint_set(swigCPtr, Vector2.getCPtr(value));
149                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
150             }
151             get
152             {
153                 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_screenPoint_get(swigCPtr);
154                 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
155                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156                 return ret;
157             }
158         }
159
160         private Vector2 localPoint
161         {
162             set
163             {
164                 NDalicPINVOKE.TapGesture_localPoint_set(swigCPtr, Vector2.getCPtr(value));
165                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166             }
167             get
168             {
169                 global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_localPoint_get(swigCPtr);
170                 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
171                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
172                 return ret;
173             }
174         }
175
176     }
177
178 }