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