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 //------------------------------------------------------------------------------
13 public class RectDouble : global::System.IDisposable {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 protected bool swigCMemOwn;
17 internal RectDouble(global::System.IntPtr cPtr, bool cMemoryOwn) {
18 swigCMemOwn = cMemoryOwn;
19 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RectDouble obj) {
23 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
30 public virtual void Dispose() {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
35 NDalicPINVOKE.delete_RectDouble(swigCPtr);
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 global::System.GC.SuppressFinalize(this);
43 public RectDouble() : this(NDalicPINVOKE.new_RectDouble__SWIG_0(), true) {
44 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
47 public RectDouble(double x, double y, double width, double height) : this(NDalicPINVOKE.new_RectDouble__SWIG_1(x, y, width, height), true) {
48 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51 public RectDouble(RectDouble rhs) : this(NDalicPINVOKE.new_RectDouble__SWIG_2(RectDouble.getCPtr(rhs)), true) {
52 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
55 public RectDouble Assign(RectDouble rhs) {
56 RectDouble ret = new RectDouble(NDalicPINVOKE.RectDouble_Assign(swigCPtr, RectDouble.getCPtr(rhs)), false);
57 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
61 public void Set(double newX, double newY, double newWidth, double newHeight) {
62 NDalicPINVOKE.RectDouble_Set(swigCPtr, newX, newY, newWidth, newHeight);
63 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
66 public bool IsEmpty() {
67 bool ret = NDalicPINVOKE.RectDouble_IsEmpty(swigCPtr);
68 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
72 public double Left() {
73 double ret = NDalicPINVOKE.RectDouble_Left(swigCPtr);
74 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
78 public double Right() {
79 double ret = NDalicPINVOKE.RectDouble_Right(swigCPtr);
80 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
85 double ret = NDalicPINVOKE.RectDouble_Top(swigCPtr);
86 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90 public double Bottom() {
91 double ret = NDalicPINVOKE.RectDouble_Bottom(swigCPtr);
92 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
96 public double Area() {
97 double ret = NDalicPINVOKE.RectDouble_Area(swigCPtr);
98 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
102 public bool Intersects(RectDouble other) {
103 bool ret = NDalicPINVOKE.RectDouble_Intersects(swigCPtr, RectDouble.getCPtr(other));
104 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
108 public bool Contains(RectDouble other) {
109 bool ret = NDalicPINVOKE.RectDouble_Contains(swigCPtr, RectDouble.getCPtr(other));
110 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116 NDalicPINVOKE.RectDouble_x_set(swigCPtr, value);
117 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120 double ret = NDalicPINVOKE.RectDouble_x_get(swigCPtr);
121 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
128 NDalicPINVOKE.RectDouble_left_set(swigCPtr, value);
129 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132 double ret = NDalicPINVOKE.RectDouble_left_get(swigCPtr);
133 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140 NDalicPINVOKE.RectDouble_y_set(swigCPtr, value);
141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
144 double ret = NDalicPINVOKE.RectDouble_y_get(swigCPtr);
145 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
150 public double right {
152 NDalicPINVOKE.RectDouble_right_set(swigCPtr, value);
153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156 double ret = NDalicPINVOKE.RectDouble_right_get(swigCPtr);
157 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
162 public double width {
164 NDalicPINVOKE.RectDouble_width_set(swigCPtr, value);
165 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
168 double ret = NDalicPINVOKE.RectDouble_width_get(swigCPtr);
169 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174 public double bottom {
176 NDalicPINVOKE.RectDouble_bottom_set(swigCPtr, value);
177 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
180 double ret = NDalicPINVOKE.RectDouble_bottom_get(swigCPtr);
181 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
186 public double height {
188 NDalicPINVOKE.RectDouble_height_set(swigCPtr, value);
189 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192 double ret = NDalicPINVOKE.RectDouble_height_get(swigCPtr);
193 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
200 NDalicPINVOKE.RectDouble_top_set(swigCPtr, value);
201 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204 double ret = NDalicPINVOKE.RectDouble_top_get(swigCPtr);
205 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();