Note that some Text propeties in devel api can't be changed
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / public / Property.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 Property : global::System.IDisposable {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15   protected bool swigCMemOwn;
16
17   internal Property(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(Property obj) {
23     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24   }
25
26   ~Property() {
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_Property(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 int INVALID_INDEX {
50     get {
51       int ret = NDalicPINVOKE.Property_INVALID_INDEX_get();
52       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53       return ret;
54     } 
55   }
56
57   public static int INVALID_KEY {
58     get {
59       int ret = NDalicPINVOKE.Property_INVALID_KEY_get();
60       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
61       return ret;
62     } 
63   }
64
65   public static int INVALID_COMPONENT_INDEX {
66     get {
67       int ret = NDalicPINVOKE.Property_INVALID_COMPONENT_INDEX_get();
68       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69       return ret;
70     } 
71   }
72
73   public Property(Animatable arg0, int propertyIndex) : this(NDalicPINVOKE.new_Property__SWIG_0(Animatable.getCPtr(arg0), propertyIndex), true) {
74     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75   }
76
77   public Property(Animatable arg0, int propertyIndex, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_1(Animatable.getCPtr(arg0), propertyIndex, componentIndex), true) {
78     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79   }
80
81   public Property(Animatable arg0, string propertyName) : this(NDalicPINVOKE.new_Property__SWIG_2(Animatable.getCPtr(arg0), propertyName), true) {
82     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83   }
84
85   public Property(Animatable arg0, string propertyName, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_3(Animatable.getCPtr(arg0), propertyName, componentIndex), true) {
86     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
87   }
88
89   internal Animatable _object {
90     set {
91       NDalicPINVOKE.Property__object_set(swigCPtr, Animatable.getCPtr(value));
92       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93     }
94     get {
95       Animatable ret = new Animatable(NDalicPINVOKE.Property__object_get(swigCPtr), false);
96       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
97       return ret;
98     }
99   }
100
101   public int propertyIndex {
102     set {
103       NDalicPINVOKE.Property_propertyIndex_set(swigCPtr, value);
104       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
105     } 
106     get {
107       int ret = NDalicPINVOKE.Property_propertyIndex_get(swigCPtr);
108       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109       return ret;
110     } 
111   }
112
113   public int componentIndex {
114     set {
115       NDalicPINVOKE.Property_componentIndex_set(swigCPtr, value);
116       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117     } 
118     get {
119       int ret = NDalicPINVOKE.Property_componentIndex_get(swigCPtr);
120       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121       return ret;
122     } 
123   }
124
125   public class Array : global::System.IDisposable {
126     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
127     protected bool swigCMemOwn;
128   
129     internal Array(global::System.IntPtr cPtr, bool cMemoryOwn) {
130       swigCMemOwn = cMemoryOwn;
131       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
132     }
133   
134     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Array obj) {
135       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
136     }
137   
138     ~Array() {
139       Dispose();
140     }
141   
142     public virtual void Dispose() {
143       lock(this) {
144         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
145           if (swigCMemOwn) {
146             swigCMemOwn = false;
147             NDalicPINVOKE.delete_Property_Array(swigCPtr);
148           }
149           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
150         }
151         global::System.GC.SuppressFinalize(this);
152       }
153     }
154   
155     public Property.Value this[uint index]
156     {
157       get
158       {
159         return ValueOfIndex(index);
160       }
161     }
162   
163     public Array() : this(NDalicPINVOKE.new_Property_Array__SWIG_0(), true) {
164       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
165     }
166   
167     public Array(Property.Array other) : this(NDalicPINVOKE.new_Property_Array__SWIG_1(Property.Array.getCPtr(other)), true) {
168       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
169     }
170   
171     public uint Size() {
172       uint ret = NDalicPINVOKE.Property_Array_Size(swigCPtr);
173       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
174       return ret;
175     }
176   
177     public uint Count() {
178       uint ret = NDalicPINVOKE.Property_Array_Count(swigCPtr);
179       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
180       return ret;
181     }
182   
183     public bool Empty() {
184       bool ret = NDalicPINVOKE.Property_Array_Empty(swigCPtr);
185       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
186       return ret;
187     }
188   
189     public void Clear() {
190       NDalicPINVOKE.Property_Array_Clear(swigCPtr);
191       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192     }
193   
194     public void Reserve(uint size) {
195       NDalicPINVOKE.Property_Array_Reserve(swigCPtr, size);
196       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
197     }
198   
199     public void Resize(uint size) {
200       NDalicPINVOKE.Property_Array_Resize(swigCPtr, size);
201       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202     }
203   
204     public uint Capacity() {
205       uint ret = NDalicPINVOKE.Property_Array_Capacity(swigCPtr);
206       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
207       return ret;
208     }
209   
210     public void PushBack(Property.Value value) {
211       NDalicPINVOKE.Property_Array_PushBack(swigCPtr, Property.Value.getCPtr(value));
212       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
213     }
214   
215     public Property.Array Add(Property.Value value) {
216       Property.Array ret = new Property.Array(NDalicPINVOKE.Property_Array_Add(swigCPtr, Property.Value.getCPtr(value)), false);
217       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
218       return ret;
219     }
220   
221     public Property.Value GetElementAt(uint index) {
222       Property.Value ret = new Property.Value(NDalicPINVOKE.Property_Array_GetElementAt__SWIG_0(swigCPtr, index), false);
223       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
224       return ret;
225     }
226   
227     private Property.Value ValueOfIndex(uint index) {
228       Property.Value ret = new Property.Value(NDalicPINVOKE.Property_Array_ValueOfIndex__SWIG_0(swigCPtr, index), false);
229       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
230       return ret;
231     }
232   }
233
234   public class Key : global::System.IDisposable {
235     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
236     protected bool swigCMemOwn;
237   
238     internal Key(global::System.IntPtr cPtr, bool cMemoryOwn) {
239       swigCMemOwn = cMemoryOwn;
240       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
241     }
242   
243     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Key obj) {
244       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
245     }
246   
247     ~Key() {
248       Dispose();
249     }
250   
251     public virtual void Dispose() {
252       lock(this) {
253         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
254           if (swigCMemOwn) {
255             swigCMemOwn = false;
256             NDalicPINVOKE.delete_Property_Key(swigCPtr);
257           }
258           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
259         }
260         global::System.GC.SuppressFinalize(this);
261       }
262     }
263   
264     public Property.Key.KeyType Type {
265       set {
266         NDalicPINVOKE.Property_Key_type_set(swigCPtr, (int)value);
267         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
268       } 
269       get {
270         Property.Key.KeyType ret = (Property.Key.KeyType)NDalicPINVOKE.Property_Key_type_get(swigCPtr);
271         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
272         return ret;
273       } 
274     }
275   
276     public int IndexKey {
277       set {
278         NDalicPINVOKE.Property_Key_indexKey_set(swigCPtr, value);
279         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
280       } 
281       get {
282         int ret = NDalicPINVOKE.Property_Key_indexKey_get(swigCPtr);
283         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284         return ret;
285       } 
286     }
287   
288     public string StringKey {
289       set {
290         NDalicPINVOKE.Property_Key_stringKey_set(swigCPtr, value);
291         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292       } 
293       get {
294         string ret = NDalicPINVOKE.Property_Key_stringKey_get(swigCPtr);
295         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
296         return ret;
297       } 
298     }
299   
300     public Key(string key) : this(NDalicPINVOKE.new_Property_Key__SWIG_0(key), true) {
301       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
302     }
303   
304     public Key(int key) : this(NDalicPINVOKE.new_Property_Key__SWIG_1(key), true) {
305       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
306     }
307   
308     public bool EqualTo(string rhs) {
309       bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_0(swigCPtr, rhs);
310       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
311       return ret;
312     }
313   
314     public bool EqualTo(int rhs) {
315       bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_1(swigCPtr, rhs);
316       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
317       return ret;
318     }
319   
320     public bool EqualTo(Property.Key rhs) {
321       bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_2(swigCPtr, Property.Key.getCPtr(rhs));
322       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
323       return ret;
324     }
325   
326     public bool NotEqualTo(string rhs) {
327       bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_0(swigCPtr, rhs);
328       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
329       return ret;
330     }
331   
332     public bool NotEqualTo(int rhs) {
333       bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_1(swigCPtr, rhs);
334       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
335       return ret;
336     }
337   
338     public bool NotEqualTo(Property.Key rhs) {
339       bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_2(swigCPtr, Property.Key.getCPtr(rhs));
340       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
341       return ret;
342     }
343   
344     public enum KeyType {
345       INDEX,
346       STRING
347     }
348   
349   }
350
351   public class Map : global::System.IDisposable {
352     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
353     protected bool swigCMemOwn;
354   
355     internal Map(global::System.IntPtr cPtr, bool cMemoryOwn) {
356       swigCMemOwn = cMemoryOwn;
357       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
358     }
359   
360     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Map obj) {
361       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
362     }
363   
364     ~Map() {
365       Dispose();
366     }
367   
368     public virtual void Dispose() {
369       lock(this) {
370         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
371           if (swigCMemOwn) {
372             swigCMemOwn = false;
373             NDalicPINVOKE.delete_Property_Map(swigCPtr);
374           }
375           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
376         }
377         global::System.GC.SuppressFinalize(this);
378       }
379     }
380   
381     public Property.Value this[string key]
382     {
383       get
384       {
385         return ValueOfIndex(key);
386       }
387     }
388   
389     public Property.Value this[int key]
390     {
391       get
392       {
393         return ValueOfIndex(key);
394       }
395     }
396   
397     public Map() : this(NDalicPINVOKE.new_Property_Map__SWIG_0(), true) {
398       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399     }
400   
401     public Map(Property.Map other) : this(NDalicPINVOKE.new_Property_Map__SWIG_1(Property.Map.getCPtr(other)), true) {
402       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403     }
404   
405     public uint Count() {
406       uint ret = NDalicPINVOKE.Property_Map_Count(swigCPtr);
407       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
408       return ret;
409     }
410   
411     public bool Empty() {
412       bool ret = NDalicPINVOKE.Property_Map_Empty(swigCPtr);
413       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
414       return ret;
415     }
416   
417     public void Insert(string key, Property.Value value) {
418       NDalicPINVOKE.Property_Map_Insert__SWIG_0(swigCPtr, key, Property.Value.getCPtr(value));
419       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420     }
421   
422     public void Insert(int key, Property.Value value) {
423       NDalicPINVOKE.Property_Map_Insert__SWIG_2(swigCPtr, key, Property.Value.getCPtr(value));
424       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
425     }
426   
427     public Property.Map Add(string key, Property.Value value) {
428       Property.Map ret = new Property.Map(NDalicPINVOKE.Property_Map_Add__SWIG_0(swigCPtr, key, Property.Value.getCPtr(value)), false);
429       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
430       return ret;
431     }
432   
433     public Property.Map Add(int key, Property.Value value) {
434       Property.Map ret = new Property.Map(NDalicPINVOKE.Property_Map_Add__SWIG_2(swigCPtr, key, Property.Value.getCPtr(value)), false);
435       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
436       return ret;
437     }
438   
439     public Property.Value GetValue(uint position) {
440       Property.Value ret = new Property.Value(NDalicPINVOKE.Property_Map_GetValue(swigCPtr, position), false);
441       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
442       return ret;
443     }
444
445     public Property.Key GetKey(uint position) {
446       Property.Key ret = new Property.Key(NDalicPINVOKE.Property_Map_GetKeyAt(swigCPtr, position), true);
447       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
448       return ret;
449     }
450
451     internal Property.Value Find(int key) {
452       global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_2(swigCPtr, key);
453       Property.Value ret = (cPtr == global::System.IntPtr.Zero) ? null : new Property.Value(cPtr, false);
454       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
455       return ret;
456     }
457   
458     public Property.Value Find(int indexKey, string stringKey) {
459       global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_3(swigCPtr, indexKey, stringKey);
460       Property.Value ret = (cPtr == global::System.IntPtr.Zero) ? null : new Property.Value(cPtr, false);
461       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
462       return ret;
463     }
464
465     public void Clear() {
466       NDalicPINVOKE.Property_Map_Clear(swigCPtr);
467       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
468     }
469   
470     public void Merge(Property.Map from) {
471       NDalicPINVOKE.Property_Map_Merge(swigCPtr, Property.Map.getCPtr(from));
472       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
473     }
474   
475     internal Property.Value ValueOfIndex(string key) {
476       Property.Value ret = new Property.Value(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_0(swigCPtr, key), false);
477       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
478       return ret;
479     }
480   
481     internal Property.Value ValueOfIndex(int key) {
482       Property.Value ret = new Property.Value(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_2(swigCPtr, key), false);
483       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
484       return ret;
485     }
486   }
487
488   public class Value : global::System.IDisposable {
489     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
490     protected bool swigCMemOwn;
491   
492     internal Value(global::System.IntPtr cPtr, bool cMemoryOwn) {
493       swigCMemOwn = cMemoryOwn;
494       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
495     }
496   
497     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Value obj) {
498       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
499     }
500   
501     ~Value() {
502       Dispose();
503     }
504   
505     public virtual void Dispose() {
506       lock(this) {
507         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
508           if (swigCMemOwn) {
509             swigCMemOwn = false;
510             NDalicPINVOKE.delete_Property_Value(swigCPtr);
511           }
512           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
513         }
514         global::System.GC.SuppressFinalize(this);
515       }
516     }
517   
518   
519       // Extension to property value class that allows us to create a
520       // PropertyValue from a C# object, e.g. int, float, string
521       static public Property.Value CreateFromObject( System.Object obj)
522       {
523         System.Type type = obj.GetType ();
524   
525           Property.Value value;
526   
527           if ( type.Equals (typeof(int)) )
528           {
529             System.Console.WriteLine (" got an int property value ");
530             value = new Property.Value ((int) obj );
531           }
532           if ( type.Equals (typeof(System.Int32)) )
533           {
534             System.Console.WriteLine (" got an int property value ");
535             value = new Property.Value ((int) obj );
536           }
537           else if ( type.Equals (typeof(bool)) )
538           {
539             System.Console.WriteLine (" got an bool property value ");
540             value = new Property.Value ((bool) obj );
541           }
542           else if ( type.Equals (typeof(float)) )
543           {
544             System.Console.WriteLine (" got an float property value ");
545             value = new Property.Value ((float) obj );
546           }
547           else if ( type.Equals (typeof(string)) )
548           {
549             System.Console.WriteLine (" got a string property value ");
550             value = new Property.Value ((string) obj );
551           }
552           else if ( type.Equals (typeof(Vector2)) )
553           {
554             System.Console.WriteLine (" got an Vector2 property value ");
555             value = new Property.Value ((Vector2) obj );
556           }
557           else if ( type.Equals (typeof(Vector3)) )
558           {
559             System.Console.WriteLine (" got an Vector3 property value ");
560             value = new Property.Value ((Vector3) obj );
561           }
562           else if ( type.Equals (typeof(Vector4)) )
563           {
564             System.Console.WriteLine (" got an Vector4 property value ");
565   
566             value = new Property.Value ((Vector4) obj );
567           }
568           else if ( type.Equals (typeof(Position)) )
569           {
570             System.Console.WriteLine (" got an Position property value ");
571             value = new Property.Value ((Position) obj );
572           }
573           else if ( type.Equals (typeof(Size)) )
574           {
575             System.Console.WriteLine (" got an Size property value ");
576             value = new Property.Value ((Size) obj );
577           }
578           else if ( type.Equals (typeof(Color)) )
579           {
580             System.Console.WriteLine (" got an Color property value ");
581             value = new Property.Value ((Color) obj );
582           }
583           else
584           {
585              throw new global::System.InvalidOperationException("Unimplemented type for Property Value");
586           }
587           return  value;
588       }
589   
590   
591       public Value(Size2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true) {
592         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593       }
594   
595       public Value(Size vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true) {
596         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
597       }
598   
599       public Value(Position2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true) {
600         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
601       }
602   
603       public Value(Position vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true) {
604         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
605       }
606   
607       public Value(Color vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true) {
608         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
609       }
610   
611   
612       public bool Get(Size2D vectorValue) {
613         bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
614         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
615         return ret;
616       }
617   
618       public bool Get(Size vectorValue) {
619         bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
620         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
621         return ret;
622       }
623   
624       public bool Get(Position2D vectorValue) {
625         bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
626         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
627         return ret;
628       }
629   
630       public bool Get(Position vectorValue) {
631         bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
632         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
633         return ret;
634       }
635   
636       public bool Get(Color vectorValue) {
637         bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
638         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
639         return ret;
640       }
641   
642   
643    
644     public Value() : this(NDalicPINVOKE.new_Property_Value__SWIG_0(), true) {
645       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
646     }
647   
648     public Value(bool boolValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_1(boolValue), true) {
649       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
650     }
651   
652     public Value(int integerValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_2(integerValue), true) {
653       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654     }
655   
656     public Value(float floatValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_3(floatValue), true) {
657       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
658     }
659   
660     public Value(Vector2 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Vector2.getCPtr(vectorValue)), true) {
661       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
662     }
663   
664     public Value(Vector3 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Vector3.getCPtr(vectorValue)), true) {
665       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
666     }
667   
668     public Value(Vector4 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Vector4.getCPtr(vectorValue)), true) {
669       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
670     }
671
672     public Value(Matrix matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true) {
673       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
674     }
675   
676     public Value(Rectangle vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_9(Rectangle.getCPtr(vectorValue)), true) {
677       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
678     }
679   
680     public Value(AngleAxis angleAxis) : this(NDalicPINVOKE.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true) {
681       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
682     }
683   
684     public Value(Rotation quaternion) : this(NDalicPINVOKE.new_Property_Value__SWIG_11(Rotation.getCPtr(quaternion)), true) {
685       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686     }
687   
688     public Value(string stringValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_12(stringValue), true) {
689       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
690     }
691   
692     public Value(Property.Array arrayValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_14(Property.Array.getCPtr(arrayValue)), true) {
693       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
694     }
695   
696     public Value(Property.Map mapValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_15(Property.Map.getCPtr(mapValue)), true) {
697       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
698     }
699   
700     public Value(Property.Type type) : this(NDalicPINVOKE.new_Property_Value__SWIG_16((int)type), true) {
701       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
702     }
703   
704     public Value(Property.Value value) : this(NDalicPINVOKE.new_Property_Value__SWIG_17(Property.Value.getCPtr(value)), true) {
705       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
706     }
707
708     public Property.Type GetType() {
709       Property.Type ret = (Property.Type)NDalicPINVOKE.Property_Value_GetType(swigCPtr);
710       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
711       return ret;
712     }
713   
714     public bool Get(out bool boolValue) {
715       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_1(swigCPtr, out boolValue);
716       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
717       return ret;
718     }
719   
720     public bool Get(out float floatValue) {
721       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_2(swigCPtr, out floatValue);
722       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
723       return ret;
724     }
725   
726     public bool Get(out int integerValue) {
727       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_3(swigCPtr, out integerValue);
728       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
729       return ret;
730     }
731   
732     public bool Get(Rectangle rect) {
733       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
734       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
735       return ret;
736     }
737   
738     public bool Get(Vector2 vectorValue) {
739       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
740       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
741       return ret;
742     }
743   
744     public bool Get(Vector3 vectorValue) {
745       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
746       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
747       return ret;
748     }
749   
750     public bool Get(Vector4 vectorValue) {
751       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
752       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
753       return ret;
754     }
755
756     public bool Get(Matrix matrixValue) {
757       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
758       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
759       return ret;
760     }
761   
762     public bool Get(AngleAxis angleAxisValue) {
763       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
764       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
765       return ret;
766     }
767   
768     public bool Get(Rotation quaternionValue) {
769       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
770       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
771       return ret;
772     }
773   
774     public bool Get(out string stringValue) {
775       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
776       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
777       return ret;
778     }
779   
780     public bool Get(Property.Array arrayValue) {
781       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_13(swigCPtr, Property.Array.getCPtr(arrayValue));
782       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
783       return ret;
784     }
785   
786     public bool Get(Property.Map mapValue) {
787       bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_14(swigCPtr, Property.Map.getCPtr(mapValue));
788       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
789       return ret;
790     }
791
792   }
793
794   public enum Type {
795     NONE,
796     BOOLEAN,
797     FLOAT,
798     INTEGER,
799     VECTOR2,
800     VECTOR3,
801     VECTOR4,
802     MATRIX3,
803     MATRIX,
804     RECTANGLE,
805     ROTATION,
806     STRING,
807     ARRAY,
808     MAP
809   }
810
811   public enum AccessMode {
812     READ_ONLY,
813     READ_WRITE,
814     ANIMATABLE,
815     ACCESS_MODE_COUNT
816   }
817
818 }
819
820 }