Merge "This patch is for refining dali application to support tizen c# application...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / RectFloat.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 Dali {
12
13 public class RectFloat : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal RectFloat(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(RectFloat obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~RectFloat() {
27     Dispose();
28   }
29
30   public virtual void Dispose() {
31     lock(this) {
32       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33         if (swigCMemOwn) {
34           swigCMemOwn = false;
35           NDalicPINVOKE.delete_RectFloat(swigCPtr);
36         }
37         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38       }
39       global::System.GC.SuppressFinalize(this);
40     }
41   }
42
43   public RectFloat() : this(NDalicPINVOKE.new_RectFloat__SWIG_0(), true) {
44     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
45   }
46
47   public RectFloat(float x, float y, float width, float height) : this(NDalicPINVOKE.new_RectFloat__SWIG_1(x, y, width, height), true) {
48     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
49   }
50
51   public RectFloat(RectFloat rhs) : this(NDalicPINVOKE.new_RectFloat__SWIG_2(RectFloat.getCPtr(rhs)), true) {
52     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53   }
54
55   public RectFloat Assign(RectFloat rhs) {
56     RectFloat ret = new RectFloat(NDalicPINVOKE.RectFloat_Assign(swigCPtr, RectFloat.getCPtr(rhs)), false);
57     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
58     return ret;
59   }
60
61   public void Set(float newX, float newY, float newWidth, float newHeight) {
62     NDalicPINVOKE.RectFloat_Set(swigCPtr, newX, newY, newWidth, newHeight);
63     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
64   }
65
66   public bool IsEmpty() {
67     bool ret = NDalicPINVOKE.RectFloat_IsEmpty(swigCPtr);
68     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69     return ret;
70   }
71
72   public float Left() {
73     float ret = NDalicPINVOKE.RectFloat_Left(swigCPtr);
74     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75     return ret;
76   }
77
78   public float Right() {
79     float ret = NDalicPINVOKE.RectFloat_Right(swigCPtr);
80     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
81     return ret;
82   }
83
84   public float Top() {
85     float ret = NDalicPINVOKE.RectFloat_Top(swigCPtr);
86     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
87     return ret;
88   }
89
90   public float Bottom() {
91     float ret = NDalicPINVOKE.RectFloat_Bottom(swigCPtr);
92     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93     return ret;
94   }
95
96   public float Area() {
97     float ret = NDalicPINVOKE.RectFloat_Area(swigCPtr);
98     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
99     return ret;
100   }
101
102   public bool Intersects(RectFloat other) {
103     bool ret = NDalicPINVOKE.RectFloat_Intersects(swigCPtr, RectFloat.getCPtr(other));
104     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105     return ret;
106   }
107
108   public bool Contains(RectFloat other) {
109     bool ret = NDalicPINVOKE.RectFloat_Contains(swigCPtr, RectFloat.getCPtr(other));
110     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111     return ret;
112   }
113
114   public float x {
115     set {
116       NDalicPINVOKE.RectFloat_x_set(swigCPtr, value);
117       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
118     } 
119     get {
120       float ret = NDalicPINVOKE.RectFloat_x_get(swigCPtr);
121       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122       return ret;
123     } 
124   }
125
126   public float left {
127     set {
128       NDalicPINVOKE.RectFloat_left_set(swigCPtr, value);
129       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
130     } 
131     get {
132       float ret = NDalicPINVOKE.RectFloat_left_get(swigCPtr);
133       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
134       return ret;
135     } 
136   }
137
138   public float y {
139     set {
140       NDalicPINVOKE.RectFloat_y_set(swigCPtr, value);
141       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142     } 
143     get {
144       float ret = NDalicPINVOKE.RectFloat_y_get(swigCPtr);
145       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
146       return ret;
147     } 
148   }
149
150   public float right {
151     set {
152       NDalicPINVOKE.RectFloat_right_set(swigCPtr, value);
153       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
154     } 
155     get {
156       float ret = NDalicPINVOKE.RectFloat_right_get(swigCPtr);
157       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
158       return ret;
159     } 
160   }
161
162   public float width {
163     set {
164       NDalicPINVOKE.RectFloat_width_set(swigCPtr, value);
165       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166     } 
167     get {
168       float ret = NDalicPINVOKE.RectFloat_width_get(swigCPtr);
169       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
170       return ret;
171     } 
172   }
173
174   public float bottom {
175     set {
176       NDalicPINVOKE.RectFloat_bottom_set(swigCPtr, value);
177       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
178     } 
179     get {
180       float ret = NDalicPINVOKE.RectFloat_bottom_get(swigCPtr);
181       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182       return ret;
183     } 
184   }
185
186   public float height {
187     set {
188       NDalicPINVOKE.RectFloat_height_set(swigCPtr, value);
189       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
190     } 
191     get {
192       float ret = NDalicPINVOKE.RectFloat_height_get(swigCPtr);
193       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
194       return ret;
195     } 
196   }
197
198   public float top {
199     set {
200       NDalicPINVOKE.RectFloat_top_set(swigCPtr, value);
201       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202     } 
203     get {
204       float ret = NDalicPINVOKE.RectFloat_top_get(swigCPtr);
205       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
206       return ret;
207     } 
208   }
209
210 }
211
212 }