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 /// Retrieves the key at the specified position.
1027 /// <param name="position">The specified position.</param>
1028 /// <returns>A copy of the key at the specified position.</returns>
1029 /// <since_tizen> 3 </since_tizen>
1030 public PropertyKey GetKeyAt(uint position)
1032 PropertyKey ret = new PropertyKey(NDalicPINVOKE.Property_Map_GetKeyAt(swigCPtr, position), true);
1033 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1038 /// Finds the value for the specified key if it exists.
1040 /// <param name="key">The key to find.</param>
1041 /// <returns>The value if it exists, an empty object otherwise.</returns>
1042 /// <since_tizen> 3 </since_tizen>
1043 public PropertyValue Find(int key)
1045 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_2(swigCPtr, key);
1046 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1047 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1052 /// Finds the value for the specified keys if either exist.
1054 /// <param name="indexKey">The index key to find.</param>
1055 /// <param name="stringKey">The string key to find.</param>
1056 /// <returns>The value if it exists, an empty object otherwise.</returns>
1057 /// <since_tizen> 3 </since_tizen>
1058 public PropertyValue Find(int indexKey, string stringKey)
1060 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_3(swigCPtr, indexKey, stringKey);
1061 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1062 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1069 /// <since_tizen> 3 </since_tizen>
1072 NDalicPINVOKE.Property_Map_Clear(swigCPtr);
1073 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1077 /// Merges values from the map 'from' to the current.<br />
1078 /// Any values in 'from' will overwrite the values in the current map.<br />
1080 /// <param name="from">The map to merge from.</param>
1081 /// <since_tizen> 3 </since_tizen>
1082 public void Merge(PropertyMap from)
1084 NDalicPINVOKE.Property_Map_Merge(swigCPtr, PropertyMap.getCPtr(from));
1085 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1089 /// Retrieves the element with the specified string key.
1091 /// <param name="key">The key whose value to retrieve.</param>
1092 /// <returns>The value for the element with the specified key.</returns>
1093 internal PropertyValue ValueOfIndex(string key)
1095 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_0(swigCPtr, key), false);
1096 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1101 /// Retrieves the element with the specified index key.
1103 /// <param name="key">The key whose value to retrieve.</param>
1104 /// <returns>The value for the element with the specified key.</returns>
1105 internal PropertyValue ValueOfIndex(int key)
1107 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_2(swigCPtr, key), false);
1108 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1114 /// A value-type representing a property value.
1116 /// <since_tizen> 3 </since_tizen>
1117 public class PropertyValue : global::System.IDisposable
1119 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1123 /// <since_tizen> 3 </since_tizen>
1124 protected bool swigCMemOwn;
1126 internal PropertyValue(global::System.IntPtr cPtr, bool cMemoryOwn)
1128 swigCMemOwn = cMemoryOwn;
1129 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1132 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyValue obj)
1134 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1137 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1138 private bool isDisposeQueued = false;
1140 /// A Flat to check if it is already disposed.
1142 /// <since_tizen> 3 </since_tizen>
1143 protected bool disposed = false;
1148 /// <since_tizen> 3 </since_tizen>
1151 if(!isDisposeQueued)
1153 isDisposeQueued = true;
1154 DisposeQueue.Instance.Add(this);
1161 /// <since_tizen> 3 </since_tizen>
1162 public void Dispose()
1164 //Throw excpetion if Dispose() is called in separate thread.
1165 if (!Window.IsInstalled())
1167 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1170 if (isDisposeQueued)
1172 Dispose(DisposeTypes.Implicit);
1176 Dispose(DisposeTypes.Explicit);
1177 System.GC.SuppressFinalize(this);
1184 /// <since_tizen> 3 </since_tizen>
1185 protected virtual void Dispose(DisposeTypes type)
1192 if(type == DisposeTypes.Explicit)
1195 //Release your own managed resources here.
1196 //You should release all of your own disposable objects here.
1199 //Release your own unmanaged resources here.
1200 //You should not access any managed member here except static instance.
1201 //because the execution order of Finalizes is non-deterministic.
1203 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1207 swigCMemOwn = false;
1208 NDalicPINVOKE.delete_Property_Value(swigCPtr);
1210 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1217 /// An extension to the property value class that allows us to create a
1218 /// Property value from a C# object, for example, integer, float, or string.<br />
1220 /// <param name="obj">An object to create.</param>
1221 /// <returns>The created value.</returns>
1222 /// <since_tizen> 3 </since_tizen>
1223 static public PropertyValue CreateFromObject(System.Object obj)
1225 System.Type type = obj.GetType();
1227 PropertyValue value;
1229 if (type.Equals(typeof(int)))
1231 value = new PropertyValue((int)obj);
1233 if (type.Equals(typeof(System.Int32)))
1235 value = new PropertyValue((int)obj);
1237 else if (type.Equals(typeof(bool)))
1239 value = new PropertyValue((bool)obj);
1241 else if (type.Equals(typeof(float)))
1243 value = new PropertyValue((float)obj);
1245 else if (type.Equals(typeof(string)))
1247 value = new PropertyValue((string)obj);
1249 else if (type.Equals(typeof(Vector2)))
1251 value = new PropertyValue((Vector2)obj);
1253 else if (type.Equals(typeof(Vector3)))
1255 value = new PropertyValue((Vector3)obj);
1257 else if (type.Equals(typeof(Vector4)))
1259 value = new PropertyValue((Vector4)obj);
1261 else if (type.Equals(typeof(Position)))
1263 value = new PropertyValue((Position)obj);
1265 else if (type.Equals(typeof(Position2D)))
1267 value = new PropertyValue((Position2D)obj);
1269 else if (type.Equals(typeof(Size)))
1271 value = new PropertyValue((Size)obj);
1273 else if (type.Equals(typeof(Size2D)))
1275 value = new PropertyValue((Size2D)obj);
1277 else if (type.Equals(typeof(Color)))
1279 value = new PropertyValue((Color)obj);
1281 else if (type.Equals(typeof(Rotation)))
1283 value = new PropertyValue((Rotation)obj);
1285 else if (type.Equals(typeof(RelativeVector2)))
1287 value = new PropertyValue((RelativeVector2)obj);
1289 else if (type.Equals(typeof(RelativeVector3)))
1291 value = new PropertyValue((RelativeVector3)obj);
1293 else if (type.Equals(typeof(RelativeVector4)))
1295 value = new PropertyValue((RelativeVector4)obj);
1297 else if(type.Equals(typeof(Extents)))
1299 value = new PropertyValue((Extents)obj);
1303 throw new global::System.InvalidOperationException("Unimplemented type for Property Value :" + type.Name);
1305 //NUILog.Debug(" got an property value of =" + type.Name);
1310 /// Creates a Size2D property value.
1312 /// <param name="vectorValue">Size2D values.</param>
1313 /// <since_tizen> 3 </since_tizen>
1314 public PropertyValue(Size2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true)
1316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1320 /// Creates a Position2D property value.
1322 /// <param name="vectorValue">Position2D values.</param>
1323 /// <since_tizen> 3 </since_tizen>
1324 public PropertyValue(Position2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true)
1326 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1330 /// Creates a Size property value.
1332 /// <param name="vectorValue">Size values.</param>
1333 internal PropertyValue(Size vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true)
1335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1339 /// Creates a Position property value.
1341 /// <param name="vectorValue">Position values.</param>
1342 /// <since_tizen> 3 </since_tizen>
1343 public PropertyValue(Position vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true)
1345 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1349 /// Creates a Color property value.
1351 /// <param name="vectorValue">Color values.</param>
1352 /// <since_tizen> 3 </since_tizen>
1353 public PropertyValue(Color vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true)
1355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1360 /// Retrieves a Size2D value.
1362 /// <param name="vectorValue"> On return, a Size2D value.</param>
1363 /// <since_tizen> 3 </since_tizen>
1364 public bool Get(Size2D vectorValue)
1366 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
1367 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1372 /// Retrieves a Position2D value.
1374 /// <param name="vectorValue"> On return, a Position2D value.</param>
1375 /// <since_tizen> 3 </since_tizen>
1376 public bool Get(Position2D vectorValue)
1378 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
1379 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1384 /// Retrieves a Size value.
1386 /// <param name="vectorValue"> On return, a size value.</param>
1387 internal bool Get(Size vectorValue)
1389 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
1390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1395 /// Retrieves a Position value.
1397 /// <param name="vectorValue"> On return, a position value.</param>
1398 /// <since_tizen> 3 </since_tizen>
1399 public bool Get(Position vectorValue)
1401 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
1402 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1407 /// Retrieves a Color value.
1409 /// <param name="vectorValue"> On return, a color value.</param>
1410 /// <since_tizen> 3 </since_tizen>
1411 public bool Get(Color vectorValue)
1413 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
1414 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1421 /// The default constructor.
1423 /// <since_tizen> 3 </since_tizen>
1424 public PropertyValue() : this(NDalicPINVOKE.new_Property_Value__SWIG_0(), true)
1426 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1430 /// Creates a boolean property value.
1432 /// <param name="boolValue">A boolean value.</param>
1433 /// <since_tizen> 3 </since_tizen>
1434 public PropertyValue(bool boolValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_1(boolValue), true)
1436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1440 /// Creates an integer property value.
1442 /// <param name="integerValue">An integer value.</param>
1443 /// <since_tizen> 3 </since_tizen>
1444 public PropertyValue(int integerValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_2(integerValue), true)
1446 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1450 /// Creates a float property value.
1452 /// <param name="floatValue">A floating-point value.</param>
1453 /// <since_tizen> 3 </since_tizen>
1454 public PropertyValue(float floatValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_3(floatValue), true)
1456 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1460 /// Creates a Vector2 property value.
1462 /// <param name="vectorValue">A vector of 2 floating-point values.</param>
1463 /// <since_tizen> 3 </since_tizen>
1464 public PropertyValue(Vector2 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Vector2.getCPtr(vectorValue)), true)
1466 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1470 /// Creates a Vector3 property value.
1472 /// <param name="vectorValue">A vector of 3 floating-point values.</param>
1473 /// <since_tizen> 3 </since_tizen>
1474 public PropertyValue(Vector3 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Vector3.getCPtr(vectorValue)), true)
1476 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1480 /// Creates a Vector4 property value.
1482 /// <param name="vectorValue">A vector of 4 floating-point values.</param>
1483 /// <since_tizen> 3 </since_tizen>
1484 public PropertyValue(Vector4 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Vector4.getCPtr(vectorValue)), true)
1486 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1489 internal PropertyValue(Matrix3 matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_7(Matrix3.getCPtr(matrixValue)), true)
1491 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1494 internal PropertyValue(Matrix matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true)
1496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1500 /// Creates a Rectangle property value.
1502 /// <param name="vectorValue">Rectangle values.</param>
1503 /// <since_tizen> 3 </since_tizen>
1504 public PropertyValue(Rectangle vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_9(Rectangle.getCPtr(vectorValue)), true)
1506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1509 internal PropertyValue(AngleAxis angleAxis) : this(NDalicPINVOKE.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true)
1511 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1515 /// Creates a Rotation property value.
1517 /// <param name="quaternion">Rotation values.</param>
1518 /// <since_tizen> 3 </since_tizen>
1519 public PropertyValue(Rotation quaternion) : this(NDalicPINVOKE.new_Property_Value__SWIG_11(Rotation.getCPtr(quaternion)), true)
1521 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1525 /// Creates a string property value.
1527 /// <param name="stringValue">A string.</param>
1528 /// <since_tizen> 3 </since_tizen>
1529 public PropertyValue(string stringValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_12(stringValue), true)
1531 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1535 /// Creates an array property value.
1537 /// <param name="arrayValue">An array.</param>
1538 /// <since_tizen> 3 </since_tizen>
1539 public PropertyValue(PropertyArray arrayValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_14(PropertyArray.getCPtr(arrayValue)), true)
1541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1545 /// Creates a map property value.
1547 /// <param name="mapValue">An array.</param>
1548 /// <since_tizen> 3 </since_tizen>
1549 public PropertyValue(PropertyMap mapValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_15(PropertyMap.getCPtr(mapValue)), true)
1551 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1555 /// Creates a Extents value.
1557 /// <param name="extentsValue">A Extents value.</param>
1558 /// <since_tizen> 4 </since_tizen>
1559 public PropertyValue(Extents extentsValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_16(Extents.getCPtr(extentsValue)), true)
1561 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1565 /// Creates a PropertyType value.
1567 /// <param name="type">A PropertyType value.</param>
1568 /// <since_tizen> 3 </since_tizen>
1569 public PropertyValue(PropertyType type) : this(NDalicPINVOKE.new_Property_Value__SWIG_17((int)type), true)
1571 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1575 /// Creates a PropertyValue value.
1577 /// <param name="value">A PropertyValue value.</param>
1578 /// <since_tizen> 3 </since_tizen>
1579 public PropertyValue(PropertyValue value) : this(NDalicPINVOKE.new_Property_Value__SWIG_18(PropertyValue.getCPtr(value)), true)
1581 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1585 /// Queries the type of this property value.
1587 /// <returns>The type ID</returns>
1588 /// <since_tizen> 3 </since_tizen>
1589 public new PropertyType GetType()
1591 PropertyType ret = (PropertyType)NDalicPINVOKE.Property_Value_GetType(swigCPtr);
1592 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1597 /// Retrieves a boolean value.
1599 /// <param name="boolValue">On return, a boolean value.</param>
1600 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1601 /// <since_tizen> 3 </since_tizen>
1602 public bool Get(out bool boolValue)
1604 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_1(swigCPtr, out boolValue);
1605 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1610 /// Retrieves a floating-point value.
1612 /// <param name="floatValue">On return, a floating-point value.</param>
1613 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1614 /// <since_tizen> 3 </since_tizen>
1615 public bool Get(out float floatValue)
1617 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_2(swigCPtr, out floatValue);
1618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1623 /// Retrieves an integer value.
1625 /// <param name="integerValue">On return, an integer value.</param>
1626 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1627 /// <since_tizen> 3 </since_tizen>
1628 public bool Get(out int integerValue)
1630 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_3(swigCPtr, out integerValue);
1631 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1636 /// Retrieves an integer rectangle.
1638 /// <param name="rect">On return, an integer rectangle.</param>
1639 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1640 /// <since_tizen> 3 </since_tizen>
1641 public bool Get(Rectangle rect)
1643 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
1644 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1649 /// Retrieves a vector value.
1651 /// <param name="vectorValue">On return, a vector value.</param>
1652 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1653 /// <since_tizen> 3 </since_tizen>
1654 public bool Get(Vector2 vectorValue)
1656 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
1657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1662 /// Retrieves a vector value.
1664 /// <param name="vectorValue">On return, a vector value.</param>
1665 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1666 /// <since_tizen> 3 </since_tizen>
1667 public bool Get(Vector3 vectorValue)
1669 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
1670 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1675 /// Retrieves a vector value.
1677 /// <param name="vectorValue">On return, a vector value.</param>
1678 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1679 /// <since_tizen> 3 </since_tizen>
1680 public bool Get(Vector4 vectorValue)
1682 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
1683 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1687 internal bool Get(Matrix3 matrixValue)
1689 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_8(swigCPtr, Matrix3.getCPtr(matrixValue));
1690 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1694 internal bool Get(Matrix matrixValue)
1696 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
1697 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1701 internal bool Get(AngleAxis angleAxisValue)
1703 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
1704 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1709 /// Retrieves a Rotation value.
1711 /// <param name="quaternionValue">On return, a rotation value.</param>
1712 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1713 /// <since_tizen> 3 </since_tizen>
1714 public bool Get(Rotation quaternionValue)
1716 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
1717 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1722 /// Retrieves a string property value.
1724 /// <param name="stringValue">On return, a string.</param>
1725 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1726 /// <since_tizen> 3 </since_tizen>
1727 public bool Get(out string stringValue)
1729 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
1730 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1735 /// Retrieves an array property value.
1737 /// <param name="arrayValue">On return, the array as a vector property values.</param>
1738 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1739 /// <since_tizen> 3 </since_tizen>
1740 public bool Get(PropertyArray arrayValue)
1742 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_13(swigCPtr, PropertyArray.getCPtr(arrayValue));
1743 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1748 /// Retrieves a map property value.
1750 /// <param name="mapValue">On return, the map as vector of string and property value pairs.</param>
1751 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1752 /// <since_tizen> 3 </since_tizen>
1753 public bool Get(PropertyMap mapValue)
1755 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_14(swigCPtr, PropertyMap.getCPtr(mapValue));
1756 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1761 /// Retrieves a Extents value.
1763 /// <param name="extentsValue">On return, a extents.</param>
1764 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1765 /// <since_tizen> 4 </since_tizen>
1766 public bool Get(Extents extentsValue)
1768 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_15(swigCPtr, Extents.getCPtr(extentsValue));
1769 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();