nui 0.2.32 manual merge, mapping to dali 1.2.32
[platform/core/csapi/tizenfx.git] / NUISamples / Tizen.NUI / src / public / Property.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
14     internal class Property : global::System.IDisposable
15     {
16         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17         protected bool swigCMemOwn;
18
19         internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
20         {
21             swigCMemOwn = cMemoryOwn;
22             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
23         }
24
25         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
26         {
27             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
28         }
29
30         ~Property()
31         {
32             DisposeQueue.Instance.Add(this);
33         }
34
35         public virtual void Dispose()
36         {
37             if (!Stage.IsInstalled())
38             {
39                 DisposeQueue.Instance.Add(this);
40                 return;
41             }
42
43             lock (this)
44             {
45                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
46                 {
47                     if (swigCMemOwn)
48                     {
49                         swigCMemOwn = false;
50                         NDalicPINVOKE.delete_Property(swigCPtr);
51                     }
52                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
53                 }
54                 global::System.GC.SuppressFinalize(this);
55             }
56         }
57
58
59         internal static int INVALID_INDEX
60         {
61             get
62             {
63                 int ret = NDalicPINVOKE.Property_INVALID_INDEX_get();
64                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
65                 return ret;
66             }
67         }
68
69         internal static int INVALID_KEY
70         {
71             get
72             {
73                 int ret = NDalicPINVOKE.Property_INVALID_KEY_get();
74                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
75                 return ret;
76             }
77         }
78
79         internal static int INVALID_COMPONENT_INDEX
80         {
81             get
82             {
83                 int ret = NDalicPINVOKE.Property_INVALID_COMPONENT_INDEX_get();
84                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
85                 return ret;
86             }
87         }
88
89         public Property(Handle arg0, int propertyIndex) : this(NDalicPINVOKE.new_Property__SWIG_0(Handle.getCPtr(arg0), propertyIndex), true)
90         {
91             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92         }
93
94         public Property(Handle arg0, int propertyIndex, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_1(Handle.getCPtr(arg0), propertyIndex, componentIndex), true)
95         {
96             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
97         }
98
99         public Property(Handle arg0, string propertyName) : this(NDalicPINVOKE.new_Property__SWIG_2(Handle.getCPtr(arg0), propertyName), true)
100         {
101             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
102         }
103
104         public Property(Handle arg0, string propertyName, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_3(Handle.getCPtr(arg0), propertyName, componentIndex), true)
105         {
106             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
107         }
108
109         internal Handle _object
110         {
111             set
112             {
113                 NDalicPINVOKE.Property__object_set(swigCPtr, Handle.getCPtr(value));
114                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
115             }
116             get
117             {
118                 Handle ret = new Handle(NDalicPINVOKE.Property__object_get(swigCPtr), false);
119                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120                 return ret;
121             }
122         }
123
124         public int propertyIndex
125         {
126             set
127             {
128                 NDalicPINVOKE.Property_propertyIndex_set(swigCPtr, value);
129                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
130             }
131             get
132             {
133                 int ret = NDalicPINVOKE.Property_propertyIndex_get(swigCPtr);
134                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135                 return ret;
136             }
137         }
138
139         public int componentIndex
140         {
141             set
142             {
143                 NDalicPINVOKE.Property_componentIndex_set(swigCPtr, value);
144                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
145             }
146             get
147             {
148                 int ret = NDalicPINVOKE.Property_componentIndex_get(swigCPtr);
149                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
150                 return ret;
151             }
152         }
153
154     }
155
156     /// <summary>
157     /// A Array of property values.
158     /// </summary>
159     public class PropertyArray : global::System.IDisposable
160     {
161         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
162         protected bool swigCMemOwn;
163
164         internal PropertyArray(global::System.IntPtr cPtr, bool cMemoryOwn)
165         {
166             swigCMemOwn = cMemoryOwn;
167             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
168         }
169
170         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyArray obj)
171         {
172             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
173         }
174
175         ~PropertyArray()
176         {
177             Dispose();
178         }
179
180         public virtual void Dispose()
181         {
182             lock (this)
183             {
184                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
185                 {
186                     if (swigCMemOwn)
187                     {
188                         swigCMemOwn = false;
189                         NDalicPINVOKE.delete_Property_Array(swigCPtr);
190                     }
191                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
192                 }
193                 global::System.GC.SuppressFinalize(this);
194             }
195         }
196
197         /// <summary>
198         /// Operator to access an element.
199         /// </summary>
200         /// <param name="index">The element index to access. No bounds checking is performed</param>
201         /// <returns>The a reference to the element</returns>
202         public PropertyValue this[uint index]
203         {
204             get
205             {
206                 return ValueOfIndex(index);
207             }
208         }
209
210         /// <summary>
211         /// Constructor
212         /// </summary>
213         public PropertyArray() : this(NDalicPINVOKE.new_Property_Array__SWIG_0(), true)
214         {
215             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
216         }
217
218         internal PropertyArray(PropertyArray other) : this(NDalicPINVOKE.new_Property_Array__SWIG_1(PropertyArray.getCPtr(other)), true)
219         {
220             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221         }
222
223         /// <summary>
224         /// Retrieves the number of elements in the array.
225         /// </summary>
226         /// <returns>The number of elements in the array</returns>
227         public uint Size()
228         {
229             uint ret = NDalicPINVOKE.Property_Array_Size(swigCPtr);
230             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
231             return ret;
232         }
233
234         /// <summary>
235         /// Retrieves the number of elements in the array.
236         /// </summary>
237         /// <returns>The number of elements in the array</returns>
238         public uint Count()
239         {
240             uint ret = NDalicPINVOKE.Property_Array_Count(swigCPtr);
241             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
242             return ret;
243         }
244
245         /// <summary>
246         /// Returns whether the array is empty.
247         /// </summary>
248         /// <returns>Return true if empty, false otherwise</returns>
249         public bool Empty()
250         {
251             bool ret = NDalicPINVOKE.Property_Array_Empty(swigCPtr);
252             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
253             return ret;
254         }
255
256         /// <summary>
257         /// Clears the array.
258         /// </summary>
259         public void Clear()
260         {
261             NDalicPINVOKE.Property_Array_Clear(swigCPtr);
262             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
263         }
264
265         /// <summary>
266         /// Increases the capacity of the array.
267         /// </summary>
268         /// <param name="size">The size to reserve</param>
269         public void Reserve(uint size)
270         {
271             NDalicPINVOKE.Property_Array_Reserve(swigCPtr, size);
272             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
273         }
274
275         /// <summary>
276         /// Resizes to size.
277         /// </summary>
278         /// <param name="size">The size to resize</param>
279         public void Resize(uint size)
280         {
281             NDalicPINVOKE.Property_Array_Resize(swigCPtr, size);
282             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
283         }
284
285         /// <summary>
286         /// Retrieves the capacity of the array.
287         /// </summary>
288         /// <returns>The allocated capacity of the array</returns>
289         public uint Capacity()
290         {
291             uint ret = NDalicPINVOKE.Property_Array_Capacity(swigCPtr);
292             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
293             return ret;
294         }
295
296         /// <summary>
297         /// Adds an element to the array.
298         /// </summary>
299         /// <param name="value">The value to add to the end of the array</param>
300         public void PushBack(PropertyValue value)
301         {
302             NDalicPINVOKE.Property_Array_PushBack(swigCPtr, PropertyValue.getCPtr(value));
303             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304         }
305
306         /// <summary>
307         /// Add an element to the array.
308         /// </summary>
309         /// <param name="value">The value to add to the end of the array</param>
310         public PropertyArray Add(PropertyValue value)
311         {
312             PropertyArray ret = new PropertyArray(NDalicPINVOKE.Property_Array_Add(swigCPtr, PropertyValue.getCPtr(value)), false);
313             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
314             return ret;
315         }
316
317         /// <summary>
318         /// Access an element.
319         /// </summary>
320         /// <param name="index">The element index to access. No bounds checking is performed</param>
321         /// <returns>The a reference to the element</returns>
322         public PropertyValue GetElementAt(uint index)
323         {
324             PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_GetElementAt__SWIG_0(swigCPtr, index), false);
325             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
326             return ret;
327         }
328
329         /// <summary>
330         /// Retrieves the value of elements in the array.
331         /// </summary>
332         /// <param name="index">The element index to retrieve.</param>
333         /// <returns>The a reference to the element</returns>
334         public PropertyValue ValueOfIndex(uint index)
335         {
336             PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_ValueOfIndex__SWIG_0(swigCPtr, index), false);
337             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
338             return ret;
339         }
340
341         /// <summary>
342         /// Copy the array.
343         /// </summary>
344         /// <param name="other">The array to copy from</param>
345         /// <returns>The copied array</returns>
346         internal PropertyArray Assign(PropertyArray other)
347         {
348             PropertyArray ret = new PropertyArray(NDalicPINVOKE.Property_Array_Assign(swigCPtr, PropertyArray.getCPtr(other)), false);
349             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
350             return ret;
351         }
352
353     }
354
355     /// <summary>
356     /// A key type which can be either a std::string or a Property::Index
357     /// </summary>
358     public class PropertyKey : global::System.IDisposable
359     {
360         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
361         protected bool swigCMemOwn;
362
363         internal PropertyKey(global::System.IntPtr cPtr, bool cMemoryOwn)
364         {
365             swigCMemOwn = cMemoryOwn;
366             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
367         }
368
369         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyKey obj)
370         {
371             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
372         }
373
374         ~PropertyKey()
375         {
376             Dispose();
377         }
378
379         public virtual void Dispose()
380         {
381             lock (this)
382             {
383                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
384                 {
385                     if (swigCMemOwn)
386                     {
387                         swigCMemOwn = false;
388                         NDalicPINVOKE.delete_Property_Key(swigCPtr);
389                     }
390                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
391                 }
392                 global::System.GC.SuppressFinalize(this);
393             }
394         }
395
396         /// <summary>
397         /// The type of the key
398         /// </summary>
399         public PropertyKey.Type type
400         {
401             set
402             {
403                 NDalicPINVOKE.Property_Key_type_set(swigCPtr, (int)value);
404                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405             }
406             get
407             {
408                 PropertyKey.Type ret = (PropertyKey.Type)NDalicPINVOKE.Property_Key_type_get(swigCPtr);
409                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410                 return ret;
411             }
412         }
413
414         /// <summary>
415         /// The index key.
416         /// </summary>
417         public int indexKey
418         {
419             set
420             {
421                 NDalicPINVOKE.Property_Key_indexKey_set(swigCPtr, value);
422                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
423             }
424             get
425             {
426                 int ret = NDalicPINVOKE.Property_Key_indexKey_get(swigCPtr);
427                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
428                 return ret;
429             }
430         }
431
432         /// <summary>
433         /// The string key.
434         /// </summary>
435         public string stringKey
436         {
437             set
438             {
439                 NDalicPINVOKE.Property_Key_stringKey_set(swigCPtr, value);
440                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
441             }
442             get
443             {
444                 string ret = NDalicPINVOKE.Property_Key_stringKey_get(swigCPtr);
445                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
446                 return ret;
447             }
448         }
449
450         /// <summary>
451         /// Constructor
452         /// </summary>
453         /// <param name="key">The string key</param>
454         public PropertyKey(string key) : this(NDalicPINVOKE.new_Property_Key__SWIG_0(key), true)
455         {
456             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457         }
458
459         /// <summary>
460         /// Constructor
461         /// </summary>
462         /// <param name="key">The index key</param>
463         public PropertyKey(int key) : this(NDalicPINVOKE.new_Property_Key__SWIG_1(key), true)
464         {
465             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
466         }
467
468         /// <summary>
469         /// Compare if rhs is equal to
470         /// </summary>
471         /// <param name="rhs">A string key to compare against</param>
472         /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type</returns>
473         public bool EqualTo(string rhs)
474         {
475             bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_0(swigCPtr, rhs);
476             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477             return ret;
478         }
479
480         /// <summary>
481         /// Compare if rhs is equal to
482         /// </summary>
483         /// <param name="rhs">A index key to compare against</param>
484         /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type</returns>
485         public bool EqualTo(int rhs)
486         {
487             bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_1(swigCPtr, rhs);
488             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489             return ret;
490         }
491
492         /// <summary>
493         /// Compare if rhs is equal to
494         /// </summary>
495         /// <param name="rhs">A key to compare against</param>
496         /// <returns>Returns true if the keys are of the same type and have the same value</returns>
497         public bool EqualTo(PropertyKey rhs)
498         {
499             bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
500             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
501             return ret;
502         }
503
504         /// <summary>
505         /// Compare if rhs is not equal to
506         /// </summary>
507         /// <param name="rhs">An index key to compare against.</param>
508         /// <returns>Returns true if the key is not equal or not a string key</returns>
509         public bool NotEqualTo(string rhs)
510         {
511             bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_0(swigCPtr, rhs);
512             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
513             return ret;
514         }
515
516         /// <summary>
517         /// Compare if rhs is not equal to
518         /// </summary>
519         /// <param name="rhs">An index key to compare against.</param>
520         /// <returns>Returns true if the key is not equal, or not an index key</returns>
521         public bool NotEqualTo(int rhs)
522         {
523             bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_1(swigCPtr, rhs);
524             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525             return ret;
526         }
527
528         /// <summary>
529         /// Compare if rhs is not equal to
530         /// </summary>
531         /// <param name="rhs">A key to compare against.</param>
532         /// <returns>Returns true if the keys are not of the same type or are not equal</returns>
533         public bool NotEqualTo(PropertyKey rhs)
534         {
535             bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
536             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
537             return ret;
538         }
539
540         /// <summary>
541         /// The type of key
542         /// </summary>
543         public enum Type
544         {
545             Index,
546             String
547         }
548
549     }
550
551     /// <summary>
552     /// A Map of property values, the key type could be String or Property::Index.
553     /// </summary>
554     public class PropertyMap : global::System.IDisposable
555     {
556         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
557         protected bool swigCMemOwn;
558
559         internal PropertyMap(global::System.IntPtr cPtr, bool cMemoryOwn)
560         {
561             swigCMemOwn = cMemoryOwn;
562             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
563         }
564
565         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyMap obj)
566         {
567             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
568         }
569
570         ~PropertyMap()
571         {
572             Dispose();
573         }
574
575         public virtual void Dispose()
576         {
577             lock (this)
578             {
579                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
580                 {
581                     if (swigCMemOwn)
582                     {
583                         swigCMemOwn = false;
584                         NDalicPINVOKE.delete_Property_Map(swigCPtr);
585                     }
586                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
587                 }
588                 global::System.GC.SuppressFinalize(this);
589             }
590         }
591
592         /// <summary>
593         /// Operator to access the element with the specified string key.
594         /// If an element with the key does not exist, then it is created.
595         /// </summary>
596         /// <param name="key">The key whose value to access</param>
597         /// <returns>A value for the element with the specified key</returns>
598         public PropertyValue this[string key]
599         {
600             get
601             {
602                 return ValueOfIndex(key);
603             }
604         }
605
606         /// <summary>
607         /// Operator to access the element with the specified index key.
608         /// If an element with the key does not exist, then it is created.
609         /// </summary>
610         /// <param name="key">The key whose value to access</param>
611         /// <returns>A value for the element with the specified key</returns>
612         public PropertyValue this[int key]
613         {
614             get
615             {
616                 return ValueOfIndex(key);
617             }
618         }
619
620         /// <summary>
621         /// Constructor
622         /// </summary>
623         public PropertyMap() : this(NDalicPINVOKE.new_Property_Map__SWIG_0(), true)
624         {
625             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626         }
627
628         /// <summary>
629         /// Copy Constructor
630         /// </summary>
631         /// <param name="other">The Map to copy from</param>
632         public PropertyMap(PropertyMap other) : this(NDalicPINVOKE.new_Property_Map__SWIG_1(PropertyMap.getCPtr(other)), true)
633         {
634             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
635         }
636
637         /// <summary>
638         /// Retrieves the number of elements in the map.
639         /// </summary>
640         /// <returns>The number of elements in the map</returns>
641         public uint Count()
642         {
643             uint ret = NDalicPINVOKE.Property_Map_Count(swigCPtr);
644             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
645             return ret;
646         }
647
648         /// <summary>
649         /// Returns whether the map is empty.
650         /// </summary>
651         /// <returns>Returns true if empty, false otherwise</returns>
652         public bool Empty()
653         {
654             bool ret = NDalicPINVOKE.Property_Map_Empty(swigCPtr);
655             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
656             return ret;
657         }
658
659         /// <summary>
660         /// Inserts the key-value pair in the Map, with the key type as string.
661         /// Does not check for duplicates.
662         /// </summary>
663         /// <param name="key">The key to insert</param>
664         /// <param name="value">The value to insert</param>
665         public void Insert(string key, PropertyValue value)
666         {
667             NDalicPINVOKE.Property_Map_Insert__SWIG_0(swigCPtr, key, PropertyValue.getCPtr(value));
668             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
669         }
670
671         /// <summary>
672         /// Inserts the key-value pair in the Map, with the key type as index.
673         /// Does not check for duplicates.
674         /// </summary>
675         /// <param name="key">The key to insert</param>
676         /// <param name="value">The value to insert</param>
677         public void Insert(int key, PropertyValue value)
678         {
679             NDalicPINVOKE.Property_Map_Insert__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value));
680             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
681         }
682
683         /// <summary>
684         /// Inserts the key-value pair in the Map, with the key type as string.
685         /// Does not check for duplicates.
686         /// </summary>
687         /// <param name="key">The key to insert</param>
688         /// <param name="value">The value to insert</param>
689         /// <returns>Returns a reference to this object</returns>
690         public PropertyMap Add(string key, PropertyValue value)
691         {
692             PropertyMap ret = new PropertyMap(NDalicPINVOKE.Property_Map_Add__SWIG_0(swigCPtr, key, PropertyValue.getCPtr(value)), false);
693             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
694             return ret;
695         }
696
697         /// <summary>
698         /// Inserts the key-value pair in the Map, with the key type as string.
699         /// Does not check for duplicates.
700         /// </summary>
701         /// <param name="key">The key to insert</param>
702         /// <param name="value">The value to insert</param>
703         /// <returns>Returns a reference to this object</returns>
704         public PropertyMap Add(int key, PropertyValue value)
705         {
706             PropertyMap ret = new PropertyMap(NDalicPINVOKE.Property_Map_Add__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value)), false);
707             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
708             return ret;
709         }
710
711         /// <summary>
712         /// Retrieves the value at the specified position.
713         /// </summary>
714         /// <param name="position">The specified position</param>
715         /// <returns>A reference to the value at the specified position</returns>
716         public PropertyValue GetValue(uint position)
717         {
718             PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_GetValue(swigCPtr, position), false);
719             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
720             return ret;
721         }
722
723         /// <summary>
724         /// Retrieves the key at the specified position.
725         /// </summary>
726         /// <param name="position">The specified position</param>
727         /// <returns>A reference to the key at the specified position</returns>
728         public string GetKey(uint position)
729         {
730             string ret = NDalicPINVOKE.Property_Map_GetKey(swigCPtr, position);
731             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
732             return ret;
733         }
734
735         /// <summary>
736         /// Retrieve the key at the specified position.
737         /// </summary>
738         /// <param name="position">The specified position</param>
739         /// <returns>A copy of the key at the specified position</returns>
740         public PropertyKey GetKeyAt(uint position)
741         {
742             PropertyKey ret = new PropertyKey(NDalicPINVOKE.Property_Map_GetKeyAt(swigCPtr, position), true);
743             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
744             return ret;
745         }
746
747         internal StringValuePair GetPair(uint position)
748         {
749             StringValuePair ret = new StringValuePair(NDalicPINVOKE.Property_Map_GetPair(swigCPtr, position), false);
750             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
751             return ret;
752         }
753
754         /// <summary>
755         /// Finds the value for the specified key if it exists.
756         /// </summary>
757         /// <param name="key">The key to find</param>
758         /// <returns>The value if it exists, an empty object otherwise</returns>
759         public PropertyValue Find(string key)
760         {
761             global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_0(swigCPtr, key);
762             PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
763             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
764             return ret;
765         }
766
767         /// <summary>
768         /// Finds the value for the specified key if it exists.
769         /// </summary>
770         /// <param name="key">The key to find</param>
771         /// <returns>The value if it exists, an empty object otherwise</returns>
772         public PropertyValue Find(int key)
773         {
774             global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_2(swigCPtr, key);
775             PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
776             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
777             return ret;
778         }
779
780         /// <summary>
781         /// Finds the value for the specified keys if either exist.
782         /// </summary>
783         /// <param name="indexKey">The index key to find</param>
784         /// <param name="stringKey">The string key to find</param>
785         /// <returns>The value if it exists, an empty object otherwise</returns>
786         public PropertyValue Find(int indexKey, string stringKey)
787         {
788             global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_3(swigCPtr, indexKey, stringKey);
789             PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
790             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
791             return ret;
792         }
793
794         /// <summary>
795         /// Finds the value for the specified key if it exists and its type is type.
796         /// </summary>
797         /// <param name="key">The key to find</param>
798         /// <param name="type">The type to check</param>
799         /// <returns>The value if it exists, an empty value otherwise</returns>
800         public PropertyValue Find(string key, PropertyType type)
801         {
802             global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_4(swigCPtr, key, (int)type);
803             PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
804             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
805             return ret;
806         }
807
808         /// <summary>
809         /// Finds the value for the specified key if it exists and its type is type.
810         /// </summary>
811         /// <param name="key">The key to find</param>
812         /// <param name="type">The type to check</param>
813         /// <returns>The value if it exists, an empty value otherwise</returns>
814         public PropertyValue Find(int key, PropertyType type)
815         {
816             global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_5(swigCPtr, key, (int)type);
817             PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
818             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
819             return ret;
820         }
821
822         /// <summary>
823         /// Clears the map.
824         /// </summary>
825         public void Clear()
826         {
827             NDalicPINVOKE.Property_Map_Clear(swigCPtr);
828             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
829         }
830
831         /// <summary>
832         /// Merges values from the map 'from' to the current.
833         /// Any values in 'from' will overwrite the values in the current map.
834         /// </summary>
835         /// <param name="from">The map to merge from</param>
836         public void Merge(PropertyMap from)
837         {
838             NDalicPINVOKE.Property_Map_Merge(swigCPtr, PropertyMap.getCPtr(from));
839             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
840         }
841
842         /// <summary>
843         /// Retrieves the element with the specified string key.
844         /// </summary>
845         /// <param name="key">The key whose value to retrieve</param>
846         /// <returns>The value for the element with the specified key</returns>
847         public PropertyValue ValueOfIndex(string key)
848         {
849             PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_0(swigCPtr, key), false);
850             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
851             return ret;
852         }
853
854         /// <summary>
855         /// Retrieves the element with the specified index key.
856         /// </summary>
857         /// <param name="key">The key whose value to retrieve</param>
858         /// <returns>The value for the element with the specified key</returns>
859         public PropertyValue ValueOfIndex(int key)
860         {
861             PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_2(swigCPtr, key), false);
862             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
863             return ret;
864         }
865
866         /// <summary>
867         /// Copy the map.
868         /// </summary>
869         /// <param name="other">The map to copy from</param>
870         /// <returns>The copied map</returns>
871         internal PropertyMap Assign(PropertyMap other)
872         {
873             PropertyMap ret = new PropertyMap(NDalicPINVOKE.Property_Map_Assign(swigCPtr, PropertyMap.getCPtr(other)), false);
874             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
875             return ret;
876         }
877
878     }
879
880     /// <summary>
881     /// A value-type representing a property value.
882     /// </summary>
883     public class PropertyValue : global::System.IDisposable
884     {
885         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
886         protected bool swigCMemOwn;
887
888         internal PropertyValue(global::System.IntPtr cPtr, bool cMemoryOwn)
889         {
890             swigCMemOwn = cMemoryOwn;
891             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
892         }
893
894         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyValue obj)
895         {
896             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
897         }
898
899         ~PropertyValue()
900         {
901             Dispose();
902         }
903
904         public virtual void Dispose()
905         {
906             lock (this)
907             {
908                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
909                 {
910                     if (swigCMemOwn)
911                     {
912                         swigCMemOwn = false;
913                         NDalicPINVOKE.delete_Property_Value(swigCPtr);
914                     }
915                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
916                 }
917                 global::System.GC.SuppressFinalize(this);
918             }
919         }
920
921
922         /// <summary>
923         /// Extension to property value class that allows us to create a
924         /// PropertyValue from a C# object, e.g. int, float, string
925         /// </summary>
926         /// <param name="obj">An object to create</param>
927         /// <returns>The created value</returns>
928         static public PropertyValue CreateFromObject(System.Object obj)
929         {
930             System.Type type = obj.GetType();
931
932             PropertyValue value;
933
934             if (type.Equals(typeof(int)))
935             {
936                 System.Console.WriteLine(" got an int property value ");
937                 value = new PropertyValue((int)obj);
938             }
939             if (type.Equals(typeof(System.Int32)))
940             {
941                 System.Console.WriteLine(" got an int property value ");
942                 value = new PropertyValue((int)obj);
943             }
944             else if (type.Equals(typeof(bool)))
945             {
946                 System.Console.WriteLine(" got an bool property value ");
947                 value = new PropertyValue((bool)obj);
948             }
949             else if (type.Equals(typeof(float)))
950             {
951                 System.Console.WriteLine(" got an float property value ");
952                 value = new PropertyValue((float)obj);
953             }
954             else if (type.Equals(typeof(string)))
955             {
956                 System.Console.WriteLine(" got a string property value ");
957                 value = new PropertyValue((string)obj);
958             }
959             else if (type.Equals(typeof(Vector2)))
960             {
961                 System.Console.WriteLine(" got an Vector2 property value ");
962                 value = new PropertyValue((Vector2)obj);
963             }
964             else if (type.Equals(typeof(Vector3)))
965             {
966                 System.Console.WriteLine(" got an Vector3 property value ");
967                 value = new PropertyValue((Vector3)obj);
968             }
969             else if (type.Equals(typeof(Vector4)))
970             {
971                 System.Console.WriteLine(" got an Vector4 property value ");
972
973                 value = new PropertyValue((Vector4)obj);
974             }
975             else if (type.Equals(typeof(Position)))
976             {
977                 System.Console.WriteLine(" got an Position property value ");
978                 value = new PropertyValue((Position)obj);
979             }
980             else if (type.Equals(typeof(Size)))
981             {
982                 System.Console.WriteLine(" got an Size property value ");
983                 value = new PropertyValue((Size)obj);
984             }
985             else if (type.Equals(typeof(Color)))
986             {
987                 System.Console.WriteLine(" got an Color property value ");
988                 value = new PropertyValue((Color)obj);
989             }
990             else
991             {
992                 throw new global::System.InvalidOperationException("Unimplemented type for Property Value");
993             }
994             return value;
995         }
996
997
998         /// <summary>
999         /// Creates a Size2D property value.
1000         /// </summary>
1001         /// <param name="vectorValue">A Size2D values</param>
1002         public PropertyValue(Size2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true)
1003         {
1004             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1005         }
1006
1007         /// <summary>
1008         /// Creates a Size property value.
1009         /// </summary>
1010         /// <param name="vectorValue">A Size values</param>
1011         public PropertyValue(Size vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true)
1012         {
1013             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1014         }
1015
1016         /// <summary>
1017         /// Creates a Position2D property value.
1018         /// </summary>
1019         /// <param name="vectorValue">A Position2D values</param>
1020         public PropertyValue(Position2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true)
1021         {
1022             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1023         }
1024
1025         /// <summary>
1026         /// Creates a Position property value.
1027         /// </summary>
1028         /// <param name="vectorValue">A Position values</param>
1029         public PropertyValue(Position vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true)
1030         {
1031             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1032         }
1033
1034         /// <summary>
1035         /// Creates a Color property value.
1036         /// </summary>
1037         /// <param name="vectorValue">A Color values</param>
1038         public PropertyValue(Color vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true)
1039         {
1040             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1041         }
1042
1043
1044         /// <summary>
1045         /// Retrieves a Size2D value.
1046         /// </summary>
1047         /// <param name="vectorValue"> On return, a Size2D value</param>
1048         public bool Get(Size2D vectorValue)
1049         {
1050             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
1051             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1052             return ret;
1053         }
1054
1055         /// <summary>
1056         /// Retrieves a Size2D value.
1057         /// </summary>
1058         /// <param name="vectorValue"> On return, a Size2D value</param>
1059         public bool Get(Size vectorValue)
1060         {
1061             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
1062             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1063             return ret;
1064         }
1065
1066         /// <summary>
1067         /// Retrieves a Position2D value.
1068         /// </summary>
1069         /// <param name="vectorValue"> On return, a Position2D value</param>
1070         public bool Get(Position2D vectorValue)
1071         {
1072             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
1073             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1074             return ret;
1075         }
1076
1077         /// <summary>
1078         /// Retrieves a Position value.
1079         /// </summary>
1080         /// <param name="vectorValue"> On return, a Position value</param>
1081         public bool Get(Position vectorValue)
1082         {
1083             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
1084             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1085             return ret;
1086         }
1087
1088         /// <summary>
1089         /// Retrieves a Color value.
1090         /// </summary>
1091         /// <param name="vectorValue"> On return, a Color value</param>
1092         public bool Get(Color vectorValue)
1093         {
1094             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
1095             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1096             return ret;
1097         }
1098
1099
1100
1101         /// <summary>
1102         /// Default constructor.
1103         /// </summary>
1104         public PropertyValue() : this(NDalicPINVOKE.new_Property_Value__SWIG_0(), true)
1105         {
1106             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1107         }
1108
1109         /// <summary>
1110         /// Creates a boolean property value.
1111         /// </summary>
1112         /// <param name="boolValue">A boolean value</param>
1113         public PropertyValue(bool boolValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_1(boolValue), true)
1114         {
1115             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1116         }
1117
1118         /// <summary>
1119         /// Creates an integer property value.
1120         /// </summary>
1121         /// <param name="integerValue">An integer value</param>
1122         public PropertyValue(int integerValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_2(integerValue), true)
1123         {
1124             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1125         }
1126
1127         /// <summary>
1128         /// Creates a float property value.
1129         /// </summary>
1130         /// <param name="floatValue">A floating-point value</param>
1131         public PropertyValue(float floatValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_3(floatValue), true)
1132         {
1133             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1134         }
1135
1136         /// <summary>
1137         /// Creates a Vector2 property value.
1138         /// </summary>
1139         /// <param name="vectorValue">A vector of 2 floating-point values</param>
1140         public PropertyValue(Vector2 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Vector2.getCPtr(vectorValue)), true)
1141         {
1142             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1143         }
1144
1145         /// <summary>
1146         /// Creates a Vector3 property value.
1147         /// </summary>
1148         /// <param name="vectorValue">A vector of 3 floating-point values</param>
1149         public PropertyValue(Vector3 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Vector3.getCPtr(vectorValue)), true)
1150         {
1151             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1152         }
1153
1154         /// <summary>
1155         /// Creates a Vector4 property value.
1156         /// </summary>
1157         /// <param name="vectorValue">A vector of 4 floating-point values</param>
1158         public PropertyValue(Vector4 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Vector4.getCPtr(vectorValue)), true)
1159         {
1160             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1161         }
1162
1163         internal PropertyValue(Matrix3 matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_7(Matrix3.getCPtr(matrixValue)), true)
1164         {
1165             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1166         }
1167
1168         internal PropertyValue(Matrix matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true)
1169         {
1170             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1171         }
1172
1173         /// <summary>
1174         /// Creates a Rectangle property value.
1175         /// </summary>
1176         /// <param name="vectorValue">A Rectangle values</param>
1177         public PropertyValue(Rectangle vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_9(Rectangle.getCPtr(vectorValue)), true)
1178         {
1179             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1180         }
1181
1182         internal PropertyValue(AngleAxis angleAxis) : this(NDalicPINVOKE.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true)
1183         {
1184             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1185         }
1186
1187         /// <summary>
1188         /// Creates a Rotation property value.
1189         /// </summary>
1190         /// <param name="quaternion">A Rotation values</param>
1191         public PropertyValue(Rotation quaternion) : this(NDalicPINVOKE.new_Property_Value__SWIG_11(Rotation.getCPtr(quaternion)), true)
1192         {
1193             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1194         }
1195
1196         /// <summary>
1197         /// Creates a string property value.
1198         /// </summary>
1199         /// <param name="stringValue">A string</param>
1200         public PropertyValue(string stringValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_12(stringValue), true)
1201         {
1202             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1203         }
1204
1205         /// <summary>
1206         /// Creates an array property value.
1207         /// </summary>
1208         /// <param name="arrayValue">An array</param>
1209         public PropertyValue(PropertyArray arrayValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_14(PropertyArray.getCPtr(arrayValue)), true)
1210         {
1211             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1212         }
1213
1214         /// <summary>
1215         /// Creates a map property value.
1216         /// </summary>
1217         /// <param name="mapValue">An array</param>
1218         public PropertyValue(PropertyMap mapValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_15(PropertyMap.getCPtr(mapValue)), true)
1219         {
1220             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1221         }
1222
1223         /// <summary>
1224         /// Creates a PropertyType value.
1225         /// </summary>
1226         /// <param name="type">A PropertyType values</param>
1227         public PropertyValue(PropertyType type) : this(NDalicPINVOKE.new_Property_Value__SWIG_16((int)type), true)
1228         {
1229             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1230         }
1231
1232         /// <summary>
1233         /// Creates a PropertyValue value.
1234         /// </summary>
1235         /// <param name="value">A PropertyValue values</param>
1236         public PropertyValue(PropertyValue value) : this(NDalicPINVOKE.new_Property_Value__SWIG_17(PropertyValue.getCPtr(value)), true)
1237         {
1238             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1239         }
1240
1241         /// <summary>
1242         /// Copy the value.
1243         /// </summary>
1244         /// <param name="value">The value to copy from</param>
1245         /// <returns>The copied value</returns>
1246         internal PropertyValue Assign(PropertyValue value)
1247         {
1248             PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Value_Assign(swigCPtr, PropertyValue.getCPtr(value)), false);
1249             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1250             return ret;
1251         }
1252
1253         /// <summary>
1254         /// Queries the type of this property value.
1255         /// </summary>
1256         /// <returns>The type ID</returns>
1257         public PropertyType GetType()
1258         {
1259             PropertyType ret = (PropertyType)NDalicPINVOKE.Property_Value_GetType(swigCPtr);
1260             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1261             return ret;
1262         }
1263
1264         /// <summary>
1265         /// Retrieves a boolean value.
1266         /// </summary>
1267         /// <param name="boolValue">On return, a boolean value</param>
1268         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1269         public bool Get(ref bool boolValue)
1270         {
1271             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_1(swigCPtr, ref boolValue);
1272             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1273             return ret;
1274         }
1275
1276         /// <summary>
1277         /// Retrieves a floating-point value.
1278         /// </summary>
1279         /// <param name="floatValue">On return, a floating-point value</param>
1280         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1281         public bool Get(ref float floatValue)
1282         {
1283             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_2(swigCPtr, ref floatValue);
1284             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1285             return ret;
1286         }
1287
1288         /// <summary>
1289         /// Retrieves a integer value.
1290         /// </summary>
1291         /// <param name="integerValue">On return, a integer value</param>
1292         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1293         public bool Get(ref int integerValue)
1294         {
1295             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_3(swigCPtr, ref integerValue);
1296             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1297             return ret;
1298         }
1299
1300         /// <summary>
1301         /// Retrieves an integer rectangle.
1302         /// </summary>
1303         /// <param name="rect">On return, an integer rectangle</param>
1304         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1305         public bool Get(Rectangle rect)
1306         {
1307             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
1308             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1309             return ret;
1310         }
1311
1312         /// <summary>
1313         /// Retrieves a vector value.
1314         /// </summary>
1315         /// <param name="vectorValue">On return, a vector value</param>
1316         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1317         public bool Get(Vector2 vectorValue)
1318         {
1319             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
1320             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1321             return ret;
1322         }
1323
1324         /// <summary>
1325         /// Retrieves a vector value.
1326         /// </summary>
1327         /// <param name="vectorValue">On return, a vector value</param>
1328         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1329         public bool Get(Vector3 vectorValue)
1330         {
1331             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
1332             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1333             return ret;
1334         }
1335
1336         /// <summary>
1337         /// Retrieves a vector value.
1338         /// </summary>
1339         /// <param name="vectorValue">On return, a vector value</param>
1340         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1341         public bool Get(Vector4 vectorValue)
1342         {
1343             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
1344             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1345             return ret;
1346         }
1347
1348         internal bool Get(Matrix3 matrixValue)
1349         {
1350             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_8(swigCPtr, Matrix3.getCPtr(matrixValue));
1351             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1352             return ret;
1353         }
1354
1355         internal bool Get(Matrix matrixValue)
1356         {
1357             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
1358             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1359             return ret;
1360         }
1361
1362         internal bool Get(AngleAxis angleAxisValue)
1363         {
1364             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
1365             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1366             return ret;
1367         }
1368
1369         /// <summary>
1370         /// Retrieves a Rotation value.
1371         /// </summary>
1372         /// <param name="quaternionValue">On return, a Rotation value</param>
1373         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1374         public bool Get(Rotation quaternionValue)
1375         {
1376             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
1377             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1378             return ret;
1379         }
1380
1381         /// <summary>
1382         /// Retrieves a string property value.
1383         /// </summary>
1384         /// <param name="stringValue">On return, a string</param>
1385         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1386         public bool Get(out string stringValue)
1387         {
1388             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
1389             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1390             return ret;
1391         }
1392
1393         /// <summary>
1394         /// Retrieves an array property value.
1395         /// </summary>
1396         /// <param name="arrayValue">On return, the array as a vector Property Values</param>
1397         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1398         public bool Get(PropertyArray arrayValue)
1399         {
1400             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_13(swigCPtr, PropertyArray.getCPtr(arrayValue));
1401             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1402             return ret;
1403         }
1404
1405         /// <summary>
1406         /// Retrieves an map property value.
1407         /// </summary>
1408         /// <param name="mapValue">On return, the map as vector of string and Property Value pairs</param>
1409         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1410         public bool Get(PropertyMap mapValue)
1411         {
1412             bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_14(swigCPtr, PropertyMap.getCPtr(mapValue));
1413             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1414             return ret;
1415         }
1416
1417         /// <summary>
1418         /// Retrieves the Array API of the Property::Value without copying the contents of the map.
1419         /// </summary>
1420         /// <returns>The Array API of the Property::Value or NULL if not a Property::Array</returns>
1421         public PropertyArray GetArray()
1422         {
1423             global::System.IntPtr cPtr = NDalicPINVOKE.Property_Value_GetArray(swigCPtr);
1424             PropertyArray ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyArray(cPtr, false);
1425             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1426             return ret;
1427         }
1428
1429         /// <summary>
1430         /// Retrieves the Map API of the Property::Value without copying the contents of the map.
1431         /// </summary>
1432         /// <returns>The Map API of the Property::Value or NULL if not a Property::Map</returns>
1433         public PropertyMap GetMap()
1434         {
1435             global::System.IntPtr cPtr = NDalicPINVOKE.Property_Value_GetMap(swigCPtr);
1436             PropertyMap ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyMap(cPtr, false);
1437             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1438             return ret;
1439         }
1440
1441     }
1442
1443     public enum PropertyType
1444     {
1445         None,
1446         Boolean,
1447         Float,
1448         Integer,
1449         Vector2,
1450         Vector3,
1451         Vector4,
1452         Matrix3,
1453         Matrix,
1454         Rectangle,
1455         Rotation,
1456         String,
1457         Array,
1458         Map
1459     }
1460
1461     public enum PropertyAccessMode
1462     {
1463         ReadOnly,
1464         ReadWrite,
1465         Animatable,
1466         AccessModeCount
1467     }
1468
1469 }