dali 1.2.28 version upgrade
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / 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\r
12 {\r
13 \r
14     public class PaddingType : global::System.IDisposable\r
15     {\r
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
17         protected bool swigCMemOwn;\r
18 \r
19         internal PaddingType(global::System.IntPtr cPtr, bool cMemoryOwn)\r
20         {\r
21             swigCMemOwn = cMemoryOwn;\r
22             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
23         }\r
24 \r
25         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PaddingType obj)\r
26         {\r
27             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
28         }\r
29 \r
30         ~PaddingType()\r
31         {\r
32             DisposeQueue.Instance.Add(this);\r
33         }\r
34 \r
35         public virtual void Dispose()\r
36         {\r
37             if (!Stage.IsInstalled())\r
38             {\r
39                 DisposeQueue.Instance.Add(this);\r
40                 return;\r
41             }\r
42 \r
43             lock (this)\r
44             {\r
45                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
46                 {\r
47                     if (swigCMemOwn)\r
48                     {\r
49                         swigCMemOwn = false;\r
50                         NDalicPINVOKE.delete_PaddingType(swigCPtr);\r
51                     }\r
52                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
53                 }\r
54                 global::System.GC.SuppressFinalize(this);\r
55             }\r
56         }\r
57 \r
58 \r
59         public static bool operator ==(PaddingType a, PaddingType b)\r
60         {\r
61             // If both are null, or both are same instance, return true.\r
62             if (System.Object.ReferenceEquals(a, b))\r
63             {\r
64                 return true;\r
65             }\r
66 \r
67             // If one is null, but not both, return false.\r
68             if (((object)a == null) || ((object)b == null))\r
69             {\r
70                 return false;\r
71             }\r
72 \r
73             // Return true if the fields match:\r
74             return (System.Math.Abs(a.Left - b.Left) < NDalic.GetRangedEpsilon(a.Left, b.Left)) &&\r
75                    (System.Math.Abs(a.Right - b.Right) < NDalic.GetRangedEpsilon(a.Right, b.Right)) &&\r
76                    (System.Math.Abs(a.Bottom - b.Bottom) < NDalic.GetRangedEpsilon(a.Bottom, b.Bottom)) &&\r
77                    (System.Math.Abs(a.Top - b.Top) < NDalic.GetRangedEpsilon(a.Top, b.Top));\r
78         }\r
79 \r
80         public static bool operator !=(PaddingType a, PaddingType b)\r
81         {\r
82             return !(a == b);\r
83         }\r
84 \r
85         ///< The Left value
86         public float Left\r
87         {\r
88             set\r
89             {\r
90                 left = value;\r
91             }\r
92             get\r
93             {\r
94                 return left;\r
95             }\r
96         }\r
97 \r
98         ///< The Right value
99         public float Right\r
100         {\r
101             set\r
102             {\r
103                 right = value;\r
104             }\r
105             get\r
106             {\r
107                 return right;\r
108             }\r
109         }\r
110 \r
111         ///< The Bottom value
112         public float Bottom\r
113         {\r
114             set\r
115             {\r
116                 bottom = value;\r
117             }\r
118             get\r
119             {\r
120                 return bottom;\r
121             }\r
122         }\r
123 \r
124         ///< The Top value
125         public float Top\r
126         {\r
127             set\r
128             {\r
129                 top = value;\r
130             }\r
131             get\r
132             {\r
133                 return top;\r
134             }\r
135         }\r
136 \r
137 \r
138         public PaddingType() : this(NDalicPINVOKE.new_PaddingType__SWIG_0(), true)\r
139         {\r
140             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
141         }\r
142 \r
143         public PaddingType(float x, float y, float width, float height) : this(NDalicPINVOKE.new_PaddingType__SWIG_1(x, y, width, height), true)\r
144         {\r
145             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
146         }\r
147 \r
148         public PaddingType(PaddingType rhs) : this(NDalicPINVOKE.new_PaddingType__SWIG_2(PaddingType.getCPtr(rhs)), true)\r
149         {\r
150             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
151         }\r
152 \r
153         public PaddingType Assign(PaddingType rhs)\r
154         {\r
155             PaddingType ret = new PaddingType(NDalicPINVOKE.PaddingType_Assign(swigCPtr, PaddingType.getCPtr(rhs)), false);\r
156             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
157             return ret;\r
158         }\r
159 \r
160         public void Set(float newX, float newY, float newWidth, float newHeight)\r
161         {\r
162             NDalicPINVOKE.PaddingType_Set(swigCPtr, newX, newY, newWidth, newHeight);\r
163             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
164         }\r
165 \r
166         private float x\r
167         {\r
168             set\r
169             {\r
170                 NDalicPINVOKE.PaddingType_x_set(swigCPtr, value);\r
171                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
172             }\r
173             get\r
174             {\r
175                 float ret = NDalicPINVOKE.PaddingType_x_get(swigCPtr);\r
176                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
177                 return ret;\r
178             }\r
179         }\r
180 \r
181         private float left\r
182         {\r
183             set\r
184             {\r
185                 NDalicPINVOKE.PaddingType_left_set(swigCPtr, value);\r
186                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
187             }\r
188             get\r
189             {\r
190                 float ret = NDalicPINVOKE.PaddingType_left_get(swigCPtr);\r
191                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
192                 return ret;\r
193             }\r
194         }\r
195 \r
196         private float y\r
197         {\r
198             set\r
199             {\r
200                 NDalicPINVOKE.PaddingType_y_set(swigCPtr, value);\r
201                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
202             }\r
203             get\r
204             {\r
205                 float ret = NDalicPINVOKE.PaddingType_y_get(swigCPtr);\r
206                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
207                 return ret;\r
208             }\r
209         }\r
210 \r
211         private float right\r
212         {\r
213             set\r
214             {\r
215                 NDalicPINVOKE.PaddingType_right_set(swigCPtr, value);\r
216                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
217             }\r
218             get\r
219             {\r
220                 float ret = NDalicPINVOKE.PaddingType_right_get(swigCPtr);\r
221                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
222                 return ret;\r
223             }\r
224         }\r
225 \r
226         private float width\r
227         {\r
228             set\r
229             {\r
230                 NDalicPINVOKE.PaddingType_width_set(swigCPtr, value);\r
231                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
232             }\r
233             get\r
234             {\r
235                 float ret = NDalicPINVOKE.PaddingType_width_get(swigCPtr);\r
236                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
237                 return ret;\r
238             }\r
239         }\r
240 \r
241         private float bottom\r
242         {\r
243             set\r
244             {\r
245                 NDalicPINVOKE.PaddingType_bottom_set(swigCPtr, value);\r
246                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
247             }\r
248             get\r
249             {\r
250                 float ret = NDalicPINVOKE.PaddingType_bottom_get(swigCPtr);\r
251                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
252                 return ret;\r
253             }\r
254         }\r
255 \r
256         private float height\r
257         {\r
258             set\r
259             {\r
260                 NDalicPINVOKE.PaddingType_height_set(swigCPtr, value);\r
261                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
262             }\r
263             get\r
264             {\r
265                 float ret = NDalicPINVOKE.PaddingType_height_get(swigCPtr);\r
266                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
267                 return ret;\r
268             }\r
269         }\r
270 \r
271         private float top\r
272         {\r
273             set\r
274             {\r
275                 NDalicPINVOKE.PaddingType_top_set(swigCPtr, value);\r
276                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
277             }\r
278             get\r
279             {\r
280                 float ret = NDalicPINVOKE.PaddingType_top_get(swigCPtr);\r
281                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
282                 return ret;\r
283             }\r
284         }\r
285 \r
286     }
287
288 }