Combined Stage and Window class, and removed Stage class
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / Vector4.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.10
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 Vector4 : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal Vector4(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(Vector4 obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~Vector4() {
27     DisposeQueue.Instance.Add(this);
28   }
29
30   public virtual void Dispose() {
31     if (!Window.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_Vector4(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 static Vector4 operator+(Vector4 arg1, Vector4 arg2) {
50     return arg1.Add(arg2);
51   }
52
53   public static Vector4 operator-(Vector4 arg1, Vector4 arg2) {
54     return arg1.Subtract(arg2);
55   }
56
57   public static Vector4 operator-(Vector4 arg1) {
58     return arg1.Subtract();
59   }
60
61   public static Vector4 operator*(Vector4 arg1, Vector4 arg2) {
62     return arg1.Multiply(arg2);
63   }
64
65   public static Vector4 operator*(Vector4 arg1, float arg2) {
66     return arg1.Multiply(arg2);
67   }
68
69   public static Vector4 operator/(Vector4 arg1, Vector4 arg2) {
70     return arg1.Divide(arg2);
71   }
72
73   public static Vector4 operator/(Vector4 arg1, float arg2) {
74     return arg1.Divide(arg2);
75   }
76
77   public float this[uint index]
78   {
79     get
80     {
81       return ValueOfIndex(index);
82     }
83   }
84
85   public static Vector4 GetVector4FromPtr(global::System.IntPtr cPtr) {
86     Vector4 ret = new Vector4(cPtr, false);
87     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
88        return ret;
89   }
90
91
92   public Vector4() : this(NDalicPINVOKE.new_Vector4__SWIG_0(), true) {
93     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
94   }
95
96   public Vector4(float x, float y, float z, float w) : this(NDalicPINVOKE.new_Vector4__SWIG_1(x, y, z, w), true) {
97     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
98   }
99
100   public Vector4(float[] array) : this(NDalicPINVOKE.new_Vector4__SWIG_2(array), true) {
101     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
102   }
103
104   public Vector4(Vector2 vec2) : this(NDalicPINVOKE.new_Vector4__SWIG_3(Vector2.getCPtr(vec2)), true) {
105     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
106   }
107
108   public Vector4(Vector3 vec3) : this(NDalicPINVOKE.new_Vector4__SWIG_4(Vector3.getCPtr(vec3)), true) {
109     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110   }
111
112   public static Vector4 ONE {
113     get {
114       global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_ONE_get();
115       Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
116       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117       return ret;
118     } 
119   }
120
121   public static Vector4 XAXIS {
122     get {
123       global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_XAXIS_get();
124       Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
125       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126       return ret;
127     } 
128   }
129
130   public static Vector4 YAXIS {
131     get {
132       global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_YAXIS_get();
133       Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
134       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135       return ret;
136     } 
137   }
138
139   public static Vector4 ZAXIS {
140     get {
141       global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_ZAXIS_get();
142       Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
143       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
144       return ret;
145     } 
146   }
147
148   public static Vector4 ZERO {
149     get {
150       global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_ZERO_get();
151       Vector4 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector4(cPtr, false);
152       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153       return ret;
154     } 
155   }
156
157   public Vector4 Assign(float[] array) {
158     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Assign__SWIG_0(swigCPtr, array), false);
159     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
160     return ret;
161   }
162
163   public Vector4 Assign(Vector2 vec2) {
164     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Assign__SWIG_1(swigCPtr, Vector2.getCPtr(vec2)), false);
165     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166     return ret;
167   }
168
169   public Vector4 Assign(Vector3 vec3) {
170     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Assign__SWIG_2(swigCPtr, Vector3.getCPtr(vec3)), false);
171     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
172     return ret;
173   }
174
175   public Vector4 Add(Vector4 rhs) {
176     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Add(swigCPtr, Vector4.getCPtr(rhs)), true);
177     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
178     return ret;
179   }
180
181   public Vector4 AddAssign(Vector4 rhs) {
182     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_AddAssign(swigCPtr, Vector4.getCPtr(rhs)), false);
183     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
184     return ret;
185   }
186
187   public Vector4 Subtract(Vector4 rhs) {
188     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Subtract__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
189     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
190     return ret;
191   }
192
193   public Vector4 SubtractAssign(Vector4 rhs) {
194     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_SubtractAssign(swigCPtr, Vector4.getCPtr(rhs)), false);
195     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196     return ret;
197   }
198
199   public Vector4 Multiply(Vector4 rhs) {
200     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Multiply__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
201     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202     return ret;
203   }
204
205   public Vector4 Multiply(float rhs) {
206     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Multiply__SWIG_1(swigCPtr, rhs), true);
207     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
208     return ret;
209   }
210
211   public Vector4 MultiplyAssign(Vector4 rhs) {
212     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), false);
213     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
214     return ret;
215   }
216
217   public Vector4 MultiplyAssign(float rhs) {
218     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_MultiplyAssign__SWIG_1(swigCPtr, rhs), false);
219     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
220     return ret;
221   }
222
223   public Vector4 Divide(Vector4 rhs) {
224     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Divide__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), true);
225     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
226     return ret;
227   }
228
229   public Vector4 Divide(float rhs) {
230     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Divide__SWIG_1(swigCPtr, rhs), true);
231     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
232     return ret;
233   }
234
235   public Vector4 DivideAssign(Vector4 rhs) {
236     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_DivideAssign__SWIG_0(swigCPtr, Vector4.getCPtr(rhs)), false);
237     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
238     return ret;
239   }
240
241   public Vector4 DivideAssign(float rhs) {
242     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_DivideAssign__SWIG_1(swigCPtr, rhs), false);
243     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
244     return ret;
245   }
246
247   public Vector4 Subtract() {
248     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Subtract__SWIG_1(swigCPtr), true);
249     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
250     return ret;
251   }
252
253   public bool EqualTo(Vector4 rhs) {
254     bool ret = NDalicPINVOKE.Vector4_EqualTo(swigCPtr, Vector4.getCPtr(rhs));
255     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
256     return ret;
257   }
258
259   public bool NotEqualTo(Vector4 rhs) {
260     bool ret = NDalicPINVOKE.Vector4_NotEqualTo(swigCPtr, Vector4.getCPtr(rhs));
261     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
262     return ret;
263   }
264
265   public float ValueOfIndex(uint index) {
266     float ret = NDalicPINVOKE.Vector4_ValueOfIndex__SWIG_0(swigCPtr, index);
267     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
268     return ret;
269   }
270
271   public float Dot(Vector3 other) {
272     float ret = NDalicPINVOKE.Vector4_Dot__SWIG_0(swigCPtr, Vector3.getCPtr(other));
273     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
274     return ret;
275   }
276
277   public float Dot(Vector4 other) {
278     float ret = NDalicPINVOKE.Vector4_Dot__SWIG_1(swigCPtr, Vector4.getCPtr(other));
279     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
280     return ret;
281   }
282
283   public float Dot4(Vector4 other) {
284     float ret = NDalicPINVOKE.Vector4_Dot4(swigCPtr, Vector4.getCPtr(other));
285     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
286     return ret;
287   }
288
289   public Vector4 Cross(Vector4 other) {
290     Vector4 ret = new Vector4(NDalicPINVOKE.Vector4_Cross(swigCPtr, Vector4.getCPtr(other)), true);
291     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292     return ret;
293   }
294
295   public float Length() {
296     float ret = NDalicPINVOKE.Vector4_Length(swigCPtr);
297     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
298     return ret;
299   }
300
301   public float LengthSquared() {
302     float ret = NDalicPINVOKE.Vector4_LengthSquared(swigCPtr);
303     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304     return ret;
305   }
306
307   public void Normalize() {
308     NDalicPINVOKE.Vector4_Normalize(swigCPtr);
309     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
310   }
311
312   public void Clamp(Vector4 min, Vector4 max) {
313     NDalicPINVOKE.Vector4_Clamp(swigCPtr, Vector4.getCPtr(min), Vector4.getCPtr(max));
314     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
315   }
316
317   public SWIGTYPE_p_float AsFloat() {
318     global::System.IntPtr cPtr = NDalicPINVOKE.Vector4_AsFloat__SWIG_0(swigCPtr);
319     SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
320     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
321     return ret;
322   }
323
324   public float X {
325     set {
326       NDalicPINVOKE.Vector4_X_set(swigCPtr, value);
327       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
328     } 
329     get {
330       float ret = NDalicPINVOKE.Vector4_X_get(swigCPtr);
331       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
332       return ret;
333     } 
334   }
335
336   public float r {
337     set {
338       NDalicPINVOKE.Vector4_r_set(swigCPtr, value);
339       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
340     } 
341     get {
342       float ret = NDalicPINVOKE.Vector4_r_get(swigCPtr);
343       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
344       return ret;
345     } 
346   }
347
348   public float s {
349     set {
350       NDalicPINVOKE.Vector4_s_set(swigCPtr, value);
351       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
352     } 
353     get {
354       float ret = NDalicPINVOKE.Vector4_s_get(swigCPtr);
355       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
356       return ret;
357     } 
358   }
359
360   public float Y {
361     set {
362       NDalicPINVOKE.Vector4_Y_set(swigCPtr, value);
363       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
364     } 
365     get {
366       float ret = NDalicPINVOKE.Vector4_Y_get(swigCPtr);
367       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
368       return ret;
369     } 
370   }
371
372   public float g {
373     set {
374       NDalicPINVOKE.Vector4_g_set(swigCPtr, value);
375       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376     } 
377     get {
378       float ret = NDalicPINVOKE.Vector4_g_get(swigCPtr);
379       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
380       return ret;
381     } 
382   }
383
384   public float t {
385     set {
386       NDalicPINVOKE.Vector4_t_set(swigCPtr, value);
387       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388     } 
389     get {
390       float ret = NDalicPINVOKE.Vector4_t_get(swigCPtr);
391       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392       return ret;
393     } 
394   }
395
396   public float Z {
397     set {
398       NDalicPINVOKE.Vector4_Z_set(swigCPtr, value);
399       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
400     } 
401     get {
402       float ret = NDalicPINVOKE.Vector4_Z_get(swigCPtr);
403       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
404       return ret;
405     } 
406   }
407
408   public float b {
409     set {
410       NDalicPINVOKE.Vector4_b_set(swigCPtr, value);
411       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
412     } 
413     get {
414       float ret = NDalicPINVOKE.Vector4_b_get(swigCPtr);
415       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
416       return ret;
417     } 
418   }
419
420   public float p {
421     set {
422       NDalicPINVOKE.Vector4_p_set(swigCPtr, value);
423       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424     } 
425     get {
426       float ret = NDalicPINVOKE.Vector4_p_get(swigCPtr);
427       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
428       return ret;
429     } 
430   }
431
432   public float W {
433     set {
434       NDalicPINVOKE.Vector4_W_set(swigCPtr, value);
435       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
436     } 
437     get {
438       float ret = NDalicPINVOKE.Vector4_W_get(swigCPtr);
439       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
440       return ret;
441     } 
442   }
443
444   public float a {
445     set {
446       NDalicPINVOKE.Vector4_a_set(swigCPtr, value);
447       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
448     } 
449     get {
450       float ret = NDalicPINVOKE.Vector4_a_get(swigCPtr);
451       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
452       return ret;
453     } 
454   }
455
456   public float q {
457     set {
458       NDalicPINVOKE.Vector4_q_set(swigCPtr, value);
459       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
460     } 
461     get {
462       float ret = NDalicPINVOKE.Vector4_q_get(swigCPtr);
463       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
464       return ret;
465     } 
466   }
467
468 }
469
470 }