1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
22 internal class Property : global::System.IDisposable
24 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
25 protected bool swigCMemOwn;
27 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
29 swigCMemOwn = cMemoryOwn;
30 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
33 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
35 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38 //A Flag to check who called Dispose(). (By User or DisposeQueue)
39 private bool isDisposeQueued = false;
40 //A Flat to check if it is already disposed.
41 protected bool disposed = false;
47 isDisposeQueued = true;
48 DisposeQueue.Instance.Add(this);
54 //Throw excpetion if Dispose() is called in separate thread.
55 if (!Window.IsInstalled())
57 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
62 Dispose(DisposeTypes.Implicit);
66 Dispose(DisposeTypes.Explicit);
67 System.GC.SuppressFinalize(this);
71 protected virtual void Dispose(DisposeTypes type)
78 if(type == DisposeTypes.Explicit)
81 //Release your own managed resources here.
82 //You should release all of your own disposable objects here.
85 //Release your own unmanaged resources here.
86 //You should not access any managed member here except static instance.
87 //because the execution order of Finalizes is non-deterministic.
89 if (swigCPtr.Handle != global::System.IntPtr.Zero)
94 NDalicPINVOKE.delete_Property(swigCPtr);
96 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
102 internal static int INVALID_INDEX
106 int ret = NDalicPINVOKE.Property_INVALID_INDEX_get();
107 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
112 internal static int INVALID_KEY
116 int ret = NDalicPINVOKE.Property_INVALID_KEY_get();
117 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122 internal static int INVALID_COMPONENT_INDEX
126 int ret = NDalicPINVOKE.Property_INVALID_COMPONENT_INDEX_get();
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133 /// Constructor. Create a Property instance.
135 /// <param name="arg0">A valid handle to the target object</param>
136 /// <param name="propertyIndex">The index of a property</param>
137 public Property(Animatable arg0, int propertyIndex) : this(NDalicPINVOKE.new_Property__SWIG_0(Animatable.getCPtr(arg0), propertyIndex), true)
139 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
143 /// Constructor. Create a Property instance.
145 /// <param name="arg0">A valid handle to the target object</param>
146 /// <param name="propertyIndex">The index of a property</param>
147 /// <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>
148 public Property(Animatable arg0, int propertyIndex, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_1(Animatable.getCPtr(arg0), propertyIndex, componentIndex), true)
150 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
154 /// Constructor. Create a Property instance.<br>
155 /// This performs a property index query and is therefore slower than constructing a Property directly with the index.<br>
157 /// <param name="arg0">A valid handle to the target object</param>
158 /// <param name="propertyName">The property name</param>
159 public Property(Animatable arg0, string propertyName) : this(NDalicPINVOKE.new_Property__SWIG_2(Animatable.getCPtr(arg0), propertyName), true)
161 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
165 /// Constructor. Create a Property instance.<br>
166 /// This performs a property index query and is therefore slower than constructing a Property directly with the index.<br>
168 /// <param name="arg0">A valid handle to the target object</param>
169 /// <param name="propertyName">The property name</param>
170 /// <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>
171 public Property(Animatable arg0, string propertyName, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_3(Animatable.getCPtr(arg0), propertyName, componentIndex), true)
173 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
176 internal Animatable _object
180 NDalicPINVOKE.Property__object_set(swigCPtr, Animatable.getCPtr(value));
181 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
185 Animatable ret = new Animatable(NDalicPINVOKE.Property__object_get(swigCPtr), false);
186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192 /// Gets/Sets the index of the property.
194 public int propertyIndex
198 NDalicPINVOKE.Property_propertyIndex_set(swigCPtr, value);
199 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
203 int ret = NDalicPINVOKE.Property_propertyIndex_get(swigCPtr);
204 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
210 /// Gets/Sets the componentIndex of the property.
212 public int componentIndex
216 NDalicPINVOKE.Property_componentIndex_set(swigCPtr, value);
217 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221 int ret = NDalicPINVOKE.Property_componentIndex_get(swigCPtr);
222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
230 /// A Array of property values.
232 public class PropertyArray : global::System.IDisposable
234 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
235 protected bool swigCMemOwn;
237 internal PropertyArray(global::System.IntPtr cPtr, bool cMemoryOwn)
239 swigCMemOwn = cMemoryOwn;
240 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
243 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyArray obj)
245 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
248 //A Flag to check who called Dispose(). (By User or DisposeQueue)
249 private bool isDisposeQueued = false;
250 //A Flat to check if it is already disposed.
251 protected bool disposed = false;
257 isDisposeQueued = true;
258 DisposeQueue.Instance.Add(this);
262 public void Dispose()
264 //Throw excpetion if Dispose() is called in separate thread.
265 if (!Window.IsInstalled())
267 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
272 Dispose(DisposeTypes.Implicit);
276 Dispose(DisposeTypes.Explicit);
277 System.GC.SuppressFinalize(this);
281 protected virtual void Dispose(DisposeTypes type)
288 if(type == DisposeTypes.Explicit)
291 //Release your own managed resources here.
292 //You should release all of your own disposable objects here.
295 //Release your own unmanaged resources here.
296 //You should not access any managed member here except static instance.
297 //because the execution order of Finalizes is non-deterministic.
299 if (swigCPtr.Handle != global::System.IntPtr.Zero)
304 NDalicPINVOKE.delete_Property_Array(swigCPtr);
306 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
312 /// Operator to access an element.
314 /// <param name="index">The element index to access. No bounds checking is performed</param>
315 /// <returns>The a reference to the element</returns>
316 public PropertyValue this[uint index]
320 return ValueOfIndex(index);
327 public PropertyArray() : this(NDalicPINVOKE.new_Property_Array__SWIG_0(), true)
329 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
332 internal PropertyArray(PropertyArray other) : this(NDalicPINVOKE.new_Property_Array__SWIG_1(PropertyArray.getCPtr(other)), true)
334 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
338 /// Retrieves the number of elements in the array.
340 /// <returns>The number of elements in the array</returns>
343 uint ret = NDalicPINVOKE.Property_Array_Size(swigCPtr);
344 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
349 /// Retrieves the number of elements in the array.
351 /// <returns>The number of elements in the array</returns>
354 uint ret = NDalicPINVOKE.Property_Array_Count(swigCPtr);
355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 /// Returns whether the array is empty.
362 /// <returns>Return true if empty, false otherwise</returns>
365 bool ret = NDalicPINVOKE.Property_Array_Empty(swigCPtr);
366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
371 /// Clears the array.
375 NDalicPINVOKE.Property_Array_Clear(swigCPtr);
376 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
380 /// Increases the capacity of the array.
382 /// <param name="size">The size to reserve</param>
383 public void Reserve(uint size)
385 NDalicPINVOKE.Property_Array_Reserve(swigCPtr, size);
386 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392 /// <param name="size">The size to resize</param>
393 public void Resize(uint size)
395 NDalicPINVOKE.Property_Array_Resize(swigCPtr, size);
396 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
400 /// Retrieves the capacity of the array.
402 /// <returns>The allocated capacity of the array</returns>
403 public uint Capacity()
405 uint ret = NDalicPINVOKE.Property_Array_Capacity(swigCPtr);
406 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
411 /// Adds an element to the array.
413 /// <param name="value">The value to add to the end of the array</param>
414 public void PushBack(PropertyValue value)
416 NDalicPINVOKE.Property_Array_PushBack(swigCPtr, PropertyValue.getCPtr(value));
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 /// Add an element to the array.
423 /// <param name="value">The value to add to the end of the array</param>
424 public PropertyArray Add(PropertyValue value)
426 PropertyArray ret = new PropertyArray(NDalicPINVOKE.Property_Array_Add(swigCPtr, PropertyValue.getCPtr(value)), false);
427 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432 /// Access an element.
434 /// <param name="index">The element index to access. No bounds checking is performed</param>
435 /// <returns>The a reference to the element</returns>
436 public PropertyValue GetElementAt(uint index)
438 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_GetElementAt__SWIG_0(swigCPtr, index), false);
439 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444 /// Retrieves the value of elements in the array.
446 /// <param name="index">The element index to retrieve.</param>
447 /// <returns>The a reference to the element</returns>
448 private PropertyValue ValueOfIndex(uint index)
450 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_ValueOfIndex__SWIG_0(swigCPtr, index), false);
451 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457 /// A key type which can be either a std::string or a Property::Index
459 public class PropertyKey : global::System.IDisposable
461 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
462 protected bool swigCMemOwn;
464 internal PropertyKey(global::System.IntPtr cPtr, bool cMemoryOwn)
466 swigCMemOwn = cMemoryOwn;
467 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
470 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyKey obj)
472 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
475 //A Flag to check who called Dispose(). (By User or DisposeQueue)
476 private bool isDisposeQueued = false;
477 //A Flat to check if it is already disposed.
478 protected bool disposed = false;
484 isDisposeQueued = true;
485 DisposeQueue.Instance.Add(this);
489 public void Dispose()
491 //Throw excpetion if Dispose() is called in separate thread.
492 if (!Window.IsInstalled())
494 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
499 Dispose(DisposeTypes.Implicit);
503 Dispose(DisposeTypes.Explicit);
504 System.GC.SuppressFinalize(this);
508 protected virtual void Dispose(DisposeTypes type)
515 if(type == DisposeTypes.Explicit)
518 //Release your own managed resources here.
519 //You should release all of your own disposable objects here.
522 //Release your own unmanaged resources here.
523 //You should not access any managed member here except static instance.
524 //because the execution order of Finalizes is non-deterministic.
526 if (swigCPtr.Handle != global::System.IntPtr.Zero)
531 NDalicPINVOKE.delete_Property_Key(swigCPtr);
533 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
539 /// The type of the key
541 public PropertyKey.KeyType Type
545 NDalicPINVOKE.Property_Key_type_set(swigCPtr, (int)value);
546 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
550 PropertyKey.KeyType ret = (PropertyKey.KeyType)NDalicPINVOKE.Property_Key_type_get(swigCPtr);
551 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563 NDalicPINVOKE.Property_Key_indexKey_set(swigCPtr, value);
564 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
568 int ret = NDalicPINVOKE.Property_Key_indexKey_get(swigCPtr);
569 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
577 public string StringKey
581 NDalicPINVOKE.Property_Key_stringKey_set(swigCPtr, value);
582 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
586 string ret = NDalicPINVOKE.Property_Key_stringKey_get(swigCPtr);
587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
595 /// <param name="key">The string key</param>
596 public PropertyKey(string key) : this(NDalicPINVOKE.new_Property_Key__SWIG_0(key), true)
598 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
604 /// <param name="key">The index key</param>
605 public PropertyKey(int key) : this(NDalicPINVOKE.new_Property_Key__SWIG_1(key), true)
607 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
611 /// Compare if rhs is equal to
613 /// <param name="rhs">A string key to compare against</param>
614 /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type</returns>
615 public bool EqualTo(string rhs)
617 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_0(swigCPtr, rhs);
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
623 /// Compare if rhs is equal to
625 /// <param name="rhs">A index key to compare against</param>
626 /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type</returns>
627 public bool EqualTo(int rhs)
629 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_1(swigCPtr, rhs);
630 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
635 /// Compare if rhs is equal to
637 /// <param name="rhs">A key to compare against</param>
638 /// <returns>Returns true if the keys are of the same type and have the same value</returns>
639 public bool EqualTo(PropertyKey rhs)
641 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
642 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
647 /// Compare if rhs is not equal to
649 /// <param name="rhs">An index key to compare against.</param>
650 /// <returns>Returns true if the key is not equal or not a string key</returns>
651 public bool NotEqualTo(string rhs)
653 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_0(swigCPtr, rhs);
654 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
659 /// Compare if rhs is not equal to
661 /// <param name="rhs">An index key to compare against.</param>
662 /// <returns>Returns true if the key is not equal, or not an index key</returns>
663 public bool NotEqualTo(int rhs)
665 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_1(swigCPtr, rhs);
666 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
671 /// Compare if rhs is not equal to
673 /// <param name="rhs">A key to compare against.</param>
674 /// <returns>Returns true if the keys are not of the same type or are not equal</returns>
675 public bool NotEqualTo(PropertyKey rhs)
677 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
678 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
694 /// A Map of property values, the key type could be String or Property::Index.
696 public class PropertyMap : global::System.IDisposable
698 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
699 protected bool swigCMemOwn;
701 internal PropertyMap(global::System.IntPtr cPtr, bool cMemoryOwn)
703 swigCMemOwn = cMemoryOwn;
704 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
707 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyMap obj)
709 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
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;
721 isDisposeQueued = true;
722 DisposeQueue.Instance.Add(this);
726 public void Dispose()
728 //Throw excpetion if Dispose() is called in separate thread.
729 if (!Window.IsInstalled())
731 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
736 Dispose(DisposeTypes.Implicit);
740 Dispose(DisposeTypes.Explicit);
741 System.GC.SuppressFinalize(this);
745 protected virtual void Dispose(DisposeTypes type)
752 if(type == DisposeTypes.Explicit)
755 //Release your own managed resources here.
756 //You should release all of your own disposable objects here.
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.
763 if (swigCPtr.Handle != global::System.IntPtr.Zero)
768 NDalicPINVOKE.delete_Property_Map(swigCPtr);
770 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
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>
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]
785 return ValueOfIndex(key);
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>
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]
799 return ValueOfIndex(key);
806 public PropertyMap() : this(NDalicPINVOKE.new_Property_Map__SWIG_0(), true)
808 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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)
817 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
821 /// Retrieves the number of elements in the map.
823 /// <returns>The number of elements in the map</returns>
826 uint ret = NDalicPINVOKE.Property_Map_Count(swigCPtr);
827 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
832 /// Returns whether the map is empty.
834 /// <returns>Returns true if empty, false otherwise</returns>
837 bool ret = NDalicPINVOKE.Property_Map_Empty(swigCPtr);
838 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
843 /// Inserts the key-value pair in the Map, with the key type as string.<br>
844 /// Does not check for duplicates.<br>
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)
850 NDalicPINVOKE.Property_Map_Insert__SWIG_0(swigCPtr, key, PropertyValue.getCPtr(value));
851 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
855 /// Inserts the key-value pair in the Map, with the key type as index.<br>
856 /// Does not check for duplicates.<br>
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)
862 NDalicPINVOKE.Property_Map_Insert__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value));
863 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
867 /// Inserts the key-value pair in the Map, with the key type as string.<br>
868 /// Does not check for duplicates.<br>
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)
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();
881 /// Inserts the key-value pair in the Map, with the key type as string.<br>
882 /// Does not check for duplicates.<br>
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)
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();
895 /// Retrieves the value at the specified position.
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)
901 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_GetValue(swigCPtr, position), false);
902 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
906 [Obsolete("Please do not use! this will be deprecated")]
907 public string GetKey(uint position)
909 string ret = NDalicPINVOKE.Property_Map_GetKey(swigCPtr, position);
910 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
915 /// Retrieve the key at the specified position.
917 /// <param name="position">The specified position</param>
918 /// <returns>A copy of the key at the specified position</returns>
919 public PropertyKey GetKeyAt(uint position)
921 PropertyKey ret = new PropertyKey(NDalicPINVOKE.Property_Map_GetKeyAt(swigCPtr, position), true);
922 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
926 [Obsolete("Please do not use! this will be deprecated")]
927 public PropertyValue Find(string key)
929 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_0(swigCPtr, key);
930 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
931 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
936 /// Finds the value for the specified key if it exists.
938 /// <param name="key">The key to find</param>
939 /// <returns>The value if it exists, an empty object otherwise</returns>
940 public PropertyValue Find(int key)
942 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_2(swigCPtr, key);
943 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
944 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
949 /// Finds the value for the specified keys if either exist.
951 /// <param name="indexKey">The index key to find</param>
952 /// <param name="stringKey">The string key to find</param>
953 /// <returns>The value if it exists, an empty object otherwise</returns>
954 public PropertyValue Find(int indexKey, string stringKey)
956 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_3(swigCPtr, indexKey, stringKey);
957 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
958 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
962 [Obsolete("Please do not use! this will be deprecated")]
963 public PropertyValue Find(string key, PropertyType type)
965 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_4(swigCPtr, key, (int)type);
966 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
967 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
971 [Obsolete("Please do not use! this will be deprecated")]
972 public PropertyValue Find(int key, PropertyType type)
974 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_5(swigCPtr, key, (int)type);
975 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
976 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
985 NDalicPINVOKE.Property_Map_Clear(swigCPtr);
986 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
990 /// Merges values from the map 'from' to the current.<br>
991 /// Any values in 'from' will overwrite the values in the current map.<br>
993 /// <param name="from">The map to merge from</param>
994 public void Merge(PropertyMap from)
996 NDalicPINVOKE.Property_Map_Merge(swigCPtr, PropertyMap.getCPtr(from));
997 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1001 /// Retrieves the element with the specified string key.
1003 /// <param name="key">The key whose value to retrieve</param>
1004 /// <returns>The value for the element with the specified key</returns>
1005 internal PropertyValue ValueOfIndex(string key)
1007 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_0(swigCPtr, key), false);
1008 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1013 /// Retrieves the element with the specified index key.
1015 /// <param name="key">The key whose value to retrieve</param>
1016 /// <returns>The value for the element with the specified key</returns>
1017 internal PropertyValue ValueOfIndex(int key)
1019 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_2(swigCPtr, key), false);
1020 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1026 /// A value-type representing a property value.
1028 public class PropertyValue : global::System.IDisposable
1030 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1031 protected bool swigCMemOwn;
1033 internal PropertyValue(global::System.IntPtr cPtr, bool cMemoryOwn)
1035 swigCMemOwn = cMemoryOwn;
1036 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1039 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyValue obj)
1041 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1044 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1045 private bool isDisposeQueued = false;
1046 //A Flat to check if it is already disposed.
1047 protected bool disposed = false;
1051 if(!isDisposeQueued)
1053 isDisposeQueued = true;
1054 DisposeQueue.Instance.Add(this);
1058 public void Dispose()
1060 //Throw excpetion if Dispose() is called in separate thread.
1061 if (!Window.IsInstalled())
1063 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1066 if (isDisposeQueued)
1068 Dispose(DisposeTypes.Implicit);
1072 Dispose(DisposeTypes.Explicit);
1073 System.GC.SuppressFinalize(this);
1077 protected virtual void Dispose(DisposeTypes type)
1084 if(type == DisposeTypes.Explicit)
1087 //Release your own managed resources here.
1088 //You should release all of your own disposable objects here.
1091 //Release your own unmanaged resources here.
1092 //You should not access any managed member here except static instance.
1093 //because the execution order of Finalizes is non-deterministic.
1095 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1099 swigCMemOwn = false;
1100 NDalicPINVOKE.delete_Property_Value(swigCPtr);
1102 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1109 /// Extension to property value class that allows us to create a
1110 /// PropertyValue from a C# object, e.g. int, float, string.<br>
1112 /// <param name="obj">An object to create</param>
1113 /// <returns>The created value</returns>
1114 static public PropertyValue CreateFromObject(System.Object obj)
1116 System.Type type = obj.GetType();
1118 PropertyValue value;
1120 if (type.Equals(typeof(int)))
1122 value = new PropertyValue((int)obj);
1124 if (type.Equals(typeof(System.Int32)))
1126 value = new PropertyValue((int)obj);
1128 else if (type.Equals(typeof(bool)))
1130 value = new PropertyValue((bool)obj);
1132 else if (type.Equals(typeof(float)))
1134 value = new PropertyValue((float)obj);
1136 else if (type.Equals(typeof(string)))
1138 value = new PropertyValue((string)obj);
1140 else if (type.Equals(typeof(Vector2)))
1142 value = new PropertyValue((Vector2)obj);
1144 else if (type.Equals(typeof(Vector3)))
1146 value = new PropertyValue((Vector3)obj);
1148 else if (type.Equals(typeof(Vector4)))
1150 value = new PropertyValue((Vector4)obj);
1152 else if (type.Equals(typeof(Position)))
1154 value = new PropertyValue((Position)obj);
1156 else if (type.Equals(typeof(Position2D)))
1158 value = new PropertyValue((Position2D)obj);
1160 else if (type.Equals(typeof(Size)))
1162 value = new PropertyValue((Size)obj);
1164 else if (type.Equals(typeof(Size2D)))
1166 value = new PropertyValue((Size2D)obj);
1168 else if (type.Equals(typeof(Color)))
1170 value = new PropertyValue((Color)obj);
1172 else if (type.Equals(typeof(Rotation)))
1174 value = new PropertyValue((Rotation)obj);
1176 else if (type.Equals(typeof(RelativeVector2)))
1178 value = new PropertyValue((RelativeVector2)obj);
1180 else if (type.Equals(typeof(RelativeVector3)))
1182 value = new PropertyValue((RelativeVector3)obj);
1184 else if (type.Equals(typeof(RelativeVector4)))
1186 value = new PropertyValue((RelativeVector4)obj);
1190 throw new global::System.InvalidOperationException("Unimplemented type for Property Value :" + type.Name);
1192 NUILog.Debug(" got an property value of =" + type.Name);
1197 /// Creates a Size2D property value.
1199 /// <param name="vectorValue">A Size2D values</param>
1200 public PropertyValue(Size2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true)
1202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1206 /// Creates a Position2D property value.
1208 /// <param name="vectorValue">A Position2D values</param>
1209 public PropertyValue(Position2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true)
1211 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1215 /// Creates a Size property value.
1217 /// <param name="vectorValue">A Size values</param>
1218 internal PropertyValue(Size vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true)
1220 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1224 /// Creates a Position property value.
1226 /// <param name="vectorValue">A Position values</param>
1227 public PropertyValue(Position vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true)
1229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1233 /// Creates a Color property value.
1235 /// <param name="vectorValue">A Color values</param>
1236 public PropertyValue(Color vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true)
1238 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1243 /// Retrieves a Size2D value.
1245 /// <param name="vectorValue"> On return, a Size2D value</param>
1246 public bool Get(Size2D vectorValue)
1248 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
1249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1254 /// Retrieves a Position2D value.
1256 /// <param name="vectorValue"> On return, a Position2D value</param>
1257 public bool Get(Position2D vectorValue)
1259 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
1260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1265 /// Retrieves a Size value.
1267 /// <param name="vectorValue"> On return, a Size value</param>
1268 internal bool Get(Size vectorValue)
1270 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
1271 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1276 /// Retrieves a Position value.
1278 /// <param name="vectorValue"> On return, a Position value</param>
1279 public bool Get(Position vectorValue)
1281 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
1282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1287 /// Retrieves a Color value.
1289 /// <param name="vectorValue"> On return, a Color value</param>
1290 public bool Get(Color vectorValue)
1292 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
1293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1300 /// Default constructor.
1302 public PropertyValue() : this(NDalicPINVOKE.new_Property_Value__SWIG_0(), true)
1304 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1308 /// Creates a boolean property value.
1310 /// <param name="boolValue">A boolean value</param>
1311 public PropertyValue(bool boolValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_1(boolValue), true)
1313 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1317 /// Creates an integer property value.
1319 /// <param name="integerValue">An integer value</param>
1320 public PropertyValue(int integerValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_2(integerValue), true)
1322 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1326 /// Creates a float property value.
1328 /// <param name="floatValue">A floating-point value</param>
1329 public PropertyValue(float floatValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_3(floatValue), true)
1331 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1335 /// Creates a Vector2 property value.
1337 /// <param name="vectorValue">A vector of 2 floating-point values</param>
1338 public PropertyValue(Vector2 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Vector2.getCPtr(vectorValue)), true)
1340 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1344 /// Creates a Vector3 property value.
1346 /// <param name="vectorValue">A vector of 3 floating-point values</param>
1347 public PropertyValue(Vector3 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Vector3.getCPtr(vectorValue)), true)
1349 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1353 /// Creates a Vector4 property value.
1355 /// <param name="vectorValue">A vector of 4 floating-point values</param>
1356 public PropertyValue(Vector4 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Vector4.getCPtr(vectorValue)), true)
1358 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1361 internal PropertyValue(Matrix3 matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_7(Matrix3.getCPtr(matrixValue)), true)
1363 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1366 internal PropertyValue(Matrix matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true)
1368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1372 /// Creates a Rectangle property value.
1374 /// <param name="vectorValue">A Rectangle values</param>
1375 public PropertyValue(Rectangle vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_9(Rectangle.getCPtr(vectorValue)), true)
1377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1380 internal PropertyValue(AngleAxis angleAxis) : this(NDalicPINVOKE.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true)
1382 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1386 /// Creates a Rotation property value.
1388 /// <param name="quaternion">A Rotation values</param>
1389 public PropertyValue(Rotation quaternion) : this(NDalicPINVOKE.new_Property_Value__SWIG_11(Rotation.getCPtr(quaternion)), true)
1391 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1395 /// Creates a string property value.
1397 /// <param name="stringValue">A string</param>
1398 public PropertyValue(string stringValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_12(stringValue), true)
1400 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1404 /// Creates an array property value.
1406 /// <param name="arrayValue">An array</param>
1407 public PropertyValue(PropertyArray arrayValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_14(PropertyArray.getCPtr(arrayValue)), true)
1409 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1413 /// Creates a map property value.
1415 /// <param name="mapValue">An array</param>
1416 public PropertyValue(PropertyMap mapValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_15(PropertyMap.getCPtr(mapValue)), true)
1418 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1422 /// Creates a PropertyType value.
1424 /// <param name="type">A PropertyType values</param>
1425 public PropertyValue(PropertyType type) : this(NDalicPINVOKE.new_Property_Value__SWIG_16((int)type), true)
1427 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1431 /// Creates a PropertyValue value.
1433 /// <param name="value">A PropertyValue values</param>
1434 public PropertyValue(PropertyValue value) : this(NDalicPINVOKE.new_Property_Value__SWIG_17(PropertyValue.getCPtr(value)), true)
1436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1440 /// Queries the type of this property value.
1442 /// <returns>The type ID</returns>
1443 public PropertyType GetType()
1445 PropertyType ret = (PropertyType)NDalicPINVOKE.Property_Value_GetType(swigCPtr);
1446 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1451 /// Retrieves a boolean value.
1453 /// <param name="boolValue">On return, a boolean value</param>
1454 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1455 public bool Get(out bool boolValue)
1457 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_1(swigCPtr, out boolValue);
1458 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1463 /// Retrieves a floating-point value.
1465 /// <param name="floatValue">On return, a floating-point value</param>
1466 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1467 public bool Get(out float floatValue)
1469 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_2(swigCPtr, out floatValue);
1470 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1475 /// Retrieves a integer value.
1477 /// <param name="integerValue">On return, a integer value</param>
1478 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1479 public bool Get(out int integerValue)
1481 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_3(swigCPtr, out integerValue);
1482 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1487 /// Retrieves an integer rectangle.
1489 /// <param name="rect">On return, an integer rectangle</param>
1490 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1491 public bool Get(Rectangle rect)
1493 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
1494 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1499 /// Retrieves a vector value.
1501 /// <param name="vectorValue">On return, a vector value</param>
1502 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1503 public bool Get(Vector2 vectorValue)
1505 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
1506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1511 /// Retrieves a vector value.
1513 /// <param name="vectorValue">On return, a vector value</param>
1514 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1515 public bool Get(Vector3 vectorValue)
1517 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
1518 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1523 /// Retrieves a vector value.
1525 /// <param name="vectorValue">On return, a vector value</param>
1526 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1527 public bool Get(Vector4 vectorValue)
1529 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
1530 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1534 internal bool Get(Matrix3 matrixValue)
1536 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_8(swigCPtr, Matrix3.getCPtr(matrixValue));
1537 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1541 internal bool Get(Matrix matrixValue)
1543 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
1544 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1548 internal bool Get(AngleAxis angleAxisValue)
1550 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
1551 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1556 /// Retrieves a Rotation value.
1558 /// <param name="quaternionValue">On return, a Rotation value</param>
1559 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1560 public bool Get(Rotation quaternionValue)
1562 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
1563 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1568 /// Retrieves a string property value.
1570 /// <param name="stringValue">On return, a string</param>
1571 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1572 public bool Get(out string stringValue)
1574 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
1575 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1580 /// Retrieves an array property value.
1582 /// <param name="arrayValue">On return, the array as a vector Property Values</param>
1583 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1584 public bool Get(PropertyArray arrayValue)
1586 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_13(swigCPtr, PropertyArray.getCPtr(arrayValue));
1587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1592 /// Retrieves an map property value.
1594 /// <param name="mapValue">On return, the map as vector of string and Property Value pairs</param>
1595 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible</returns>
1596 public bool Get(PropertyMap mapValue)
1598 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_14(swigCPtr, PropertyMap.getCPtr(mapValue));
1599 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();