manual bind tts player for nui
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / PaddingType.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 PaddingType : global::System.IDisposable
15     {
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17         protected bool swigCMemOwn;
18
19         internal PaddingType(global::System.IntPtr cPtr, bool cMemoryOwn)
20         {
21             swigCMemOwn = cMemoryOwn;
22             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23         }
24
25         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PaddingType obj)
26         {
27             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
28         }
29
30         //A Flag to check who called Dispose(). (By User or DisposeQueue)
31         private bool isDisposeQueued = false;
32         //A Flat to check if it is already disposed.
33         protected bool disposed = false;
34
35
36         ~PaddingType()
37         {
38             if (!isDisposeQueued)
39             {
40                 isDisposeQueued = true;
41                 DisposeQueue.Instance.Add(this);
42             }
43         }
44
45         public void Dispose()
46         {
47             //Throw excpetion if Dispose() is called in separate thread.
48             if (!Window.IsInstalled())
49             {
50                 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
51             }
52
53             if (isDisposeQueued)
54             {
55                 Dispose(DisposeTypes.Implicit);
56             }
57             else
58             {
59                 Dispose(DisposeTypes.Explicit);
60                 System.GC.SuppressFinalize(this);
61             }
62         }
63
64         protected virtual void Dispose(DisposeTypes type)
65         {
66             if (disposed)
67             {
68                 return;
69             }
70
71             if (type == DisposeTypes.Explicit)
72             {
73                 //Called by User
74                 //Release your own managed resources here.
75                 //You should release all of your own disposable objects here.
76
77             }
78
79             //Release your own unmanaged resources here.
80             //You should not access any managed member here except static instance.
81             //because the execution order of Finalizes is non-deterministic.
82
83             if (swigCPtr.Handle != global::System.IntPtr.Zero)
84             {
85                 if (swigCMemOwn)
86                 {
87                     swigCMemOwn = false;
88                     NDalicPINVOKE.delete_PaddingType(swigCPtr);
89                 }
90                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
91             }
92
93             disposed = true;
94         }
95
96         public static bool operator ==(PaddingType a, PaddingType b)
97         {
98             // If both are null, or both are same instance, return true.
99             if (System.Object.ReferenceEquals(a, b))
100             {
101                 return true;
102             }
103
104             // If one is null, but not both, return false.
105             if (((object)a == null) || ((object)b == null))
106             {
107                 return false;
108             }
109
110             // Return true if the fields match:
111             return (System.Math.Abs(a.Left - b.Left) < NDalic.GetRangedEpsilon(a.Left, b.Left)) &&
112                    (System.Math.Abs(a.Right - b.Right) < NDalic.GetRangedEpsilon(a.Right, b.Right)) &&
113                    (System.Math.Abs(a.Bottom - b.Bottom) < NDalic.GetRangedEpsilon(a.Bottom, b.Bottom)) &&
114                    (System.Math.Abs(a.Top - b.Top) < NDalic.GetRangedEpsilon(a.Top, b.Top));
115         }
116
117         public static bool operator !=(PaddingType a, PaddingType b)
118         {
119             return !(a == b);
120         }
121
122         ///< The Left value
123         public float Left
124         {
125             set
126             {
127                 left = value;
128             }
129             get
130             {
131                 return left;
132             }
133         }
134
135         ///< The Right value
136         public float Right
137         {
138             set
139             {
140                 right = value;
141             }
142             get
143             {
144                 return right;
145             }
146         }
147
148         ///< The Bottom value
149         public float Bottom
150         {
151             set
152             {
153                 bottom = value;
154             }
155             get
156             {
157                 return bottom;
158             }
159         }
160
161         ///< The Top value
162         public float Top
163         {
164             set
165             {
166                 top = value;
167             }
168             get
169             {
170                 return top;
171             }
172         }
173
174
175         public PaddingType() : this(NDalicPINVOKE.new_PaddingType__SWIG_0(), true)
176         {
177             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
178         }
179
180         public PaddingType(float x, float y, float width, float height) : this(NDalicPINVOKE.new_PaddingType__SWIG_1(x, y, width, height), true)
181         {
182             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
183         }
184
185         public PaddingType(PaddingType rhs) : this(NDalicPINVOKE.new_PaddingType__SWIG_2(PaddingType.getCPtr(rhs)), true)
186         {
187             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
188         }
189
190         public PaddingType Assign(PaddingType rhs)
191         {
192             PaddingType ret = new PaddingType(NDalicPINVOKE.PaddingType_Assign(swigCPtr, PaddingType.getCPtr(rhs)), false);
193             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
194             return ret;
195         }
196
197         public void Set(float newX, float newY, float newWidth, float newHeight)
198         {
199             NDalicPINVOKE.PaddingType_Set(swigCPtr, newX, newY, newWidth, newHeight);
200             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
201         }
202
203         private float x
204         {
205             set
206             {
207                 NDalicPINVOKE.PaddingType_x_set(swigCPtr, value);
208                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209             }
210             get
211             {
212                 float ret = NDalicPINVOKE.PaddingType_x_get(swigCPtr);
213                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
214                 return ret;
215             }
216         }
217
218         private float left
219         {
220             set
221             {
222                 NDalicPINVOKE.PaddingType_left_set(swigCPtr, value);
223                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
224             }
225             get
226             {
227                 float ret = NDalicPINVOKE.PaddingType_left_get(swigCPtr);
228                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
229                 return ret;
230             }
231         }
232
233         private float y
234         {
235             set
236             {
237                 NDalicPINVOKE.PaddingType_y_set(swigCPtr, value);
238                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
239             }
240             get
241             {
242                 float ret = NDalicPINVOKE.PaddingType_y_get(swigCPtr);
243                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
244                 return ret;
245             }
246         }
247
248         private float right
249         {
250             set
251             {
252                 NDalicPINVOKE.PaddingType_right_set(swigCPtr, value);
253                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
254             }
255             get
256             {
257                 float ret = NDalicPINVOKE.PaddingType_right_get(swigCPtr);
258                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
259                 return ret;
260             }
261         }
262
263         private float width
264         {
265             set
266             {
267                 NDalicPINVOKE.PaddingType_width_set(swigCPtr, value);
268                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269             }
270             get
271             {
272                 float ret = NDalicPINVOKE.PaddingType_width_get(swigCPtr);
273                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
274                 return ret;
275             }
276         }
277
278         private float bottom
279         {
280             set
281             {
282                 NDalicPINVOKE.PaddingType_bottom_set(swigCPtr, value);
283                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284             }
285             get
286             {
287                 float ret = NDalicPINVOKE.PaddingType_bottom_get(swigCPtr);
288                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
289                 return ret;
290             }
291         }
292
293         private float height
294         {
295             set
296             {
297                 NDalicPINVOKE.PaddingType_height_set(swigCPtr, value);
298                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
299             }
300             get
301             {
302                 float ret = NDalicPINVOKE.PaddingType_height_get(swigCPtr);
303                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304                 return ret;
305             }
306         }
307
308         private float top
309         {
310             set
311             {
312                 NDalicPINVOKE.PaddingType_top_set(swigCPtr, value);
313                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
314             }
315             get
316             {
317                 float ret = NDalicPINVOKE.PaddingType_top_get(swigCPtr);
318                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
319                 return ret;
320             }
321         }
322
323     }
324
325 }