d84775896b689abdc5fc24679c2bced0ecce0564
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / RectInteger.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 {
12
13 public class RectInteger : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal RectInteger(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(RectInteger obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~RectInteger() {
27     DisposeQueue.Instance.Add(this);
28   }
29
30   public virtual void Dispose() {
31     if (!Stage.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_RectInteger(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
50   public int X {
51     set {
52       NDalicPINVOKE.RectInteger_x_set(swigCPtr, value);
53       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
54     }
55     get {
56       int ret = NDalicPINVOKE.RectInteger_x_get(swigCPtr);
57       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
58       return ret;
59     }
60   }
61
62   public int Y {
63     set {
64       NDalicPINVOKE.RectInteger_y_set(swigCPtr, value);
65       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
66     }
67     get {
68       int ret = NDalicPINVOKE.RectInteger_y_get(swigCPtr);
69       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70       return ret;
71     }
72   }
73
74   public int W {
75     set {
76       NDalicPINVOKE.RectInteger_width_set(swigCPtr, value);
77       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
78     }
79     get {
80       int ret = NDalicPINVOKE.RectInteger_width_get(swigCPtr);
81       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
82       return ret;
83     }
84   }
85
86   public int H {
87     set {
88       NDalicPINVOKE.RectInteger_height_set(swigCPtr, value);
89       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90     }
91     get {
92       int ret = NDalicPINVOKE.RectInteger_height_get(swigCPtr);
93       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
94       return ret;
95     }
96   }
97
98
99   public RectInteger() : this(NDalicPINVOKE.new_RectInteger__SWIG_0(), true) {
100     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101   }
102
103   public RectInteger(int x, int y, int width, int height) : this(NDalicPINVOKE.new_RectInteger__SWIG_1(x, y, width, height), true) {
104     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105   }
106
107   public RectInteger(RectInteger rhs) : this(NDalicPINVOKE.new_RectInteger__SWIG_2(RectInteger.getCPtr(rhs)), true) {
108     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109   }
110
111   public RectInteger Assign(RectInteger rhs) {
112     RectInteger ret = new RectInteger(NDalicPINVOKE.RectInteger_Assign(swigCPtr, RectInteger.getCPtr(rhs)), false);
113     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
114     return ret;
115   }
116
117   public void Set(int newX, int newY, int newWidth, int newHeight) {
118     NDalicPINVOKE.RectInteger_Set(swigCPtr, newX, newY, newWidth, newHeight);
119     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120   }
121
122   public bool IsEmpty() {
123     bool ret = NDalicPINVOKE.RectInteger_IsEmpty(swigCPtr);
124     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
125     return ret;
126   }
127
128   public int Left() {
129     int ret = NDalicPINVOKE.RectInteger_Left(swigCPtr);
130     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131     return ret;
132   }
133
134   public int Right() {
135     int ret = NDalicPINVOKE.RectInteger_Right(swigCPtr);
136     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
137     return ret;
138   }
139
140   public int Top() {
141     int ret = NDalicPINVOKE.RectInteger_Top(swigCPtr);
142     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
143     return ret;
144   }
145
146   public int Bottom() {
147     int ret = NDalicPINVOKE.RectInteger_Bottom(swigCPtr);
148     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149     return ret;
150   }
151
152   public int Area() {
153     int ret = NDalicPINVOKE.RectInteger_Area(swigCPtr);
154     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
155     return ret;
156   }
157
158   public bool Intersects(RectInteger other) {
159     bool ret = NDalicPINVOKE.RectInteger_Intersects(swigCPtr, RectInteger.getCPtr(other));
160     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161     return ret;
162   }
163
164   public bool Contains(RectInteger other) {
165     bool ret = NDalicPINVOKE.RectInteger_Contains(swigCPtr, RectInteger.getCPtr(other));
166     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
167     return ret;
168   }
169
170   public int x {
171     set {
172       NDalicPINVOKE.RectInteger_x_set(swigCPtr, value);
173       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174     } 
175     get {
176       int ret = NDalicPINVOKE.RectInteger_x_get(swigCPtr);
177       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
178       return ret;
179     } 
180   }
181
182   public int left {
183     set {
184       NDalicPINVOKE.RectInteger_left_set(swigCPtr, value);
185       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
186     } 
187     get {
188       int ret = NDalicPINVOKE.RectInteger_left_get(swigCPtr);
189       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
190       return ret;
191     } 
192   }
193
194   public int y {
195     set {
196       NDalicPINVOKE.RectInteger_y_set(swigCPtr, value);
197       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198     } 
199     get {
200       int ret = NDalicPINVOKE.RectInteger_y_get(swigCPtr);
201       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202       return ret;
203     } 
204   }
205
206   public int right {
207     set {
208       NDalicPINVOKE.RectInteger_right_set(swigCPtr, value);
209       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
210     } 
211     get {
212       int ret = NDalicPINVOKE.RectInteger_right_get(swigCPtr);
213       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
214       return ret;
215     } 
216   }
217
218   public int width {
219     set {
220       NDalicPINVOKE.RectInteger_width_set(swigCPtr, value);
221       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
222     } 
223     get {
224       int ret = NDalicPINVOKE.RectInteger_width_get(swigCPtr);
225       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
226       return ret;
227     } 
228   }
229
230   public int bottom {
231     set {
232       NDalicPINVOKE.RectInteger_bottom_set(swigCPtr, value);
233       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234     } 
235     get {
236       int ret = NDalicPINVOKE.RectInteger_bottom_get(swigCPtr);
237       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
238       return ret;
239     } 
240   }
241
242   public int height {
243     set {
244       NDalicPINVOKE.RectInteger_height_set(swigCPtr, value);
245       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
246     } 
247     get {
248       int ret = NDalicPINVOKE.RectInteger_height_get(swigCPtr);
249       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
250       return ret;
251     } 
252   }
253
254   public int top {
255     set {
256       NDalicPINVOKE.RectInteger_top_set(swigCPtr, value);
257       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
258     } 
259     get {
260       int ret = NDalicPINVOKE.RectInteger_top_get(swigCPtr);
261       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
262       return ret;
263     } 
264   }
265
266 }
267
268 }