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