Calculate a new height when text was changed.
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / public / TapGesture.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 TapGesture : Gesture {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
16   internal TapGesture(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TapGesture_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19
20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TapGesture obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23
24   ~TapGesture() {
25     DisposeQueue.Instance.Add(this);
26   }
27
28   public override void Dispose() {
29     if (!Window.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_TapGesture(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 TapGesture GetTapGestureFromPtr(global::System.IntPtr cPtr) {
49     TapGesture ret = new TapGesture(cPtr, false);
50     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51     return ret;
52   }
53
54   public uint NumberOfTaps
55   {
56     get
57     {
58       return numberOfTaps;
59     }
60   }
61
62   public uint NumberOfTouches
63   {
64     get
65     {
66       return numberOfTouches;
67     }
68   }
69
70   public Vector2 ScreenPoint
71   {
72     get
73     {
74       return screenPoint;
75     }
76   }
77
78   public Vector2 LocalPoint
79   {
80     get
81     {
82       return localPoint;
83     }
84   }
85
86   public TapGesture() : this(NDalicPINVOKE.new_TapGesture__SWIG_0(), true) {
87     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
88   }
89
90   private uint numberOfTaps {
91     set {
92       NDalicPINVOKE.TapGesture_numberOfTaps_set(swigCPtr, value);
93       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
94     } 
95     get {
96       uint ret = NDalicPINVOKE.TapGesture_numberOfTaps_get(swigCPtr);
97       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
98       return ret;
99     } 
100   }
101
102   private uint numberOfTouches {
103     set {
104       NDalicPINVOKE.TapGesture_numberOfTouches_set(swigCPtr, value);
105       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
106     } 
107     get {
108       uint ret = NDalicPINVOKE.TapGesture_numberOfTouches_get(swigCPtr);
109       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110       return ret;
111     } 
112   }
113
114   private Vector2 screenPoint {
115     set {
116       NDalicPINVOKE.TapGesture_screenPoint_set(swigCPtr, Vector2.getCPtr(value));
117       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
118     } 
119     get {
120       global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_screenPoint_get(swigCPtr);
121       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
122       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
123       return ret;
124     } 
125   }
126
127   private Vector2 localPoint {
128     set {
129       NDalicPINVOKE.TapGesture_localPoint_set(swigCPtr, Vector2.getCPtr(value));
130       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131     } 
132     get {
133       global::System.IntPtr cPtr = NDalicPINVOKE.TapGesture_localPoint_get(swigCPtr);
134       Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
135       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
136       return ret;
137     } 
138   }
139
140 }
141
142 }