1 //------------------------------------------------------------------------------
4 // This file was automatically generated by SWIG (http://www.swig.org).
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
14 public class PaddingType : global::System.IDisposable
\r
16 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
17 protected bool swigCMemOwn;
\r
19 internal PaddingType(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
21 swigCMemOwn = cMemoryOwn;
\r
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PaddingType obj)
\r
27 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
32 DisposeQueue.Instance.Add(this);
\r
35 public virtual void Dispose()
\r
37 if (!Stage.IsInstalled())
\r
39 DisposeQueue.Instance.Add(this);
\r
45 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
49 swigCMemOwn = false;
\r
50 NDalicPINVOKE.delete_PaddingType(swigCPtr);
\r
52 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
54 global::System.GC.SuppressFinalize(this);
\r
59 public static bool operator ==(PaddingType a, PaddingType b)
\r
61 // If both are null, or both are same instance, return true.
\r
62 if (System.Object.ReferenceEquals(a, b))
\r
67 // If one is null, but not both, return false.
\r
68 if (((object)a == null) || ((object)b == null))
\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
80 public static bool operator !=(PaddingType a, PaddingType b)
\r
111 ///< The Bottom value
112 public float Bottom
\r
138 public PaddingType() : this(NDalicPINVOKE.new_PaddingType__SWIG_0(), true)
\r
140 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
143 public PaddingType(float x, float y, float width, float height) : this(NDalicPINVOKE.new_PaddingType__SWIG_1(x, y, width, height), true)
\r
145 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
148 public PaddingType(PaddingType rhs) : this(NDalicPINVOKE.new_PaddingType__SWIG_2(PaddingType.getCPtr(rhs)), true)
\r
150 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
153 public PaddingType Assign(PaddingType rhs)
\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
160 public void Set(float newX, float newY, float newWidth, float newHeight)
\r
162 NDalicPINVOKE.PaddingType_Set(swigCPtr, newX, newY, newWidth, newHeight);
\r
163 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
170 NDalicPINVOKE.PaddingType_x_set(swigCPtr, value);
\r
171 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
175 float ret = NDalicPINVOKE.PaddingType_x_get(swigCPtr);
\r
176 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
185 NDalicPINVOKE.PaddingType_left_set(swigCPtr, value);
\r
186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
190 float ret = NDalicPINVOKE.PaddingType_left_get(swigCPtr);
\r
191 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
200 NDalicPINVOKE.PaddingType_y_set(swigCPtr, value);
\r
201 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
205 float ret = NDalicPINVOKE.PaddingType_y_get(swigCPtr);
\r
206 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
211 private float right
\r
215 NDalicPINVOKE.PaddingType_right_set(swigCPtr, value);
\r
216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
220 float ret = NDalicPINVOKE.PaddingType_right_get(swigCPtr);
\r
221 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
226 private float width
\r
230 NDalicPINVOKE.PaddingType_width_set(swigCPtr, value);
\r
231 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
235 float ret = NDalicPINVOKE.PaddingType_width_get(swigCPtr);
\r
236 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
241 private float bottom
\r
245 NDalicPINVOKE.PaddingType_bottom_set(swigCPtr, value);
\r
246 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
250 float ret = NDalicPINVOKE.PaddingType_bottom_get(swigCPtr);
\r
251 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
256 private float height
\r
260 NDalicPINVOKE.PaddingType_height_set(swigCPtr, value);
\r
261 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
265 float ret = NDalicPINVOKE.PaddingType_height_get(swigCPtr);
\r
266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
275 NDalicPINVOKE.PaddingType_top_set(swigCPtr, value);
\r
276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
280 float ret = NDalicPINVOKE.PaddingType_top_get(swigCPtr);
\r
281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r