2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 using System.ComponentModel;
24 internal class Property : global::System.IDisposable
26 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
30 /// <since_tizen> 3 </since_tizen>
31 protected bool swigCMemOwn;
33 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
35 swigCMemOwn = cMemoryOwn;
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
39 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
41 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
44 //A Flag to check who called Dispose(). (By User or DisposeQueue)
45 private bool isDisposeQueued = false;
47 /// <since_tizen> 3 </since_tizen>
48 /// A Flat to check if it is already disposed.
50 protected bool disposed = false;
56 isDisposeQueued = true;
57 DisposeQueue.Instance.Add(this);
63 //Throw excpetion if Dispose() is called in separate thread.
64 if (!Window.IsInstalled())
66 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
71 Dispose(DisposeTypes.Implicit);
75 Dispose(DisposeTypes.Explicit);
76 System.GC.SuppressFinalize(this);
80 protected virtual void Dispose(DisposeTypes type)
87 if(type == DisposeTypes.Explicit)
90 //Release your own managed resources here.
91 //You should release all of your own disposable objects here.
94 //Release your own unmanaged resources here.
95 //You should not access any managed member here except static instance.
96 //because the execution order of Finalizes is non-deterministic.
98 if (swigCPtr.Handle != global::System.IntPtr.Zero)
103 NDalicPINVOKE.delete_Property(swigCPtr);
105 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
111 internal static int INVALID_INDEX
115 int ret = NDalicPINVOKE.Property_INVALID_INDEX_get();
116 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121 internal static int INVALID_KEY
125 int ret = NDalicPINVOKE.Property_INVALID_KEY_get();
126 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131 internal static int INVALID_COMPONENT_INDEX
135 int ret = NDalicPINVOKE.Property_INVALID_COMPONENT_INDEX_get();
136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142 /// This constructor creates a property instance.
144 /// <param name="arg0">A valid handle to the target object.</param>
145 /// <param name="propertyIndex">The index of a property.</param>
146 /// <since_tizen> 3 </since_tizen>
147 public Property(Animatable arg0, int propertyIndex) : this(NDalicPINVOKE.new_Property__SWIG_0(Animatable.getCPtr(arg0), propertyIndex), true)
149 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153 /// This constructor creates a property instance.
155 /// <param name="arg0">A valid handle to the target object.</param>
156 /// <param name="propertyIndex">The index of a property.</param>
157 /// <param name="componentIndex">Index to a sub component of a property, for use with Vector2, Vector3 and Vector4. -1 for the main property (default is -1).</param>
158 /// <since_tizen> 3 </since_tizen>
159 public Property(Animatable arg0, int propertyIndex, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_1(Animatable.getCPtr(arg0), propertyIndex, componentIndex), true)
161 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
165 /// This constructor creates 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 /// <since_tizen> 3 </since_tizen>
171 public Property(Animatable arg0, string propertyName) : this(NDalicPINVOKE.new_Property__SWIG_2(Animatable.getCPtr(arg0), propertyName), true)
173 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
177 /// This constructor creates a property instance.<br />
178 /// This performs a property index query and is therefore slower than constructing a property directly with the index.<br />
180 /// <param name="arg0">A valid handle to the target object.</param>
181 /// <param name="propertyName">The property name.</param>
182 /// <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>
183 /// <since_tizen> 3 </since_tizen>
184 public Property(Animatable arg0, string propertyName, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_3(Animatable.getCPtr(arg0), propertyName, componentIndex), true)
186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
189 internal Animatable _object
193 NDalicPINVOKE.Property__object_set(swigCPtr, Animatable.getCPtr(value));
194 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
198 Animatable ret = new Animatable(NDalicPINVOKE.Property__object_get(swigCPtr), false);
199 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
205 /// Gets or sets the index of the property.
207 /// <since_tizen> 3 </since_tizen>
208 public int propertyIndex
212 NDalicPINVOKE.Property_propertyIndex_set(swigCPtr, value);
213 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
217 int ret = NDalicPINVOKE.Property_propertyIndex_get(swigCPtr);
218 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
224 /// Gets or sets the component index of the property.
226 /// <since_tizen> 3 </since_tizen>
227 public int componentIndex
231 NDalicPINVOKE.Property_componentIndex_set(swigCPtr, value);
232 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 int ret = NDalicPINVOKE.Property_componentIndex_get(swigCPtr);
237 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
245 /// An array of property values.
247 /// <since_tizen> 3 </since_tizen>
248 public class PropertyArray : global::System.IDisposable
250 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
254 /// <since_tizen> 3 </since_tizen>
255 protected bool swigCMemOwn;
257 internal PropertyArray(global::System.IntPtr cPtr, bool cMemoryOwn)
259 swigCMemOwn = cMemoryOwn;
260 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
263 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyArray obj)
265 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
268 //A Flag to check who called Dispose(). (By User or DisposeQueue)
269 private bool isDisposeQueued = false;
271 /// A Flat to check if it is already disposed.
273 /// <since_tizen> 3 </since_tizen>
274 protected bool disposed = false;
279 /// <since_tizen> 3 </since_tizen>
284 isDisposeQueued = true;
285 DisposeQueue.Instance.Add(this);
292 /// <since_tizen> 3 </since_tizen>
293 public void Dispose()
295 //Throw excpetion if Dispose() is called in separate thread.
296 if (!Window.IsInstalled())
298 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
303 Dispose(DisposeTypes.Implicit);
307 Dispose(DisposeTypes.Explicit);
308 System.GC.SuppressFinalize(this);
315 /// <since_tizen> 3 </since_tizen>
316 protected virtual void Dispose(DisposeTypes type)
323 if(type == DisposeTypes.Explicit)
326 //Release your own managed resources here.
327 //You should release all of your own disposable objects here.
330 //Release your own unmanaged resources here.
331 //You should not access any managed member here except static instance.
332 //because the execution order of Finalizes is non-deterministic.
334 if (swigCPtr.Handle != global::System.IntPtr.Zero)
339 NDalicPINVOKE.delete_Property_Array(swigCPtr);
341 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
347 /// The operator to access an element.
349 /// <param name="index">The element index to access. No bounds checking is performed.</param>
350 /// <returns>The reference to the element.</returns>
351 /// <since_tizen> 3 </since_tizen>
352 public PropertyValue this[uint index]
356 return ValueOfIndex(index);
363 /// <since_tizen> 3 </since_tizen>
364 public PropertyArray() : this(NDalicPINVOKE.new_Property_Array__SWIG_0(), true)
366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369 internal PropertyArray(PropertyArray other) : this(NDalicPINVOKE.new_Property_Array__SWIG_1(PropertyArray.getCPtr(other)), true)
371 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
375 /// Retrieves the number of elements in the array.
377 /// <returns>The number of elements in the array.</returns>
378 /// <since_tizen> 3 </since_tizen>
381 uint ret = NDalicPINVOKE.Property_Array_Size(swigCPtr);
382 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
387 /// Retrieves the number of elements in the array.
389 /// <returns>The number of elements in the array.</returns>
390 /// <since_tizen> 3 </since_tizen>
393 uint ret = NDalicPINVOKE.Property_Array_Count(swigCPtr);
394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399 /// Returns whether the array is empty.
401 /// <returns>Returns true if empty, false otherwise.</returns>
402 /// <since_tizen> 3 </since_tizen>
405 bool ret = NDalicPINVOKE.Property_Array_Empty(swigCPtr);
406 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
411 /// Clears the array.
413 /// <since_tizen> 3 </since_tizen>
416 NDalicPINVOKE.Property_Array_Clear(swigCPtr);
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 /// Increases the capacity of the array.
423 /// <param name="size">The size to reserve.</param>
424 /// <since_tizen> 3 </since_tizen>
425 public void Reserve(uint size)
427 NDalicPINVOKE.Property_Array_Reserve(swigCPtr, size);
428 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
434 /// <param name="size">The size to resize</param>
435 /// <since_tizen> 3 </since_tizen>
436 public void Resize(uint size)
438 NDalicPINVOKE.Property_Array_Resize(swigCPtr, size);
439 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
443 /// Retrieves the capacity of the array.
445 /// <returns>The allocated capacity of the array.</returns>
446 /// <since_tizen> 3 </since_tizen>
447 public uint Capacity()
449 uint ret = NDalicPINVOKE.Property_Array_Capacity(swigCPtr);
450 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
455 /// Adds an element to the array.
457 /// <param name="value">The value to add at the end of the array.</param>
458 /// <since_tizen> 3 </since_tizen>
459 public void PushBack(PropertyValue value)
461 NDalicPINVOKE.Property_Array_PushBack(swigCPtr, PropertyValue.getCPtr(value));
462 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
466 /// Adds an element to the array.
468 /// <param name="value">The value to add at the end of the array.</param>
469 /// <since_tizen> 3 </since_tizen>
470 public PropertyArray Add(PropertyValue value)
472 PropertyArray ret = new PropertyArray(NDalicPINVOKE.Property_Array_Add(swigCPtr, PropertyValue.getCPtr(value)), false);
473 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
478 /// Accesses an element.
480 /// <param name="index">The element index to access. No bounds checking is performed.</param>
481 /// <returns>The reference to the element.</returns>
482 /// <since_tizen> 3 </since_tizen>
483 public PropertyValue GetElementAt(uint index)
485 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_GetElementAt__SWIG_0(swigCPtr, index), false);
486 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 /// Retrieves the value of elements in the array.
493 /// <param name="index">The element index to retrieve.</param>
494 /// <returns>The reference to the element.</returns>
495 private PropertyValue ValueOfIndex(uint index)
497 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_ValueOfIndex__SWIG_0(swigCPtr, index), false);
498 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504 /// A key type which can be either a std::string or a Property::Index.
506 /// <since_tizen> 3 </since_tizen>
507 public class PropertyKey : global::System.IDisposable
509 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
513 /// <since_tizen> 3 </since_tizen>
514 protected bool swigCMemOwn;
516 internal PropertyKey(global::System.IntPtr cPtr, bool cMemoryOwn)
518 swigCMemOwn = cMemoryOwn;
519 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
522 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyKey obj)
524 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
527 //A Flag to check who called Dispose(). (By User or DisposeQueue)
528 private bool isDisposeQueued = false;
530 /// A Flat to check if it is already disposed.
532 /// <since_tizen> 3 </since_tizen>
533 protected bool disposed = false;
538 /// <since_tizen> 3 </since_tizen>
543 isDisposeQueued = true;
544 DisposeQueue.Instance.Add(this);
551 /// <since_tizen> 3 </since_tizen>
552 public void Dispose()
554 //Throw excpetion if Dispose() is called in separate thread.
555 if (!Window.IsInstalled())
557 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
562 Dispose(DisposeTypes.Implicit);
566 Dispose(DisposeTypes.Explicit);
567 System.GC.SuppressFinalize(this);
574 /// <since_tizen> 3 </since_tizen>
575 protected virtual void Dispose(DisposeTypes type)
582 if(type == DisposeTypes.Explicit)
585 //Release your own managed resources here.
586 //You should release all of your own disposable objects here.
589 //Release your own unmanaged resources here.
590 //You should not access any managed member here except static instance.
591 //because the execution order of Finalizes is non-deterministic.
593 if (swigCPtr.Handle != global::System.IntPtr.Zero)
598 NDalicPINVOKE.delete_Property_Key(swigCPtr);
600 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
606 /// The type of the key.
608 /// <since_tizen> 3 </since_tizen>
609 public PropertyKey.KeyType Type
613 NDalicPINVOKE.Property_Key_type_set(swigCPtr, (int)value);
614 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
618 PropertyKey.KeyType ret = (PropertyKey.KeyType)NDalicPINVOKE.Property_Key_type_get(swigCPtr);
619 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
627 /// <since_tizen> 3 </since_tizen>
632 NDalicPINVOKE.Property_Key_indexKey_set(swigCPtr, value);
633 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
637 int ret = NDalicPINVOKE.Property_Key_indexKey_get(swigCPtr);
638 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
646 /// <since_tizen> 3 </since_tizen>
647 public string StringKey
651 NDalicPINVOKE.Property_Key_stringKey_set(swigCPtr, value);
652 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
656 string ret = NDalicPINVOKE.Property_Key_stringKey_get(swigCPtr);
657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
665 /// <param name="key">The string key.</param>
666 /// <since_tizen> 3 </since_tizen>
667 public PropertyKey(string key) : this(NDalicPINVOKE.new_Property_Key__SWIG_0(key), true)
669 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
675 /// <param name="key">The index key.</param>
676 /// <since_tizen> 3 </since_tizen>
677 public PropertyKey(int key) : this(NDalicPINVOKE.new_Property_Key__SWIG_1(key), true)
679 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
683 /// Compares if rhs is equal to.
685 /// <param name="rhs">A string key to compare against.</param>
686 /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type.</returns>
687 /// <since_tizen> 3 </since_tizen>
688 public bool EqualTo(string rhs)
690 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_0(swigCPtr, rhs);
691 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
696 /// Compares if rhs is equal to.
698 /// <param name="rhs">The index key to compare against.</param>
699 /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type.</returns>
700 /// <since_tizen> 3 </since_tizen>
701 public bool EqualTo(int rhs)
703 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_1(swigCPtr, rhs);
704 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
709 /// Compares if rhs is equal to
711 /// <param name="rhs">A key to compare against</param>
712 /// <returns>Returns true if the keys are of the same type and have the same value.</returns>
713 /// <since_tizen> 3 </since_tizen>
714 public bool EqualTo(PropertyKey rhs)
716 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
717 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
722 /// Compares if rhs is not equal to.
724 /// <param name="rhs">The index key to compare against.</param>
725 /// <returns>Returns true if the key is not equal or not a string key.</returns>
726 /// <since_tizen> 3 </since_tizen>
727 public bool NotEqualTo(string rhs)
729 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_0(swigCPtr, rhs);
730 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
735 /// Compares if rhs is not equal to.
737 /// <param name="rhs">The index key to compare against.</param>
738 /// <returns>Returns true if the key is not equal, or not the index key.</returns>
739 /// <since_tizen> 3 </since_tizen>
740 public bool NotEqualTo(int rhs)
742 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_1(swigCPtr, rhs);
743 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
748 /// Compares if rhs is not equal to.
750 /// <param name="rhs">A key to compare against.</param>
751 /// <returns>Returns true if the keys are not of the same type or are not equal.</returns>
752 /// <since_tizen> 3 </since_tizen>
753 public bool NotEqualTo(PropertyKey rhs)
755 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
756 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
763 /// <since_tizen> 3 </since_tizen>
767 /// The type of key is index.
769 /// <since_tizen> 3 </since_tizen>
772 /// The type of key is string.
774 /// <since_tizen> 3 </since_tizen>
781 /// A map of property values, the key type could be string or Property::Index.
783 /// <since_tizen> 3 </since_tizen>
784 public class PropertyMap : global::System.IDisposable
786 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
790 /// <since_tizen> 3 </since_tizen>
791 protected bool swigCMemOwn;
793 internal PropertyMap(global::System.IntPtr cPtr, bool cMemoryOwn)
795 swigCMemOwn = cMemoryOwn;
796 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
799 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyMap obj)
801 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
804 //A Flag to check who called Dispose(). (By User or DisposeQueue)
805 private bool isDisposeQueued = false;
807 /// A Flat to check if it is already disposed.
809 /// <since_tizen> 3 </since_tizen>
810 protected bool disposed = false;
815 /// <since_tizen> 3 </since_tizen>
820 isDisposeQueued = true;
821 DisposeQueue.Instance.Add(this);
828 /// <since_tizen> 3 </since_tizen>
829 public void Dispose()
831 //Throw excpetion if Dispose() is called in separate thread.
832 if (!Window.IsInstalled())
834 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
839 Dispose(DisposeTypes.Implicit);
843 Dispose(DisposeTypes.Explicit);
844 System.GC.SuppressFinalize(this);
851 /// <since_tizen> 3 </since_tizen>
852 protected virtual void Dispose(DisposeTypes type)
859 if(type == DisposeTypes.Explicit)
862 //Release your own managed resources here.
863 //You should release all of your own disposable objects here.
866 //Release your own unmanaged resources here.
867 //You should not access any managed member here except static instance.
868 //because the execution order of Finalizes is non-deterministic.
870 if (swigCPtr.Handle != global::System.IntPtr.Zero)
875 NDalicPINVOKE.delete_Property_Map(swigCPtr);
877 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
883 /// The operator to access the element with the specified string key.<br />
884 /// If an element with the key does not exist, then it is created.<br />
886 /// <param name="key">The key whose value to access.</param>
887 /// <returns>A value for the element with the specified key.</returns>
888 /// <since_tizen> 3 </since_tizen>
889 public PropertyValue this[string key]
893 return ValueOfIndex(key);
898 /// The operator to access the element with the specified index key.<br />
899 /// If an element with the key does not exist, then it is created.<br />
901 /// <param name="key">The key whose value to access.</param>
902 /// <returns>A value for the element with the specified key.</returns>
903 /// <since_tizen> 3 </since_tizen>
904 public PropertyValue this[int key]
908 return ValueOfIndex(key);
915 /// <since_tizen> 3 </since_tizen>
916 public PropertyMap() : this(NDalicPINVOKE.new_Property_Map__SWIG_0(), true)
918 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
922 /// The copy constructor.
924 /// <param name="other">The map to copy from.</param>
925 /// <since_tizen> 3 </since_tizen>
926 public PropertyMap(PropertyMap other) : this(NDalicPINVOKE.new_Property_Map__SWIG_1(PropertyMap.getCPtr(other)), true)
928 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
932 /// Retrieves the number of elements in the map.
934 /// <returns>The number of elements in the map.</returns>
935 /// <since_tizen> 3 </since_tizen>
938 uint ret = NDalicPINVOKE.Property_Map_Count(swigCPtr);
939 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
944 /// Returns whether the map is empty.
946 /// <returns>Returns true if empty, false otherwise.</returns>
947 /// <since_tizen> 3 </since_tizen>
950 bool ret = NDalicPINVOKE.Property_Map_Empty(swigCPtr);
951 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
956 /// Inserts the key-value pair in the map, with the key type as string.<br />
957 /// Does not check for duplicates.<br />
959 /// <param name="key">The key to insert.</param>
960 /// <param name="value">The value to insert.</param>
961 /// <since_tizen> 3 </since_tizen>
962 public void Insert(string key, PropertyValue value)
964 NDalicPINVOKE.Property_Map_Insert__SWIG_0(swigCPtr, key, PropertyValue.getCPtr(value));
965 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
969 /// Inserts the key-value pair in the map, with the key type as index.<br />
970 /// Does not check for duplicates.<br />
972 /// <param name="key">The key to insert.</param>
973 /// <param name="value">The value to insert.</param>
974 /// <since_tizen> 3 </since_tizen>
975 public void Insert(int key, PropertyValue value)
977 NDalicPINVOKE.Property_Map_Insert__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value));
978 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
982 /// Inserts the key-value pair in the map, with the key type as string.<br />
983 /// Does not check for duplicates.<br />
985 /// <param name="key">The key to insert.</param>
986 /// <param name="value">The value to insert.</param>
987 /// <returns>Returns a reference to this object.</returns>
988 /// <since_tizen> 3 </since_tizen>
989 public PropertyMap Add(string key, PropertyValue value)
991 PropertyMap ret = new PropertyMap(NDalicPINVOKE.Property_Map_Add__SWIG_0(swigCPtr, key, PropertyValue.getCPtr(value)), false);
992 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
997 /// Inserts the key-value pair in the map, with the key type as string.<br />
998 /// Does not check for duplicates.<br />
1000 /// <param name="key">The key to insert.</param>
1001 /// <param name="value">The value to insert.</param>
1002 /// <returns>Returns a reference to this object.</returns>
1003 /// <since_tizen> 3 </since_tizen>
1004 public PropertyMap Add(int key, PropertyValue value)
1006 PropertyMap ret = new PropertyMap(NDalicPINVOKE.Property_Map_Add__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value)), false);
1007 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1012 /// Retrieves the value at the specified position.
1014 /// <param name="position">The specified position.</param>
1015 /// <returns>A reference to the value at the specified position.</returns>
1016 /// <since_tizen> 3 </since_tizen>
1017 public PropertyValue GetValue(uint position)
1019 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_GetValue(swigCPtr, position), false);
1020 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1025 /// Please do not use! this will be deprecated.
1027 /// <since_tizen> 3 </since_tizen>
1028 [Obsolete("Please do not use! This will be deprecated!")]
1029 [EditorBrowsable(EditorBrowsableState.Never)]
1030 public string GetKey(uint position)
1032 string ret = NDalicPINVOKE.Property_Map_GetKey(swigCPtr, position);
1033 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1038 /// Retrieves the key at the specified position.
1040 /// <param name="position">The specified position.</param>
1041 /// <returns>A copy of the key at the specified position.</returns>
1042 /// <since_tizen> 3 </since_tizen>
1043 public PropertyKey GetKeyAt(uint position)
1045 PropertyKey ret = new PropertyKey(NDalicPINVOKE.Property_Map_GetKeyAt(swigCPtr, position), true);
1046 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1051 /// Please do not use! this will be deprecated
1053 /// <since_tizen> 3 </since_tizen>
1054 [Obsolete("Please do not use! This will be deprecated!")]
1055 [EditorBrowsable(EditorBrowsableState.Never)]
1056 public PropertyValue Find(string key)
1058 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_0(swigCPtr, key);
1059 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1060 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1065 /// Finds the value for the specified key if it exists.
1067 /// <param name="key">The key to find.</param>
1068 /// <returns>The value if it exists, an empty object otherwise.</returns>
1069 /// <since_tizen> 3 </since_tizen>
1070 public PropertyValue Find(int key)
1072 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_2(swigCPtr, key);
1073 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1074 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1079 /// Finds the value for the specified keys if either exist.
1081 /// <param name="indexKey">The index key to find.</param>
1082 /// <param name="stringKey">The string key to find.</param>
1083 /// <returns>The value if it exists, an empty object otherwise.</returns>
1084 /// <since_tizen> 3 </since_tizen>
1085 public PropertyValue Find(int indexKey, string stringKey)
1087 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_3(swigCPtr, indexKey, stringKey);
1088 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1089 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1094 /// Please do not use! this will be deprecated.
1096 /// <since_tizen> 3 </since_tizen>
1097 [Obsolete("Please do not use! This will be deprecated!")]
1098 [EditorBrowsable(EditorBrowsableState.Never)]
1099 public PropertyValue Find(string key, PropertyType type)
1101 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_4(swigCPtr, key, (int)type);
1102 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1103 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1108 /// Please do not use! this will be deprecated
1110 /// <since_tizen> 3 </since_tizen>
1111 [Obsolete("Please do not use! This will be deprecated!")]
1112 [EditorBrowsable(EditorBrowsableState.Never)]
1113 public PropertyValue Find(int key, PropertyType type)
1115 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_5(swigCPtr, key, (int)type);
1116 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1117 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1124 /// <since_tizen> 3 </since_tizen>
1127 NDalicPINVOKE.Property_Map_Clear(swigCPtr);
1128 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1132 /// Merges values from the map 'from' to the current.<br />
1133 /// Any values in 'from' will overwrite the values in the current map.<br />
1135 /// <param name="from">The map to merge from.</param>
1136 /// <since_tizen> 3 </since_tizen>
1137 public void Merge(PropertyMap from)
1139 NDalicPINVOKE.Property_Map_Merge(swigCPtr, PropertyMap.getCPtr(from));
1140 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1144 /// Retrieves the element with the specified string key.
1146 /// <param name="key">The key whose value to retrieve.</param>
1147 /// <returns>The value for the element with the specified key.</returns>
1148 internal PropertyValue ValueOfIndex(string key)
1150 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_0(swigCPtr, key), false);
1151 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1156 /// Retrieves the element with the specified index key.
1158 /// <param name="key">The key whose value to retrieve.</param>
1159 /// <returns>The value for the element with the specified key.</returns>
1160 internal PropertyValue ValueOfIndex(int key)
1162 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_2(swigCPtr, key), false);
1163 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1169 /// A value-type representing a property value.
1171 /// <since_tizen> 3 </since_tizen>
1172 public class PropertyValue : global::System.IDisposable
1174 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1178 /// <since_tizen> 3 </since_tizen>
1179 protected bool swigCMemOwn;
1181 internal PropertyValue(global::System.IntPtr cPtr, bool cMemoryOwn)
1183 swigCMemOwn = cMemoryOwn;
1184 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1187 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyValue obj)
1189 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1192 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1193 private bool isDisposeQueued = false;
1195 /// A Flat to check if it is already disposed.
1197 /// <since_tizen> 3 </since_tizen>
1198 protected bool disposed = false;
1203 /// <since_tizen> 3 </since_tizen>
1206 if(!isDisposeQueued)
1208 isDisposeQueued = true;
1209 DisposeQueue.Instance.Add(this);
1216 /// <since_tizen> 3 </since_tizen>
1217 public void Dispose()
1219 //Throw excpetion if Dispose() is called in separate thread.
1220 if (!Window.IsInstalled())
1222 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1225 if (isDisposeQueued)
1227 Dispose(DisposeTypes.Implicit);
1231 Dispose(DisposeTypes.Explicit);
1232 System.GC.SuppressFinalize(this);
1239 /// <since_tizen> 3 </since_tizen>
1240 protected virtual void Dispose(DisposeTypes type)
1247 if(type == DisposeTypes.Explicit)
1250 //Release your own managed resources here.
1251 //You should release all of your own disposable objects here.
1254 //Release your own unmanaged resources here.
1255 //You should not access any managed member here except static instance.
1256 //because the execution order of Finalizes is non-deterministic.
1258 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1262 swigCMemOwn = false;
1263 NDalicPINVOKE.delete_Property_Value(swigCPtr);
1265 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1272 /// An extension to the property value class that allows us to create a
1273 /// Property value from a C# object, for example, integer, float, or string.<br />
1275 /// <param name="obj">An object to create.</param>
1276 /// <returns>The created value.</returns>
1277 /// <since_tizen> 3 </since_tizen>
1278 static public PropertyValue CreateFromObject(System.Object obj)
1280 System.Type type = obj.GetType();
1282 PropertyValue value;
1284 if (type.Equals(typeof(int)))
1286 value = new PropertyValue((int)obj);
1288 if (type.Equals(typeof(System.Int32)))
1290 value = new PropertyValue((int)obj);
1292 else if (type.Equals(typeof(bool)))
1294 value = new PropertyValue((bool)obj);
1296 else if (type.Equals(typeof(float)))
1298 value = new PropertyValue((float)obj);
1300 else if (type.Equals(typeof(string)))
1302 value = new PropertyValue((string)obj);
1304 else if (type.Equals(typeof(Vector2)))
1306 value = new PropertyValue((Vector2)obj);
1308 else if (type.Equals(typeof(Vector3)))
1310 value = new PropertyValue((Vector3)obj);
1312 else if (type.Equals(typeof(Vector4)))
1314 value = new PropertyValue((Vector4)obj);
1316 else if (type.Equals(typeof(Position)))
1318 value = new PropertyValue((Position)obj);
1320 else if (type.Equals(typeof(Position2D)))
1322 value = new PropertyValue((Position2D)obj);
1324 else if (type.Equals(typeof(Size)))
1326 value = new PropertyValue((Size)obj);
1328 else if (type.Equals(typeof(Size2D)))
1330 value = new PropertyValue((Size2D)obj);
1332 else if (type.Equals(typeof(Color)))
1334 value = new PropertyValue((Color)obj);
1336 else if (type.Equals(typeof(Rotation)))
1338 value = new PropertyValue((Rotation)obj);
1340 else if (type.Equals(typeof(RelativeVector2)))
1342 value = new PropertyValue((RelativeVector2)obj);
1344 else if (type.Equals(typeof(RelativeVector3)))
1346 value = new PropertyValue((RelativeVector3)obj);
1348 else if (type.Equals(typeof(RelativeVector4)))
1350 value = new PropertyValue((RelativeVector4)obj);
1352 else if(type.Equals(typeof(Extents)))
1354 value = new PropertyValue((Extents)obj);
1358 throw new global::System.InvalidOperationException("Unimplemented type for Property Value :" + type.Name);
1360 NUILog.Debug(" got an property value of =" + type.Name);
1365 /// Creates a Size2D property value.
1367 /// <param name="vectorValue">Size2D values.</param>
1368 /// <since_tizen> 3 </since_tizen>
1369 public PropertyValue(Size2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true)
1371 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1375 /// Creates a Position2D property value.
1377 /// <param name="vectorValue">Position2D values.</param>
1378 /// <since_tizen> 3 </since_tizen>
1379 public PropertyValue(Position2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true)
1381 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1385 /// Creates a Size property value.
1387 /// <param name="vectorValue">Size values.</param>
1388 internal PropertyValue(Size vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true)
1390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1394 /// Creates a Position property value.
1396 /// <param name="vectorValue">Position values.</param>
1397 /// <since_tizen> 3 </since_tizen>
1398 public PropertyValue(Position vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true)
1400 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1404 /// Creates a Color property value.
1406 /// <param name="vectorValue">Color values.</param>
1407 /// <since_tizen> 3 </since_tizen>
1408 public PropertyValue(Color vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true)
1410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1415 /// Retrieves a Size2D value.
1417 /// <param name="vectorValue"> On return, a Size2D value.</param>
1418 /// <since_tizen> 3 </since_tizen>
1419 public bool Get(Size2D vectorValue)
1421 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
1422 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1427 /// Retrieves a Position2D value.
1429 /// <param name="vectorValue"> On return, a Position2D value.</param>
1430 /// <since_tizen> 3 </since_tizen>
1431 public bool Get(Position2D vectorValue)
1433 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
1434 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1439 /// Retrieves a Size value.
1441 /// <param name="vectorValue"> On return, a size value.</param>
1442 internal bool Get(Size vectorValue)
1444 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
1445 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1450 /// Retrieves a Position value.
1452 /// <param name="vectorValue"> On return, a position value.</param>
1453 /// <since_tizen> 3 </since_tizen>
1454 public bool Get(Position vectorValue)
1456 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
1457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1462 /// Retrieves a Color value.
1464 /// <param name="vectorValue"> On return, a color value.</param>
1465 /// <since_tizen> 3 </since_tizen>
1466 public bool Get(Color vectorValue)
1468 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
1469 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1476 /// The default constructor.
1478 /// <since_tizen> 3 </since_tizen>
1479 public PropertyValue() : this(NDalicPINVOKE.new_Property_Value__SWIG_0(), true)
1481 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1485 /// Creates a boolean property value.
1487 /// <param name="boolValue">A boolean value.</param>
1488 /// <since_tizen> 3 </since_tizen>
1489 public PropertyValue(bool boolValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_1(boolValue), true)
1491 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1495 /// Creates an integer property value.
1497 /// <param name="integerValue">An integer value.</param>
1498 /// <since_tizen> 3 </since_tizen>
1499 public PropertyValue(int integerValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_2(integerValue), true)
1501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1505 /// Creates a float property value.
1507 /// <param name="floatValue">A floating-point value.</param>
1508 /// <since_tizen> 3 </since_tizen>
1509 public PropertyValue(float floatValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_3(floatValue), true)
1511 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1515 /// Creates a Vector2 property value.
1517 /// <param name="vectorValue">A vector of 2 floating-point values.</param>
1518 /// <since_tizen> 3 </since_tizen>
1519 public PropertyValue(Vector2 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Vector2.getCPtr(vectorValue)), true)
1521 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1525 /// Creates a Vector3 property value.
1527 /// <param name="vectorValue">A vector of 3 floating-point values.</param>
1528 /// <since_tizen> 3 </since_tizen>
1529 public PropertyValue(Vector3 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Vector3.getCPtr(vectorValue)), true)
1531 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1535 /// Creates a Vector4 property value.
1537 /// <param name="vectorValue">A vector of 4 floating-point values.</param>
1538 /// <since_tizen> 3 </since_tizen>
1539 public PropertyValue(Vector4 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Vector4.getCPtr(vectorValue)), true)
1541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1544 internal PropertyValue(Matrix3 matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_7(Matrix3.getCPtr(matrixValue)), true)
1546 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1549 internal PropertyValue(Matrix matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true)
1551 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1555 /// Creates a Rectangle property value.
1557 /// <param name="vectorValue">Rectangle values.</param>
1558 /// <since_tizen> 3 </since_tizen>
1559 public PropertyValue(Rectangle vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_9(Rectangle.getCPtr(vectorValue)), true)
1561 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1564 internal PropertyValue(AngleAxis angleAxis) : this(NDalicPINVOKE.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true)
1566 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1570 /// Creates a Rotation property value.
1572 /// <param name="quaternion">Rotation values.</param>
1573 /// <since_tizen> 3 </since_tizen>
1574 public PropertyValue(Rotation quaternion) : this(NDalicPINVOKE.new_Property_Value__SWIG_11(Rotation.getCPtr(quaternion)), true)
1576 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1580 /// Creates a string property value.
1582 /// <param name="stringValue">A string.</param>
1583 /// <since_tizen> 3 </since_tizen>
1584 public PropertyValue(string stringValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_12(stringValue), true)
1586 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1590 /// Creates an array property value.
1592 /// <param name="arrayValue">An array.</param>
1593 /// <since_tizen> 3 </since_tizen>
1594 public PropertyValue(PropertyArray arrayValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_14(PropertyArray.getCPtr(arrayValue)), true)
1596 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1600 /// Creates a map property value.
1602 /// <param name="mapValue">An array.</param>
1603 /// <since_tizen> 3 </since_tizen>
1604 public PropertyValue(PropertyMap mapValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_15(PropertyMap.getCPtr(mapValue)), true)
1606 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1610 /// Creates a Extents value.
1612 /// <param name="extentsValue">A Extents value.</param>
1613 /// <since_tizen> 4 </since_tizen>
1614 public PropertyValue(Extents extentsValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_16(Extents.getCPtr(extentsValue)), true)
1616 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1620 /// Creates a PropertyType value.
1622 /// <param name="type">A PropertyType value.</param>
1623 /// <since_tizen> 3 </since_tizen>
1624 public PropertyValue(PropertyType type) : this(NDalicPINVOKE.new_Property_Value__SWIG_17((int)type), true)
1626 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1630 /// Creates a PropertyValue value.
1632 /// <param name="value">A PropertyValue value.</param>
1633 /// <since_tizen> 3 </since_tizen>
1634 public PropertyValue(PropertyValue value) : this(NDalicPINVOKE.new_Property_Value__SWIG_18(PropertyValue.getCPtr(value)), true)
1636 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1640 /// Queries the type of this property value.
1642 /// <returns>The type ID</returns>
1643 /// <since_tizen> 3 </since_tizen>
1644 public new PropertyType GetType()
1646 PropertyType ret = (PropertyType)NDalicPINVOKE.Property_Value_GetType(swigCPtr);
1647 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1652 /// Retrieves a boolean value.
1654 /// <param name="boolValue">On return, a boolean value.</param>
1655 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1656 /// <since_tizen> 3 </since_tizen>
1657 public bool Get(out bool boolValue)
1659 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_1(swigCPtr, out boolValue);
1660 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1665 /// Retrieves a floating-point value.
1667 /// <param name="floatValue">On return, a floating-point value.</param>
1668 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1669 /// <since_tizen> 3 </since_tizen>
1670 public bool Get(out float floatValue)
1672 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_2(swigCPtr, out floatValue);
1673 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1678 /// Retrieves an integer value.
1680 /// <param name="integerValue">On return, an integer value.</param>
1681 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1682 /// <since_tizen> 3 </since_tizen>
1683 public bool Get(out int integerValue)
1685 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_3(swigCPtr, out integerValue);
1686 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1691 /// Retrieves an integer rectangle.
1693 /// <param name="rect">On return, an integer rectangle.</param>
1694 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1695 /// <since_tizen> 3 </since_tizen>
1696 public bool Get(Rectangle rect)
1698 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
1699 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1704 /// Retrieves a vector value.
1706 /// <param name="vectorValue">On return, a vector value.</param>
1707 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1708 /// <since_tizen> 3 </since_tizen>
1709 public bool Get(Vector2 vectorValue)
1711 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
1712 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1717 /// Retrieves a vector value.
1719 /// <param name="vectorValue">On return, a vector value.</param>
1720 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1721 /// <since_tizen> 3 </since_tizen>
1722 public bool Get(Vector3 vectorValue)
1724 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
1725 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1730 /// Retrieves a vector value.
1732 /// <param name="vectorValue">On return, a vector value.</param>
1733 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1734 /// <since_tizen> 3 </since_tizen>
1735 public bool Get(Vector4 vectorValue)
1737 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
1738 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1742 internal bool Get(Matrix3 matrixValue)
1744 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_8(swigCPtr, Matrix3.getCPtr(matrixValue));
1745 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1749 internal bool Get(Matrix matrixValue)
1751 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
1752 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1756 internal bool Get(AngleAxis angleAxisValue)
1758 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
1759 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1764 /// Retrieves a Rotation value.
1766 /// <param name="quaternionValue">On return, a rotation value.</param>
1767 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1768 /// <since_tizen> 3 </since_tizen>
1769 public bool Get(Rotation quaternionValue)
1771 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
1772 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1777 /// Retrieves a string property value.
1779 /// <param name="stringValue">On return, a string.</param>
1780 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1781 /// <since_tizen> 3 </since_tizen>
1782 public bool Get(out string stringValue)
1784 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
1785 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1790 /// Retrieves an array property value.
1792 /// <param name="arrayValue">On return, the array as a vector property values.</param>
1793 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1794 /// <since_tizen> 3 </since_tizen>
1795 public bool Get(PropertyArray arrayValue)
1797 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_13(swigCPtr, PropertyArray.getCPtr(arrayValue));
1798 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1803 /// Retrieves a map property value.
1805 /// <param name="mapValue">On return, the map as vector of string and property value pairs.</param>
1806 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1807 /// <since_tizen> 3 </since_tizen>
1808 public bool Get(PropertyMap mapValue)
1810 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_14(swigCPtr, PropertyMap.getCPtr(mapValue));
1811 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1816 /// Retrieves a Extents value.
1818 /// <param name="extentsValue">On return, a extents.</param>
1819 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1820 /// <since_tizen> 4 </since_tizen>
1821 public bool Get(Extents extentsValue)
1823 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_15(swigCPtr, Extents.getCPtr(extentsValue));
1824 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();