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