Merge "add Timer Tick event" into tizen
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / 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 Tizen.NUI {
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     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_RectFloat(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 RectFloat() : this(NDalicPINVOKE.new_RectFloat__SWIG_0(), true) {
50     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51   }
52
53   public RectFloat(float x, float y, float width, float height) : this(NDalicPINVOKE.new_RectFloat__SWIG_1(x, y, width, height), true) {
54     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
55   }
56
57   public RectFloat(RectFloat rhs) : this(NDalicPINVOKE.new_RectFloat__SWIG_2(RectFloat.getCPtr(rhs)), true) {
58     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59   }
60
61   public RectFloat Assign(RectFloat rhs) {
62     RectFloat ret = new RectFloat(NDalicPINVOKE.RectFloat_Assign(swigCPtr, RectFloat.getCPtr(rhs)), false);
63     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
64     return ret;
65   }
66
67   public void Set(float newX, float newY, float newWidth, float newHeight) {
68     NDalicPINVOKE.RectFloat_Set(swigCPtr, newX, newY, newWidth, newHeight);
69     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70   }
71
72   public bool IsEmpty() {
73     bool ret = NDalicPINVOKE.RectFloat_IsEmpty(swigCPtr);
74     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75     return ret;
76   }
77
78   public float Left() {
79     float ret = NDalicPINVOKE.RectFloat_Left(swigCPtr);
80     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
81     return ret;
82   }
83
84   public float Right() {
85     float ret = NDalicPINVOKE.RectFloat_Right(swigCPtr);
86     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
87     return ret;
88   }
89
90   public float Top() {
91     float ret = NDalicPINVOKE.RectFloat_Top(swigCPtr);
92     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93     return ret;
94   }
95
96   public float Bottom() {
97     float ret = NDalicPINVOKE.RectFloat_Bottom(swigCPtr);
98     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
99     return ret;
100   }
101
102   public float Area() {
103     float ret = NDalicPINVOKE.RectFloat_Area(swigCPtr);
104     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105     return ret;
106   }
107
108   public bool Intersects(RectFloat other) {
109     bool ret = NDalicPINVOKE.RectFloat_Intersects(swigCPtr, RectFloat.getCPtr(other));
110     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111     return ret;
112   }
113
114   public bool Contains(RectFloat other) {
115     bool ret = NDalicPINVOKE.RectFloat_Contains(swigCPtr, RectFloat.getCPtr(other));
116     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117     return ret;
118   }
119
120   public float x {
121     set {
122       NDalicPINVOKE.RectFloat_x_set(swigCPtr, value);
123       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
124     } 
125     get {
126       float ret = NDalicPINVOKE.RectFloat_x_get(swigCPtr);
127       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
128       return ret;
129     } 
130   }
131
132   public float left {
133     set {
134       NDalicPINVOKE.RectFloat_left_set(swigCPtr, value);
135       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
136     } 
137     get {
138       float ret = NDalicPINVOKE.RectFloat_left_get(swigCPtr);
139       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140       return ret;
141     } 
142   }
143
144   public float y {
145     set {
146       NDalicPINVOKE.RectFloat_y_set(swigCPtr, value);
147       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
148     } 
149     get {
150       float ret = NDalicPINVOKE.RectFloat_y_get(swigCPtr);
151       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152       return ret;
153     } 
154   }
155
156   public float right {
157     set {
158       NDalicPINVOKE.RectFloat_right_set(swigCPtr, value);
159       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
160     } 
161     get {
162       float ret = NDalicPINVOKE.RectFloat_right_get(swigCPtr);
163       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
164       return ret;
165     } 
166   }
167
168   public float width {
169     set {
170       NDalicPINVOKE.RectFloat_width_set(swigCPtr, value);
171       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
172     } 
173     get {
174       float ret = NDalicPINVOKE.RectFloat_width_get(swigCPtr);
175       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
176       return ret;
177     } 
178   }
179
180   public float bottom {
181     set {
182       NDalicPINVOKE.RectFloat_bottom_set(swigCPtr, value);
183       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
184     } 
185     get {
186       float ret = NDalicPINVOKE.RectFloat_bottom_get(swigCPtr);
187       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
188       return ret;
189     } 
190   }
191
192   public float height {
193     set {
194       NDalicPINVOKE.RectFloat_height_set(swigCPtr, value);
195       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196     } 
197     get {
198       float ret = NDalicPINVOKE.RectFloat_height_get(swigCPtr);
199       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
200       return ret;
201     } 
202   }
203
204   public float top {
205     set {
206       NDalicPINVOKE.RectFloat_top_set(swigCPtr, value);
207       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
208     } 
209     get {
210       float ret = NDalicPINVOKE.RectFloat_top_get(swigCPtr);
211       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
212       return ret;
213     } 
214   }
215
216 }
217
218 }