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