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.
23 internal class Property : global::System.IDisposable
25 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
29 /// <since_tizen> 3 </since_tizen>
30 protected bool swigCMemOwn;
32 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
34 swigCMemOwn = cMemoryOwn;
35 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
38 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
40 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
43 //A Flag to check who called Dispose(). (By User or DisposeQueue)
44 private bool isDisposeQueued = false;
46 /// <since_tizen> 3 </since_tizen>
47 /// A Flat to check if it is already disposed.
49 protected bool disposed = false;
55 isDisposeQueued = true;
56 DisposeQueue.Instance.Add(this);
62 //Throw excpetion if Dispose() is called in separate thread.
63 if (!Window.IsInstalled())
65 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
70 Dispose(DisposeTypes.Implicit);
74 Dispose(DisposeTypes.Explicit);
75 System.GC.SuppressFinalize(this);
79 protected virtual void Dispose(DisposeTypes type)
86 if(type == DisposeTypes.Explicit)
89 //Release your own managed resources here.
90 //You should release all of your own disposable objects here.
93 //Release your own unmanaged resources here.
94 //You should not access any managed member here except static instance.
95 //because the execution order of Finalizes is non-deterministic.
97 if (swigCPtr.Handle != global::System.IntPtr.Zero)
102 NDalicPINVOKE.delete_Property(swigCPtr);
104 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
110 internal static int INVALID_INDEX
114 int ret = NDalicPINVOKE.Property_INVALID_INDEX_get();
115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120 internal static int INVALID_KEY
124 int ret = NDalicPINVOKE.Property_INVALID_KEY_get();
125 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
130 internal static int INVALID_COMPONENT_INDEX
134 int ret = NDalicPINVOKE.Property_INVALID_COMPONENT_INDEX_get();
135 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
141 /// This constructor creates a property instance.
143 /// <param name="arg0">A valid handle to the target object.</param>
144 /// <param name="propertyIndex">The index of a property.</param>
145 /// <since_tizen> 3 </since_tizen>
146 public Property(Animatable arg0, int propertyIndex) : this(NDalicPINVOKE.new_Property__SWIG_0(Animatable.getCPtr(arg0), propertyIndex), true)
148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152 /// This constructor creates a property instance.
154 /// <param name="arg0">A valid handle to the target object.</param>
155 /// <param name="propertyIndex">The index of a property.</param>
156 /// <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>
157 /// <since_tizen> 3 </since_tizen>
158 public Property(Animatable arg0, int propertyIndex, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_1(Animatable.getCPtr(arg0), propertyIndex, componentIndex), true)
160 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
164 /// This constructor creates a property instance.<br />
165 /// This performs a property index query and is therefore slower than constructing a property directly with the index.<br />
167 /// <param name="arg0">A valid handle to the target object.</param>
168 /// <param name="propertyName">The property name.</param>
169 /// <since_tizen> 3 </since_tizen>
170 public Property(Animatable arg0, string propertyName) : this(NDalicPINVOKE.new_Property__SWIG_2(Animatable.getCPtr(arg0), propertyName), true)
172 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
176 /// This constructor creates a property instance.<br />
177 /// This performs a property index query and is therefore slower than constructing a property directly with the index.<br />
179 /// <param name="arg0">A valid handle to the target object.</param>
180 /// <param name="propertyName">The property name.</param>
181 /// <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>
182 /// <since_tizen> 3 </since_tizen>
183 public Property(Animatable arg0, string propertyName, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_3(Animatable.getCPtr(arg0), propertyName, componentIndex), true)
185 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
188 internal Animatable _object
192 NDalicPINVOKE.Property__object_set(swigCPtr, Animatable.getCPtr(value));
193 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
197 Animatable ret = new Animatable(NDalicPINVOKE.Property__object_get(swigCPtr), false);
198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204 /// Gets or sets the index of the property.
206 /// <since_tizen> 3 </since_tizen>
207 public int propertyIndex
211 NDalicPINVOKE.Property_propertyIndex_set(swigCPtr, value);
212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
216 int ret = NDalicPINVOKE.Property_propertyIndex_get(swigCPtr);
217 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
223 /// Gets or sets the component index of the property.
225 /// <since_tizen> 3 </since_tizen>
226 public int componentIndex
230 NDalicPINVOKE.Property_componentIndex_set(swigCPtr, value);
231 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
235 int ret = NDalicPINVOKE.Property_componentIndex_get(swigCPtr);
236 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
244 /// An array of property values.
246 public class PropertyArray : global::System.IDisposable
248 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
252 /// <since_tizen> 3 </since_tizen>
253 protected bool swigCMemOwn;
255 internal PropertyArray(global::System.IntPtr cPtr, bool cMemoryOwn)
257 swigCMemOwn = cMemoryOwn;
258 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
261 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyArray obj)
263 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
266 //A Flag to check who called Dispose(). (By User or DisposeQueue)
267 private bool isDisposeQueued = false;
269 /// <since_tizen> 3 </since_tizen>
270 /// A Flat to check if it is already disposed.
272 protected bool disposed = false;
277 /// <since_tizen> 3 </since_tizen>
282 isDisposeQueued = true;
283 DisposeQueue.Instance.Add(this);
290 /// <since_tizen> 3 </since_tizen>
291 public void Dispose()
293 //Throw excpetion if Dispose() is called in separate thread.
294 if (!Window.IsInstalled())
296 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
301 Dispose(DisposeTypes.Implicit);
305 Dispose(DisposeTypes.Explicit);
306 System.GC.SuppressFinalize(this);
313 /// <since_tizen> 3 </since_tizen>
314 protected virtual void Dispose(DisposeTypes type)
321 if(type == DisposeTypes.Explicit)
324 //Release your own managed resources here.
325 //You should release all of your own disposable objects here.
328 //Release your own unmanaged resources here.
329 //You should not access any managed member here except static instance.
330 //because the execution order of Finalizes is non-deterministic.
332 if (swigCPtr.Handle != global::System.IntPtr.Zero)
337 NDalicPINVOKE.delete_Property_Array(swigCPtr);
339 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
345 /// The operator to access an element.
347 /// <param name="index">The element index to access. No bounds checking is performed.</param>
348 /// <returns>The reference to the element.</returns>
349 /// <since_tizen> 3 </since_tizen>
350 public PropertyValue this[uint index]
354 return ValueOfIndex(index);
361 /// <since_tizen> 3 </since_tizen>
362 public PropertyArray() : this(NDalicPINVOKE.new_Property_Array__SWIG_0(), true)
364 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
367 internal PropertyArray(PropertyArray other) : this(NDalicPINVOKE.new_Property_Array__SWIG_1(PropertyArray.getCPtr(other)), true)
369 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
373 /// Retrieves the number of elements in the array.
375 /// <returns>The number of elements in the array.</returns>
376 /// <since_tizen> 3 </since_tizen>
379 uint ret = NDalicPINVOKE.Property_Array_Size(swigCPtr);
380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
385 /// Retrieves the number of elements in the array.
387 /// <returns>The number of elements in the array.</returns>
388 /// <since_tizen> 3 </since_tizen>
391 uint ret = NDalicPINVOKE.Property_Array_Count(swigCPtr);
392 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
397 /// Returns whether the array is empty.
399 /// <returns>Returns true if empty, false otherwise.</returns>
400 /// <since_tizen> 3 </since_tizen>
403 bool ret = NDalicPINVOKE.Property_Array_Empty(swigCPtr);
404 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409 /// Clears the array.
411 /// <since_tizen> 3 </since_tizen>
414 NDalicPINVOKE.Property_Array_Clear(swigCPtr);
415 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419 /// Increases the capacity of the array.
421 /// <param name="size">The size to reserve.</param>
422 /// <since_tizen> 3 </since_tizen>
423 public void Reserve(uint size)
425 NDalicPINVOKE.Property_Array_Reserve(swigCPtr, size);
426 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432 /// <param name="size">The size to resize</param>
433 /// <since_tizen> 3 </since_tizen>
434 public void Resize(uint size)
436 NDalicPINVOKE.Property_Array_Resize(swigCPtr, size);
437 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
441 /// Retrieves the capacity of the array.
443 /// <returns>The allocated capacity of the array.</returns>
444 /// <since_tizen> 3 </since_tizen>
445 public uint Capacity()
447 uint ret = NDalicPINVOKE.Property_Array_Capacity(swigCPtr);
448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
453 /// Adds an element to the array.
455 /// <param name="value">The value to add at the end of the array.</param>
456 /// <since_tizen> 3 </since_tizen>
457 public void PushBack(PropertyValue value)
459 NDalicPINVOKE.Property_Array_PushBack(swigCPtr, PropertyValue.getCPtr(value));
460 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
464 /// Adds an element to the array.
466 /// <param name="value">The value to add at the end of the array.</param>
467 /// <since_tizen> 3 </since_tizen>
468 public PropertyArray Add(PropertyValue value)
470 PropertyArray ret = new PropertyArray(NDalicPINVOKE.Property_Array_Add(swigCPtr, PropertyValue.getCPtr(value)), false);
471 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
476 /// Accesses an element.
478 /// <param name="index">The element index to access. No bounds checking is performed.</param>
479 /// <returns>The reference to the element.</returns>
480 /// <since_tizen> 3 </since_tizen>
481 public PropertyValue GetElementAt(uint index)
483 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_GetElementAt__SWIG_0(swigCPtr, index), false);
484 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489 /// Retrieves the value of elements in the array.
491 /// <param name="index">The element index to retrieve.</param>
492 /// <returns>The reference to the element.</returns>
493 private PropertyValue ValueOfIndex(uint index)
495 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_ValueOfIndex__SWIG_0(swigCPtr, index), false);
496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
502 /// A key type which can be either a std::string or a Property::Index.
504 public class PropertyKey : global::System.IDisposable
506 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
510 /// <since_tizen> 3 </since_tizen>
511 protected bool swigCMemOwn;
513 internal PropertyKey(global::System.IntPtr cPtr, bool cMemoryOwn)
515 swigCMemOwn = cMemoryOwn;
516 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
519 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyKey obj)
521 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
524 //A Flag to check who called Dispose(). (By User or DisposeQueue)
525 private bool isDisposeQueued = false;
527 /// <since_tizen> 3 </since_tizen>
528 /// A Flat to check if it is already disposed.
530 protected bool disposed = false;
535 /// <since_tizen> 3 </since_tizen>
540 isDisposeQueued = true;
541 DisposeQueue.Instance.Add(this);
548 /// <since_tizen> 3 </since_tizen>
549 public void Dispose()
551 //Throw excpetion if Dispose() is called in separate thread.
552 if (!Window.IsInstalled())
554 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
559 Dispose(DisposeTypes.Implicit);
563 Dispose(DisposeTypes.Explicit);
564 System.GC.SuppressFinalize(this);
571 /// <since_tizen> 3 </since_tizen>
572 protected virtual void Dispose(DisposeTypes type)
579 if(type == DisposeTypes.Explicit)
582 //Release your own managed resources here.
583 //You should release all of your own disposable objects here.
586 //Release your own unmanaged resources here.
587 //You should not access any managed member here except static instance.
588 //because the execution order of Finalizes is non-deterministic.
590 if (swigCPtr.Handle != global::System.IntPtr.Zero)
595 NDalicPINVOKE.delete_Property_Key(swigCPtr);
597 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
603 /// The type of the key.
605 /// <since_tizen> 3 </since_tizen>
606 public PropertyKey.KeyType Type
610 NDalicPINVOKE.Property_Key_type_set(swigCPtr, (int)value);
611 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
615 PropertyKey.KeyType ret = (PropertyKey.KeyType)NDalicPINVOKE.Property_Key_type_get(swigCPtr);
616 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
624 /// <since_tizen> 3 </since_tizen>
629 NDalicPINVOKE.Property_Key_indexKey_set(swigCPtr, value);
630 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
634 int ret = NDalicPINVOKE.Property_Key_indexKey_get(swigCPtr);
635 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
643 /// <since_tizen> 3 </since_tizen>
644 public string StringKey
648 NDalicPINVOKE.Property_Key_stringKey_set(swigCPtr, value);
649 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
653 string ret = NDalicPINVOKE.Property_Key_stringKey_get(swigCPtr);
654 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
662 /// <param name="key">The string key.</param>
663 /// <since_tizen> 3 </since_tizen>
664 public PropertyKey(string key) : this(NDalicPINVOKE.new_Property_Key__SWIG_0(key), true)
666 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672 /// <param name="key">The index key.</param>
673 /// <since_tizen> 3 </since_tizen>
674 public PropertyKey(int key) : this(NDalicPINVOKE.new_Property_Key__SWIG_1(key), true)
676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
680 /// Compares if rhs is equal to.
682 /// <param name="rhs">A string key to compare against.</param>
683 /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type.</returns>
684 /// <since_tizen> 3 </since_tizen>
685 public bool EqualTo(string rhs)
687 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_0(swigCPtr, rhs);
688 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
693 /// Compares if rhs is equal to.
695 /// <param name="rhs">The index key to compare against.</param>
696 /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type.</returns>
697 /// <since_tizen> 3 </since_tizen>
698 public bool EqualTo(int rhs)
700 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_1(swigCPtr, rhs);
701 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
706 /// Compares if rhs is equal to
708 /// <param name="rhs">A key to compare against</param>
709 /// <returns>Returns true if the keys are of the same type and have the same value.</returns>
710 /// <since_tizen> 3 </since_tizen>
711 public bool EqualTo(PropertyKey rhs)
713 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
714 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
719 /// Compares if rhs is not equal to.
721 /// <param name="rhs">The index key to compare against.</param>
722 /// <returns>Returns true if the key is not equal or not a string key.</returns>
723 /// <since_tizen> 3 </since_tizen>
724 public bool NotEqualTo(string rhs)
726 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_0(swigCPtr, rhs);
727 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
732 /// Compares if rhs is not equal to.
734 /// <param name="rhs">The index key to compare against.</param>
735 /// <returns>Returns true if the key is not equal, or not the index key.</returns>
736 /// <since_tizen> 3 </since_tizen>
737 public bool NotEqualTo(int rhs)
739 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_1(swigCPtr, rhs);
740 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
745 /// Compares if rhs is not equal to.
747 /// <param name="rhs">A key to compare against.</param>
748 /// <returns>Returns true if the keys are not of the same type or are not equal.</returns>
749 /// <since_tizen> 3 </since_tizen>
750 public bool NotEqualTo(PropertyKey rhs)
752 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
753 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
760 /// <since_tizen> 3 </since_tizen>
764 /// The type of key is index.
766 /// <since_tizen> 3 </since_tizen>
769 /// The type of key is string.
771 /// <since_tizen> 3 </since_tizen>
778 /// A map of property values, the key type could be string or Property::Index.
780 public class PropertyMap : global::System.IDisposable
782 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
786 /// <since_tizen> 3 </since_tizen>
787 protected bool swigCMemOwn;
789 internal PropertyMap(global::System.IntPtr cPtr, bool cMemoryOwn)
791 swigCMemOwn = cMemoryOwn;
792 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
795 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyMap obj)
797 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
800 //A Flag to check who called Dispose(). (By User or DisposeQueue)
801 private bool isDisposeQueued = false;
803 /// <since_tizen> 3 </since_tizen>
804 /// A Flat to check if it is already disposed.
806 protected bool disposed = false;
811 /// <since_tizen> 3 </since_tizen>
816 isDisposeQueued = true;
817 DisposeQueue.Instance.Add(this);
824 /// <since_tizen> 3 </since_tizen>
825 public void Dispose()
827 //Throw excpetion if Dispose() is called in separate thread.
828 if (!Window.IsInstalled())
830 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
835 Dispose(DisposeTypes.Implicit);
839 Dispose(DisposeTypes.Explicit);
840 System.GC.SuppressFinalize(this);
847 /// <since_tizen> 3 </since_tizen>
848 protected virtual void Dispose(DisposeTypes type)
855 if(type == DisposeTypes.Explicit)
858 //Release your own managed resources here.
859 //You should release all of your own disposable objects here.
862 //Release your own unmanaged resources here.
863 //You should not access any managed member here except static instance.
864 //because the execution order of Finalizes is non-deterministic.
866 if (swigCPtr.Handle != global::System.IntPtr.Zero)
871 NDalicPINVOKE.delete_Property_Map(swigCPtr);
873 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
879 /// The operator to access the element with the specified string key.<br />
880 /// If an element with the key does not exist, then it is created.<br />
882 /// <param name="key">The key whose value to access.</param>
883 /// <returns>A value for the element with the specified key.</returns>
884 /// <since_tizen> 3 </since_tizen>
885 public PropertyValue this[string key]
889 return ValueOfIndex(key);
894 /// The operator to access the element with the specified index key.<br />
895 /// If an element with the key does not exist, then it is created.<br />
897 /// <param name="key">The key whose value to access.</param>
898 /// <returns>A value for the element with the specified key.</returns>
899 /// <since_tizen> 3 </since_tizen>
900 public PropertyValue this[int key]
904 return ValueOfIndex(key);
911 /// <since_tizen> 3 </since_tizen>
912 public PropertyMap() : this(NDalicPINVOKE.new_Property_Map__SWIG_0(), true)
914 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
918 /// The copy constructor.
920 /// <param name="other">The map to copy from.</param>
921 /// <since_tizen> 3 </since_tizen>
922 public PropertyMap(PropertyMap other) : this(NDalicPINVOKE.new_Property_Map__SWIG_1(PropertyMap.getCPtr(other)), true)
924 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
928 /// Retrieves the number of elements in the map.
930 /// <returns>The number of elements in the map.</returns>
931 /// <since_tizen> 3 </since_tizen>
934 uint ret = NDalicPINVOKE.Property_Map_Count(swigCPtr);
935 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
940 /// Returns whether the map is empty.
942 /// <returns>Returns true if empty, false otherwise.</returns>
943 /// <since_tizen> 3 </since_tizen>
946 bool ret = NDalicPINVOKE.Property_Map_Empty(swigCPtr);
947 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
952 /// Inserts the key-value pair in the map, with the key type as string.<br />
953 /// Does not check for duplicates.<br />
955 /// <param name="key">The key to insert.</param>
956 /// <param name="value">The value to insert.</param>
957 /// <since_tizen> 3 </since_tizen>
958 public void Insert(string key, PropertyValue value)
960 NDalicPINVOKE.Property_Map_Insert__SWIG_0(swigCPtr, key, PropertyValue.getCPtr(value));
961 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
965 /// Inserts the key-value pair in the map, with the key type as index.<br />
966 /// Does not check for duplicates.<br />
968 /// <param name="key">The key to insert.</param>
969 /// <param name="value">The value to insert.</param>
970 /// <since_tizen> 3 </since_tizen>
971 public void Insert(int key, PropertyValue value)
973 NDalicPINVOKE.Property_Map_Insert__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value));
974 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
978 /// Inserts the key-value pair in the map, with the key type as string.<br />
979 /// Does not check for duplicates.<br />
981 /// <param name="key">The key to insert.</param>
982 /// <param name="value">The value to insert.</param>
983 /// <returns>Returns a reference to this object.</returns>
984 /// <since_tizen> 3 </since_tizen>
985 public PropertyMap Add(string key, PropertyValue value)
987 PropertyMap ret = new PropertyMap(NDalicPINVOKE.Property_Map_Add__SWIG_0(swigCPtr, key, PropertyValue.getCPtr(value)), false);
988 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
993 /// Inserts the key-value pair in the map, with the key type as string.<br />
994 /// Does not check for duplicates.<br />
996 /// <param name="key">The key to insert.</param>
997 /// <param name="value">The value to insert.</param>
998 /// <returns>Returns a reference to this object.</returns>
999 /// <since_tizen> 3 </since_tizen>
1000 public PropertyMap Add(int key, PropertyValue value)
1002 PropertyMap ret = new PropertyMap(NDalicPINVOKE.Property_Map_Add__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value)), false);
1003 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1008 /// Retrieves the value at the specified position.
1010 /// <param name="position">The specified position.</param>
1011 /// <returns>A reference to the value at the specified position.</returns>
1012 /// <since_tizen> 3 </since_tizen>
1013 public PropertyValue GetValue(uint position)
1015 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_GetValue(swigCPtr, position), false);
1016 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1021 /// [Obsolete("Please do not use! this will be deprecated")]
1023 /// <since_tizen> 3 </since_tizen>
1024 [Obsolete("Please do not use! this will be deprecated")]
1025 public string GetKey(uint position)
1027 string ret = NDalicPINVOKE.Property_Map_GetKey(swigCPtr, position);
1028 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1033 /// Retrieves the key at the specified position.
1035 /// <param name="position">The specified position.</param>
1036 /// <returns>A copy of the key at the specified position.</returns>
1037 /// <since_tizen> 3 </since_tizen>
1038 public PropertyKey GetKeyAt(uint position)
1040 PropertyKey ret = new PropertyKey(NDalicPINVOKE.Property_Map_GetKeyAt(swigCPtr, position), true);
1041 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1046 /// [Obsolete("Please do not use! this will be deprecated")]
1048 /// <since_tizen> 3 </since_tizen>
1049 [Obsolete("Please do not use! this will be deprecated")]
1050 public PropertyValue Find(string key)
1052 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_0(swigCPtr, key);
1053 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1054 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1059 /// Finds the value for the specified key if it exists.
1061 /// <param name="key">The key to find.</param>
1062 /// <returns>The value if it exists, an empty object otherwise.</returns>
1063 /// <since_tizen> 3 </since_tizen>
1064 public PropertyValue Find(int key)
1066 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_2(swigCPtr, key);
1067 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1068 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1073 /// Finds the value for the specified keys if either exist.
1075 /// <param name="indexKey">The index key to find.</param>
1076 /// <param name="stringKey">The string key to find.</param>
1077 /// <returns>The value if it exists, an empty object otherwise.</returns>
1078 /// <since_tizen> 3 </since_tizen>
1079 public PropertyValue Find(int indexKey, string stringKey)
1081 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_3(swigCPtr, indexKey, stringKey);
1082 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1083 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1088 /// [Obsolete("Please do not use! this will be deprecated")]
1090 /// <since_tizen> 3 </since_tizen>
1091 [Obsolete("Please do not use! this will be deprecated")]
1092 public PropertyValue Find(string key, PropertyType type)
1094 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_4(swigCPtr, key, (int)type);
1095 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1096 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1101 /// [Obsolete("Please do not use! this will be deprecated")]
1103 /// <since_tizen> 3 </since_tizen>
1104 [Obsolete("Please do not use! this will be deprecated")]
1105 public PropertyValue Find(int key, PropertyType type)
1107 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_5(swigCPtr, key, (int)type);
1108 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1109 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1116 /// <since_tizen> 3 </since_tizen>
1119 NDalicPINVOKE.Property_Map_Clear(swigCPtr);
1120 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1124 /// Merges values from the map 'from' to the current.<br />
1125 /// Any values in 'from' will overwrite the values in the current map.<br />
1127 /// <param name="from">The map to merge from.</param>
1128 /// <since_tizen> 3 </since_tizen>
1129 public void Merge(PropertyMap from)
1131 NDalicPINVOKE.Property_Map_Merge(swigCPtr, PropertyMap.getCPtr(from));
1132 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1136 /// Retrieves the element with the specified string key.
1138 /// <param name="key">The key whose value to retrieve.</param>
1139 /// <returns>The value for the element with the specified key.</returns>
1140 internal PropertyValue ValueOfIndex(string key)
1142 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_0(swigCPtr, key), false);
1143 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1148 /// Retrieves the element with the specified index key.
1150 /// <param name="key">The key whose value to retrieve.</param>
1151 /// <returns>The value for the element with the specified key.</returns>
1152 internal PropertyValue ValueOfIndex(int key)
1154 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_2(swigCPtr, key), false);
1155 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1161 /// A value-type representing a property value.
1163 public class PropertyValue : global::System.IDisposable
1165 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1169 /// <since_tizen> 3 </since_tizen>
1170 protected bool swigCMemOwn;
1172 internal PropertyValue(global::System.IntPtr cPtr, bool cMemoryOwn)
1174 swigCMemOwn = cMemoryOwn;
1175 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1178 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyValue obj)
1180 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1183 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1184 private bool isDisposeQueued = false;
1186 /// <since_tizen> 3 </since_tizen>
1187 /// A Flat to check if it is already disposed.
1189 protected bool disposed = false;
1194 /// <since_tizen> 3 </since_tizen>
1197 if(!isDisposeQueued)
1199 isDisposeQueued = true;
1200 DisposeQueue.Instance.Add(this);
1207 /// <since_tizen> 3 </since_tizen>
1208 public void Dispose()
1210 //Throw excpetion if Dispose() is called in separate thread.
1211 if (!Window.IsInstalled())
1213 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1216 if (isDisposeQueued)
1218 Dispose(DisposeTypes.Implicit);
1222 Dispose(DisposeTypes.Explicit);
1223 System.GC.SuppressFinalize(this);
1230 /// <since_tizen> 3 </since_tizen>
1231 protected virtual void Dispose(DisposeTypes type)
1238 if(type == DisposeTypes.Explicit)
1241 //Release your own managed resources here.
1242 //You should release all of your own disposable objects here.
1245 //Release your own unmanaged resources here.
1246 //You should not access any managed member here except static instance.
1247 //because the execution order of Finalizes is non-deterministic.
1249 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1253 swigCMemOwn = false;
1254 NDalicPINVOKE.delete_Property_Value(swigCPtr);
1256 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1263 /// An extension to the property value class that allows us to create a
1264 /// Property value from a C# object, for example, integer, float, or string.<br />
1266 /// <param name="obj">An object to create.</param>
1267 /// <returns>The created value.</returns>
1268 /// <since_tizen> 3 </since_tizen>
1269 static public PropertyValue CreateFromObject(System.Object obj)
1271 System.Type type = obj.GetType();
1273 PropertyValue value;
1275 if (type.Equals(typeof(int)))
1277 value = new PropertyValue((int)obj);
1279 if (type.Equals(typeof(System.Int32)))
1281 value = new PropertyValue((int)obj);
1283 else if (type.Equals(typeof(bool)))
1285 value = new PropertyValue((bool)obj);
1287 else if (type.Equals(typeof(float)))
1289 value = new PropertyValue((float)obj);
1291 else if (type.Equals(typeof(string)))
1293 value = new PropertyValue((string)obj);
1295 else if (type.Equals(typeof(Vector2)))
1297 value = new PropertyValue((Vector2)obj);
1299 else if (type.Equals(typeof(Vector3)))
1301 value = new PropertyValue((Vector3)obj);
1303 else if (type.Equals(typeof(Vector4)))
1305 value = new PropertyValue((Vector4)obj);
1307 else if (type.Equals(typeof(Position)))
1309 value = new PropertyValue((Position)obj);
1311 else if (type.Equals(typeof(Position2D)))
1313 value = new PropertyValue((Position2D)obj);
1315 else if (type.Equals(typeof(Size)))
1317 value = new PropertyValue((Size)obj);
1319 else if (type.Equals(typeof(Size2D)))
1321 value = new PropertyValue((Size2D)obj);
1323 else if (type.Equals(typeof(Color)))
1325 value = new PropertyValue((Color)obj);
1327 else if (type.Equals(typeof(Rotation)))
1329 value = new PropertyValue((Rotation)obj);
1331 else if (type.Equals(typeof(RelativeVector2)))
1333 value = new PropertyValue((RelativeVector2)obj);
1335 else if (type.Equals(typeof(RelativeVector3)))
1337 value = new PropertyValue((RelativeVector3)obj);
1339 else if (type.Equals(typeof(RelativeVector4)))
1341 value = new PropertyValue((RelativeVector4)obj);
1345 throw new global::System.InvalidOperationException("Unimplemented type for Property Value :" + type.Name);
1347 NUILog.Debug(" got an property value of =" + type.Name);
1352 /// Creates a Size2D property value.
1354 /// <param name="vectorValue">Size2D values.</param>
1355 /// <since_tizen> 3 </since_tizen>
1356 public PropertyValue(Size2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true)
1358 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1362 /// Creates a Position2D property value.
1364 /// <param name="vectorValue">Position2D values.</param>
1365 /// <since_tizen> 3 </since_tizen>
1366 public PropertyValue(Position2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true)
1368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1372 /// Creates a Size property value.
1374 /// <param name="vectorValue">Size values.</param>
1375 internal PropertyValue(Size vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true)
1377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1381 /// Creates a Position property value.
1383 /// <param name="vectorValue">Position values.</param>
1384 /// <since_tizen> 3 </since_tizen>
1385 public PropertyValue(Position vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true)
1387 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1391 /// Creates a Color property value.
1393 /// <param name="vectorValue">Color values.</param>
1394 /// <since_tizen> 3 </since_tizen>
1395 public PropertyValue(Color vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true)
1397 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1402 /// Retrieves a Size2D value.
1404 /// <param name="vectorValue"> On return, a Size2D value.</param>
1405 /// <since_tizen> 3 </since_tizen>
1406 public bool Get(Size2D vectorValue)
1408 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
1409 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1414 /// Retrieves a Position2D value.
1416 /// <param name="vectorValue"> On return, a Position2D value.</param>
1417 /// <since_tizen> 3 </since_tizen>
1418 public bool Get(Position2D vectorValue)
1420 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
1421 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1426 /// Retrieves a Size value.
1428 /// <param name="vectorValue"> On return, a size value.</param>
1429 internal bool Get(Size vectorValue)
1431 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
1432 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1437 /// Retrieves a Position value.
1439 /// <param name="vectorValue"> On return, a position value.</param>
1440 /// <since_tizen> 3 </since_tizen>
1441 public bool Get(Position vectorValue)
1443 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
1444 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1449 /// Retrieves a Color value.
1451 /// <param name="vectorValue"> On return, a color value.</param>
1452 /// <since_tizen> 3 </since_tizen>
1453 public bool Get(Color vectorValue)
1455 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
1456 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1463 /// The default constructor.
1465 /// <since_tizen> 3 </since_tizen>
1466 public PropertyValue() : this(NDalicPINVOKE.new_Property_Value__SWIG_0(), true)
1468 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1472 /// Creates a boolean property value.
1474 /// <param name="boolValue">A boolean value.</param>
1475 /// <since_tizen> 3 </since_tizen>
1476 public PropertyValue(bool boolValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_1(boolValue), true)
1478 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1482 /// Creates an integer property value.
1484 /// <param name="integerValue">An integer value.</param>
1485 /// <since_tizen> 3 </since_tizen>
1486 public PropertyValue(int integerValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_2(integerValue), true)
1488 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1492 /// Creates a float property value.
1494 /// <param name="floatValue">A floating-point value.</param>
1495 /// <since_tizen> 3 </since_tizen>
1496 public PropertyValue(float floatValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_3(floatValue), true)
1498 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1502 /// Creates a Vector2 property value.
1504 /// <param name="vectorValue">A vector of 2 floating-point values.</param>
1505 /// <since_tizen> 3 </since_tizen>
1506 public PropertyValue(Vector2 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Vector2.getCPtr(vectorValue)), true)
1508 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1512 /// Creates a Vector3 property value.
1514 /// <param name="vectorValue">A vector of 3 floating-point values.</param>
1515 /// <since_tizen> 3 </since_tizen>
1516 public PropertyValue(Vector3 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Vector3.getCPtr(vectorValue)), true)
1518 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1522 /// Creates a Vector4 property value.
1524 /// <param name="vectorValue">A vector of 4 floating-point values.</param>
1525 /// <since_tizen> 3 </since_tizen>
1526 public PropertyValue(Vector4 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Vector4.getCPtr(vectorValue)), true)
1528 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1531 internal PropertyValue(Matrix3 matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_7(Matrix3.getCPtr(matrixValue)), true)
1533 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1536 internal PropertyValue(Matrix matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true)
1538 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1542 /// Creates a Rectangle property value.
1544 /// <param name="vectorValue">Rectangle values.</param>
1545 /// <since_tizen> 3 </since_tizen>
1546 public PropertyValue(Rectangle vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_9(Rectangle.getCPtr(vectorValue)), true)
1548 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1551 internal PropertyValue(AngleAxis angleAxis) : this(NDalicPINVOKE.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true)
1553 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1557 /// Creates a Rotation property value.
1559 /// <param name="quaternion">Rotation values.</param>
1560 /// <since_tizen> 3 </since_tizen>
1561 public PropertyValue(Rotation quaternion) : this(NDalicPINVOKE.new_Property_Value__SWIG_11(Rotation.getCPtr(quaternion)), true)
1563 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1567 /// Creates a string property value.
1569 /// <param name="stringValue">A string.</param>
1570 /// <since_tizen> 3 </since_tizen>
1571 public PropertyValue(string stringValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_12(stringValue), true)
1573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1577 /// Creates an array property value.
1579 /// <param name="arrayValue">An array.</param>
1580 /// <since_tizen> 3 </since_tizen>
1581 public PropertyValue(PropertyArray arrayValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_14(PropertyArray.getCPtr(arrayValue)), true)
1583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1587 /// Creates a map property value.
1589 /// <param name="mapValue">An array.</param>
1590 /// <since_tizen> 3 </since_tizen>
1591 public PropertyValue(PropertyMap mapValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_15(PropertyMap.getCPtr(mapValue)), true)
1593 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1597 /// Creates a PropertyType value.
1599 /// <param name="type">A PropertyType value.</param>
1600 /// <since_tizen> 3 </since_tizen>
1601 public PropertyValue(PropertyType type) : this(NDalicPINVOKE.new_Property_Value__SWIG_16((int)type), true)
1603 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1607 /// Creates a PropertyValue value.
1609 /// <param name="value">A PropertyValue value.</param>
1610 /// <since_tizen> 3 </since_tizen>
1611 public PropertyValue(PropertyValue value) : this(NDalicPINVOKE.new_Property_Value__SWIG_17(PropertyValue.getCPtr(value)), true)
1613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1617 /// Queries the type of this property value.
1619 /// <returns>The type ID</returns>
1620 /// <since_tizen> 3 </since_tizen>
1621 public new PropertyType GetType()
1623 PropertyType ret = (PropertyType)NDalicPINVOKE.Property_Value_GetType(swigCPtr);
1624 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1629 /// Retrieves a boolean value.
1631 /// <param name="boolValue">On return, a boolean value.</param>
1632 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1633 /// <since_tizen> 3 </since_tizen>
1634 public bool Get(out bool boolValue)
1636 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_1(swigCPtr, out boolValue);
1637 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1642 /// Retrieves a floating-point value.
1644 /// <param name="floatValue">On return, a floating-point value.</param>
1645 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1646 /// <since_tizen> 3 </since_tizen>
1647 public bool Get(out float floatValue)
1649 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_2(swigCPtr, out floatValue);
1650 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1655 /// Retrieves an integer value.
1657 /// <param name="integerValue">On return, an integer value.</param>
1658 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1659 /// <since_tizen> 3 </since_tizen>
1660 public bool Get(out int integerValue)
1662 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_3(swigCPtr, out integerValue);
1663 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1668 /// Retrieves an integer rectangle.
1670 /// <param name="rect">On return, an integer rectangle.</param>
1671 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1672 /// <since_tizen> 3 </since_tizen>
1673 public bool Get(Rectangle rect)
1675 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
1676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1681 /// Retrieves a vector value.
1683 /// <param name="vectorValue">On return, a vector value.</param>
1684 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1685 /// <since_tizen> 3 </since_tizen>
1686 public bool Get(Vector2 vectorValue)
1688 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
1689 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1694 /// Retrieves a vector value.
1696 /// <param name="vectorValue">On return, a vector value.</param>
1697 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1698 /// <since_tizen> 3 </since_tizen>
1699 public bool Get(Vector3 vectorValue)
1701 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
1702 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1707 /// Retrieves a vector value.
1709 /// <param name="vectorValue">On return, a vector value.</param>
1710 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1711 /// <since_tizen> 3 </since_tizen>
1712 public bool Get(Vector4 vectorValue)
1714 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
1715 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1719 internal bool Get(Matrix3 matrixValue)
1721 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_8(swigCPtr, Matrix3.getCPtr(matrixValue));
1722 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1726 internal bool Get(Matrix matrixValue)
1728 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
1729 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1733 internal bool Get(AngleAxis angleAxisValue)
1735 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
1736 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1741 /// Retrieves a Rotation value.
1743 /// <param name="quaternionValue">On return, a rotation value.</param>
1744 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1745 /// <since_tizen> 3 </since_tizen>
1746 public bool Get(Rotation quaternionValue)
1748 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
1749 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1754 /// Retrieves a string property value.
1756 /// <param name="stringValue">On return, a string.</param>
1757 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1758 /// <since_tizen> 3 </since_tizen>
1759 public bool Get(out string stringValue)
1761 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
1762 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1767 /// Retrieves an array property value.
1769 /// <param name="arrayValue">On return, the array as a vector property values.</param>
1770 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1771 /// <since_tizen> 3 </since_tizen>
1772 public bool Get(PropertyArray arrayValue)
1774 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_13(swigCPtr, PropertyArray.getCPtr(arrayValue));
1775 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1780 /// Retrieves a map property value.
1782 /// <param name="mapValue">On return, the map as vector of string and property value pairs.</param>
1783 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1784 /// <since_tizen> 3 </since_tizen>
1785 public bool Get(PropertyMap mapValue)
1787 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_14(swigCPtr, PropertyMap.getCPtr(mapValue));
1788 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();