1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
22 internal class Property : global::System.IDisposable
24 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
25 protected bool swigCMemOwn;
27 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
29 swigCMemOwn = cMemoryOwn;
30 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
33 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
35 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38 //A Flag to check who called Dispose(). (By User or DisposeQueue)
39 private bool isDisposeQueued = false;
40 //A Flat to check if it is already disposed.
41 protected bool disposed = false;
47 isDisposeQueued = true;
48 DisposeQueue.Instance.Add(this);
54 //Throw excpetion if Dispose() is called in separate thread.
55 if (!Window.IsInstalled())
57 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
62 Dispose(DisposeTypes.Implicit);
66 Dispose(DisposeTypes.Explicit);
67 System.GC.SuppressFinalize(this);
71 protected virtual void Dispose(DisposeTypes type)
78 if(type == DisposeTypes.Explicit)
81 //Release your own managed resources here.
82 //You should release all of your own disposable objects here.
85 //Release your own unmanaged resources here.
86 //You should not access any managed member here except static instance.
87 //because the execution order of Finalizes is non-deterministic.
89 if (swigCPtr.Handle != global::System.IntPtr.Zero)
94 NDalicPINVOKE.delete_Property(swigCPtr);
96 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
102 internal static int INVALID_INDEX
106 int ret = NDalicPINVOKE.Property_INVALID_INDEX_get();
107 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
112 internal static int INVALID_KEY
116 int ret = NDalicPINVOKE.Property_INVALID_KEY_get();
117 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122 internal static int INVALID_COMPONENT_INDEX
126 int ret = NDalicPINVOKE.Property_INVALID_COMPONENT_INDEX_get();
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133 /// This constructor creates a property instance.
135 /// <param name="arg0">A valid handle to the target object.</param>
136 /// <param name="propertyIndex">The index of a property.</param>
137 /// <since_tizen> 3 </since_tizen>
138 public Property(Animatable arg0, int propertyIndex) : this(NDalicPINVOKE.new_Property__SWIG_0(Animatable.getCPtr(arg0), propertyIndex), true)
140 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
144 /// This constructor creates a property instance.
146 /// <param name="arg0">A valid handle to the target object.</param>
147 /// <param name="propertyIndex">The index of a property.</param>
148 /// <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>
149 /// <since_tizen> 3 </since_tizen>
150 public Property(Animatable arg0, int propertyIndex, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_1(Animatable.getCPtr(arg0), propertyIndex, componentIndex), true)
152 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156 /// This constructor creates a property instance.<br>
157 /// This performs a property index query and is therefore slower than constructing a property directly with the index.<br>
159 /// <param name="arg0">A valid handle to the target object.</param>
160 /// <param name="propertyName">The property name.</param>
161 /// <since_tizen> 3 </since_tizen>
162 public Property(Animatable arg0, string propertyName) : this(NDalicPINVOKE.new_Property__SWIG_2(Animatable.getCPtr(arg0), propertyName), true)
164 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
168 /// This constructor creates a property instance.<br>
169 /// This performs a property index query and is therefore slower than constructing a property directly with the index.<br>
171 /// <param name="arg0">A valid handle to the target object.</param>
172 /// <param name="propertyName">The property name.</param>
173 /// <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>
174 /// <since_tizen> 3 </since_tizen>
175 public Property(Animatable arg0, string propertyName, int componentIndex) : this(NDalicPINVOKE.new_Property__SWIG_3(Animatable.getCPtr(arg0), propertyName, componentIndex), true)
177 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
180 internal Animatable _object
184 NDalicPINVOKE.Property__object_set(swigCPtr, Animatable.getCPtr(value));
185 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
189 Animatable ret = new Animatable(NDalicPINVOKE.Property__object_get(swigCPtr), false);
190 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196 /// Gets or sets the index of the property.
198 /// <since_tizen> 3 </since_tizen>
199 public int propertyIndex
203 NDalicPINVOKE.Property_propertyIndex_set(swigCPtr, value);
204 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
208 int ret = NDalicPINVOKE.Property_propertyIndex_get(swigCPtr);
209 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 /// Gets or sets the component index of the property.
217 /// <since_tizen> 3 </since_tizen>
218 public int componentIndex
222 NDalicPINVOKE.Property_componentIndex_set(swigCPtr, value);
223 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227 int ret = NDalicPINVOKE.Property_componentIndex_get(swigCPtr);
228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 /// An array of property values.
238 public class PropertyArray : global::System.IDisposable
240 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
241 protected bool swigCMemOwn;
243 internal PropertyArray(global::System.IntPtr cPtr, bool cMemoryOwn)
245 swigCMemOwn = cMemoryOwn;
246 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
249 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyArray obj)
251 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
254 //A Flag to check who called Dispose(). (By User or DisposeQueue)
255 private bool isDisposeQueued = false;
256 //A Flat to check if it is already disposed.
257 protected bool disposed = false;
263 isDisposeQueued = true;
264 DisposeQueue.Instance.Add(this);
268 public void Dispose()
270 //Throw excpetion if Dispose() is called in separate thread.
271 if (!Window.IsInstalled())
273 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
278 Dispose(DisposeTypes.Implicit);
282 Dispose(DisposeTypes.Explicit);
283 System.GC.SuppressFinalize(this);
287 protected virtual void Dispose(DisposeTypes type)
294 if(type == DisposeTypes.Explicit)
297 //Release your own managed resources here.
298 //You should release all of your own disposable objects here.
301 //Release your own unmanaged resources here.
302 //You should not access any managed member here except static instance.
303 //because the execution order of Finalizes is non-deterministic.
305 if (swigCPtr.Handle != global::System.IntPtr.Zero)
310 NDalicPINVOKE.delete_Property_Array(swigCPtr);
312 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
318 /// The operator to access an element.
320 /// <param name="index">The element index to access. No bounds checking is performed.</param>
321 /// <returns>The reference to the element.</returns>
322 /// <since_tizen> 3 </since_tizen>
323 public PropertyValue this[uint index]
327 return ValueOfIndex(index);
334 /// <since_tizen> 3 </since_tizen>
335 public PropertyArray() : this(NDalicPINVOKE.new_Property_Array__SWIG_0(), true)
337 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
340 internal PropertyArray(PropertyArray other) : this(NDalicPINVOKE.new_Property_Array__SWIG_1(PropertyArray.getCPtr(other)), true)
342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
346 /// Retrieves the number of elements in the array.
348 /// <returns>The number of elements in the array.</returns>
349 /// <since_tizen> 3 </since_tizen>
352 uint ret = NDalicPINVOKE.Property_Array_Size(swigCPtr);
353 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
358 /// Retrieves the number of elements in the array.
360 /// <returns>The number of elements in the array.</returns>
361 /// <since_tizen> 3 </since_tizen>
364 uint ret = NDalicPINVOKE.Property_Array_Count(swigCPtr);
365 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 /// Returns whether the array is empty.
372 /// <returns>Returns true if empty, false otherwise.</returns>
373 /// <since_tizen> 3 </since_tizen>
376 bool ret = NDalicPINVOKE.Property_Array_Empty(swigCPtr);
377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
382 /// Clears the array.
384 /// <since_tizen> 3 </since_tizen>
387 NDalicPINVOKE.Property_Array_Clear(swigCPtr);
388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392 /// Increases the capacity of the array.
394 /// <param name="size">The size to reserve.</param>
395 /// <since_tizen> 3 </since_tizen>
396 public void Reserve(uint size)
398 NDalicPINVOKE.Property_Array_Reserve(swigCPtr, size);
399 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405 /// <param name="size">The size to resize</param>
406 /// <since_tizen> 3 </since_tizen>
407 public void Resize(uint size)
409 NDalicPINVOKE.Property_Array_Resize(swigCPtr, size);
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
414 /// Retrieves the capacity of the array.
416 /// <returns>The allocated capacity of the array.</returns>
417 /// <since_tizen> 3 </since_tizen>
418 public uint Capacity()
420 uint ret = NDalicPINVOKE.Property_Array_Capacity(swigCPtr);
421 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
426 /// Adds an element to the array.
428 /// <param name="value">The value to add at the end of the array.</param>
429 /// <since_tizen> 3 </since_tizen>
430 public void PushBack(PropertyValue value)
432 NDalicPINVOKE.Property_Array_PushBack(swigCPtr, PropertyValue.getCPtr(value));
433 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437 /// Adds an element to the array.
439 /// <param name="value">The value to add at the end of the array.</param>
440 /// <since_tizen> 3 </since_tizen>
441 public PropertyArray Add(PropertyValue value)
443 PropertyArray ret = new PropertyArray(NDalicPINVOKE.Property_Array_Add(swigCPtr, PropertyValue.getCPtr(value)), false);
444 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
449 /// Accesses an element.
451 /// <param name="index">The element index to access. No bounds checking is performed.</param>
452 /// <returns>The reference to the element.</returns>
453 /// <since_tizen> 3 </since_tizen>
454 public PropertyValue GetElementAt(uint index)
456 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_GetElementAt__SWIG_0(swigCPtr, index), false);
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
462 /// Retrieves the value of elements in the array.
464 /// <param name="index">The element index to retrieve.</param>
465 /// <returns>The reference to the element.</returns>
466 private PropertyValue ValueOfIndex(uint index)
468 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Array_ValueOfIndex__SWIG_0(swigCPtr, index), false);
469 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
475 /// A key type which can be either a std::string or a Property::Index.
477 public class PropertyKey : global::System.IDisposable
479 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
480 protected bool swigCMemOwn;
482 internal PropertyKey(global::System.IntPtr cPtr, bool cMemoryOwn)
484 swigCMemOwn = cMemoryOwn;
485 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
488 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyKey obj)
490 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
493 //A Flag to check who called Dispose(). (By User or DisposeQueue)
494 private bool isDisposeQueued = false;
495 //A Flat to check if it is already disposed.
496 protected bool disposed = false;
502 isDisposeQueued = true;
503 DisposeQueue.Instance.Add(this);
507 public void Dispose()
509 //Throw excpetion if Dispose() is called in separate thread.
510 if (!Window.IsInstalled())
512 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
517 Dispose(DisposeTypes.Implicit);
521 Dispose(DisposeTypes.Explicit);
522 System.GC.SuppressFinalize(this);
526 protected virtual void Dispose(DisposeTypes type)
533 if(type == DisposeTypes.Explicit)
536 //Release your own managed resources here.
537 //You should release all of your own disposable objects here.
540 //Release your own unmanaged resources here.
541 //You should not access any managed member here except static instance.
542 //because the execution order of Finalizes is non-deterministic.
544 if (swigCPtr.Handle != global::System.IntPtr.Zero)
549 NDalicPINVOKE.delete_Property_Key(swigCPtr);
551 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
557 /// The type of the key.
559 /// <since_tizen> 3 </since_tizen>
560 public PropertyKey.KeyType Type
564 NDalicPINVOKE.Property_Key_type_set(swigCPtr, (int)value);
565 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
569 PropertyKey.KeyType ret = (PropertyKey.KeyType)NDalicPINVOKE.Property_Key_type_get(swigCPtr);
570 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
578 /// <since_tizen> 3 </since_tizen>
583 NDalicPINVOKE.Property_Key_indexKey_set(swigCPtr, value);
584 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
588 int ret = NDalicPINVOKE.Property_Key_indexKey_get(swigCPtr);
589 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
597 /// <since_tizen> 3 </since_tizen>
598 public string StringKey
602 NDalicPINVOKE.Property_Key_stringKey_set(swigCPtr, value);
603 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
607 string ret = NDalicPINVOKE.Property_Key_stringKey_get(swigCPtr);
608 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
616 /// <param name="key">The string key.</param>
617 /// <since_tizen> 3 </since_tizen>
618 public PropertyKey(string key) : this(NDalicPINVOKE.new_Property_Key__SWIG_0(key), true)
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626 /// <param name="key">The index key.</param>
627 /// <since_tizen> 3 </since_tizen>
628 public PropertyKey(int key) : this(NDalicPINVOKE.new_Property_Key__SWIG_1(key), true)
630 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
634 /// Compares if rhs is equal to.
636 /// <param name="rhs">A string key to compare against.</param>
637 /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type.</returns>
638 /// <since_tizen> 3 </since_tizen>
639 public bool EqualTo(string rhs)
641 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_0(swigCPtr, rhs);
642 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
647 /// Compares if rhs is equal to.
649 /// <param name="rhs">The index key to compare against.</param>
650 /// <returns>Returns true if the key compares, or false if it isn't equal or of the wrong type.</returns>
651 /// <since_tizen> 3 </since_tizen>
652 public bool EqualTo(int rhs)
654 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_1(swigCPtr, rhs);
655 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
660 /// Compares if rhs is equal to
662 /// <param name="rhs">A key to compare against</param>
663 /// <returns>Returns true if the keys are of the same type and have the same value.</returns>
664 /// <since_tizen> 3 </since_tizen>
665 public bool EqualTo(PropertyKey rhs)
667 bool ret = NDalicPINVOKE.Property_Key_EqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
668 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
673 /// Compares if rhs is not equal to.
675 /// <param name="rhs">The index key to compare against.</param>
676 /// <returns>Returns true if the key is not equal or not a string key.</returns>
677 /// <since_tizen> 3 </since_tizen>
678 public bool NotEqualTo(string rhs)
680 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_0(swigCPtr, rhs);
681 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686 /// Compares if rhs is not equal to.
688 /// <param name="rhs">The index key to compare against.</param>
689 /// <returns>Returns true if the key is not equal, or not the index key.</returns>
690 /// <since_tizen> 3 </since_tizen>
691 public bool NotEqualTo(int rhs)
693 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_1(swigCPtr, rhs);
694 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
699 /// Compares if rhs is not equal to.
701 /// <param name="rhs">A key to compare against.</param>
702 /// <returns>Returns true if the keys are not of the same type or are not equal.</returns>
703 /// <since_tizen> 3 </since_tizen>
704 public bool NotEqualTo(PropertyKey rhs)
706 bool ret = NDalicPINVOKE.Property_Key_NotEqualTo__SWIG_2(swigCPtr, PropertyKey.getCPtr(rhs));
707 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
714 /// <since_tizen> 3 </since_tizen>
724 /// A map of property values, the key type could be string or Property::Index.
726 public class PropertyMap : global::System.IDisposable
728 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
729 protected bool swigCMemOwn;
731 internal PropertyMap(global::System.IntPtr cPtr, bool cMemoryOwn)
733 swigCMemOwn = cMemoryOwn;
734 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
737 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyMap obj)
739 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
742 //A Flag to check who called Dispose(). (By User or DisposeQueue)
743 private bool isDisposeQueued = false;
744 //A Flat to check if it is already disposed.
745 protected bool disposed = false;
751 isDisposeQueued = true;
752 DisposeQueue.Instance.Add(this);
756 public void Dispose()
758 //Throw excpetion if Dispose() is called in separate thread.
759 if (!Window.IsInstalled())
761 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
766 Dispose(DisposeTypes.Implicit);
770 Dispose(DisposeTypes.Explicit);
771 System.GC.SuppressFinalize(this);
775 protected virtual void Dispose(DisposeTypes type)
782 if(type == DisposeTypes.Explicit)
785 //Release your own managed resources here.
786 //You should release all of your own disposable objects here.
789 //Release your own unmanaged resources here.
790 //You should not access any managed member here except static instance.
791 //because the execution order of Finalizes is non-deterministic.
793 if (swigCPtr.Handle != global::System.IntPtr.Zero)
798 NDalicPINVOKE.delete_Property_Map(swigCPtr);
800 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
806 /// The operator to access the element with the specified string key.<br>
807 /// If an element with the key does not exist, then it is created.<br>
809 /// <param name="key">The key whose value to access.</param>
810 /// <returns>A value for the element with the specified key.</returns>
811 /// <since_tizen> 3 </since_tizen>
812 public PropertyValue this[string key]
816 return ValueOfIndex(key);
821 /// The operator to access the element with the specified index key.<br>
822 /// If an element with the key does not exist, then it is created.<br>
824 /// <param name="key">The key whose value to access.</param>
825 /// <returns>A value for the element with the specified key.</returns>
826 /// <since_tizen> 3 </since_tizen>
827 public PropertyValue this[int key]
831 return ValueOfIndex(key);
838 /// <since_tizen> 3 </since_tizen>
839 public PropertyMap() : this(NDalicPINVOKE.new_Property_Map__SWIG_0(), true)
841 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
845 /// The copy constructor.
847 /// <param name="other">The map to copy from.</param>
848 /// <since_tizen> 3 </since_tizen>
849 public PropertyMap(PropertyMap other) : this(NDalicPINVOKE.new_Property_Map__SWIG_1(PropertyMap.getCPtr(other)), true)
851 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
855 /// Retrieves the number of elements in the map.
857 /// <returns>The number of elements in the map.</returns>
858 /// <since_tizen> 3 </since_tizen>
861 uint ret = NDalicPINVOKE.Property_Map_Count(swigCPtr);
862 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
867 /// Returns whether the map is empty.
869 /// <returns>Returns true if empty, false otherwise.</returns>
870 /// <since_tizen> 3 </since_tizen>
873 bool ret = NDalicPINVOKE.Property_Map_Empty(swigCPtr);
874 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
879 /// Inserts the key-value pair in the map, with the key type as string.<br>
880 /// Does not check for duplicates.<br>
882 /// <param name="key">The key to insert.</param>
883 /// <param name="value">The value to insert.</param>
884 /// <since_tizen> 3 </since_tizen>
885 public void Insert(string key, PropertyValue value)
887 NDalicPINVOKE.Property_Map_Insert__SWIG_0(swigCPtr, key, PropertyValue.getCPtr(value));
888 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
892 /// Inserts the key-value pair in the map, with the key type as index.<br>
893 /// Does not check for duplicates.<br>
895 /// <param name="key">The key to insert.</param>
896 /// <param name="value">The value to insert.</param>
897 /// <since_tizen> 3 </since_tizen>
898 public void Insert(int key, PropertyValue value)
900 NDalicPINVOKE.Property_Map_Insert__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value));
901 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
905 /// Inserts the key-value pair in the map, with the key type as string.<br>
906 /// Does not check for duplicates.<br>
908 /// <param name="key">The key to insert.</param>
909 /// <param name="value">The value to insert.</param>
910 /// <returns>Returns a reference to this object.</returns>
911 /// <since_tizen> 3 </since_tizen>
912 public PropertyMap Add(string key, PropertyValue value)
914 PropertyMap ret = new PropertyMap(NDalicPINVOKE.Property_Map_Add__SWIG_0(swigCPtr, key, PropertyValue.getCPtr(value)), false);
915 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
920 /// Inserts the key-value pair in the map, with the key type as string.<br>
921 /// Does not check for duplicates.<br>
923 /// <param name="key">The key to insert.</param>
924 /// <param name="value">The value to insert.</param>
925 /// <returns>Returns a reference to this object.</returns>
926 /// <since_tizen> 3 </since_tizen>
927 public PropertyMap Add(int key, PropertyValue value)
929 PropertyMap ret = new PropertyMap(NDalicPINVOKE.Property_Map_Add__SWIG_2(swigCPtr, key, PropertyValue.getCPtr(value)), false);
930 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
935 /// Retrieves the value at the specified position.
937 /// <param name="position">The specified position.</param>
938 /// <returns>A reference to the value at the specified position.</returns>
939 /// <since_tizen> 3 </since_tizen>
940 public PropertyValue GetValue(uint position)
942 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_GetValue(swigCPtr, position), false);
943 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
947 [Obsolete("Please do not use! this will be deprecated")]
948 public string GetKey(uint position)
950 string ret = NDalicPINVOKE.Property_Map_GetKey(swigCPtr, position);
951 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
956 /// Retrieves the key at the specified position.
958 /// <param name="position">The specified position.</param>
959 /// <returns>A copy of the key at the specified position.</returns>
960 /// <since_tizen> 3 </since_tizen>
961 public PropertyKey GetKeyAt(uint position)
963 PropertyKey ret = new PropertyKey(NDalicPINVOKE.Property_Map_GetKeyAt(swigCPtr, position), true);
964 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
968 [Obsolete("Please do not use! this will be deprecated")]
969 public PropertyValue Find(string key)
971 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_0(swigCPtr, key);
972 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
973 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
978 /// Finds the value for the specified key if it exists.
980 /// <param name="key">The key to find.</param>
981 /// <returns>The value if it exists, an empty object otherwise.</returns>
982 /// <since_tizen> 3 </since_tizen>
983 public PropertyValue Find(int key)
985 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_2(swigCPtr, key);
986 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
987 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
992 /// Finds the value for the specified keys if either exist.
994 /// <param name="indexKey">The index key to find.</param>
995 /// <param name="stringKey">The string key to find.</param>
996 /// <returns>The value if it exists, an empty object otherwise.</returns>
997 /// <since_tizen> 3 </since_tizen>
998 public PropertyValue Find(int indexKey, string stringKey)
1000 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_3(swigCPtr, indexKey, stringKey);
1001 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1002 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1006 [Obsolete("Please do not use! this will be deprecated")]
1007 public PropertyValue Find(string key, PropertyType type)
1009 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_4(swigCPtr, key, (int)type);
1010 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1011 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1015 [Obsolete("Please do not use! this will be deprecated")]
1016 public PropertyValue Find(int key, PropertyType type)
1018 global::System.IntPtr cPtr = NDalicPINVOKE.Property_Map_Find__SWIG_5(swigCPtr, key, (int)type);
1019 PropertyValue ret = (cPtr == global::System.IntPtr.Zero) ? null : new PropertyValue(cPtr, false);
1020 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1027 /// <since_tizen> 3 </since_tizen>
1030 NDalicPINVOKE.Property_Map_Clear(swigCPtr);
1031 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1035 /// Merges values from the map 'from' to the current.<br>
1036 /// Any values in 'from' will overwrite the values in the current map.<br>
1038 /// <param name="from">The map to merge from.</param>
1039 /// <since_tizen> 3 </since_tizen>
1040 public void Merge(PropertyMap from)
1042 NDalicPINVOKE.Property_Map_Merge(swigCPtr, PropertyMap.getCPtr(from));
1043 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1047 /// Retrieves the element with the specified string key.
1049 /// <param name="key">The key whose value to retrieve.</param>
1050 /// <returns>The value for the element with the specified key.</returns>
1051 internal PropertyValue ValueOfIndex(string key)
1053 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_0(swigCPtr, key), false);
1054 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1059 /// Retrieves the element with the specified index key.
1061 /// <param name="key">The key whose value to retrieve.</param>
1062 /// <returns>The value for the element with the specified key.</returns>
1063 internal PropertyValue ValueOfIndex(int key)
1065 PropertyValue ret = new PropertyValue(NDalicPINVOKE.Property_Map_ValueOfIndex__SWIG_2(swigCPtr, key), false);
1066 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1072 /// A value-type representing a property value.
1074 public class PropertyValue : global::System.IDisposable
1076 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1077 protected bool swigCMemOwn;
1079 internal PropertyValue(global::System.IntPtr cPtr, bool cMemoryOwn)
1081 swigCMemOwn = cMemoryOwn;
1082 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1085 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyValue obj)
1087 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1090 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1091 private bool isDisposeQueued = false;
1092 //A Flat to check if it is already disposed.
1093 protected bool disposed = false;
1097 if(!isDisposeQueued)
1099 isDisposeQueued = true;
1100 DisposeQueue.Instance.Add(this);
1104 public void Dispose()
1106 //Throw excpetion if Dispose() is called in separate thread.
1107 if (!Window.IsInstalled())
1109 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
1112 if (isDisposeQueued)
1114 Dispose(DisposeTypes.Implicit);
1118 Dispose(DisposeTypes.Explicit);
1119 System.GC.SuppressFinalize(this);
1123 protected virtual void Dispose(DisposeTypes type)
1130 if(type == DisposeTypes.Explicit)
1133 //Release your own managed resources here.
1134 //You should release all of your own disposable objects here.
1137 //Release your own unmanaged resources here.
1138 //You should not access any managed member here except static instance.
1139 //because the execution order of Finalizes is non-deterministic.
1141 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1145 swigCMemOwn = false;
1146 NDalicPINVOKE.delete_Property_Value(swigCPtr);
1148 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1155 /// An extension to the property value class that allows us to create a
1156 /// Property value from a C# object, for example, integer, float, or string.<br>
1158 /// <param name="obj">An object to create.</param>
1159 /// <returns>The created value.</returns>
1160 static /// <since_tizen> 3 </since_tizen>
1161 public PropertyValue CreateFromObject(System.Object obj)
1163 System.Type type = obj.GetType();
1165 PropertyValue value;
1167 if (type.Equals(typeof(int)))
1169 value = new PropertyValue((int)obj);
1171 if (type.Equals(typeof(System.Int32)))
1173 value = new PropertyValue((int)obj);
1175 else if (type.Equals(typeof(bool)))
1177 value = new PropertyValue((bool)obj);
1179 else if (type.Equals(typeof(float)))
1181 value = new PropertyValue((float)obj);
1183 else if (type.Equals(typeof(string)))
1185 value = new PropertyValue((string)obj);
1187 else if (type.Equals(typeof(Vector2)))
1189 value = new PropertyValue((Vector2)obj);
1191 else if (type.Equals(typeof(Vector3)))
1193 value = new PropertyValue((Vector3)obj);
1195 else if (type.Equals(typeof(Vector4)))
1197 value = new PropertyValue((Vector4)obj);
1199 else if (type.Equals(typeof(Position)))
1201 value = new PropertyValue((Position)obj);
1203 else if (type.Equals(typeof(Position2D)))
1205 value = new PropertyValue((Position2D)obj);
1207 else if (type.Equals(typeof(Size)))
1209 value = new PropertyValue((Size)obj);
1211 else if (type.Equals(typeof(Size2D)))
1213 value = new PropertyValue((Size2D)obj);
1215 else if (type.Equals(typeof(Color)))
1217 value = new PropertyValue((Color)obj);
1219 else if (type.Equals(typeof(Rotation)))
1221 value = new PropertyValue((Rotation)obj);
1223 else if (type.Equals(typeof(RelativeVector2)))
1225 value = new PropertyValue((RelativeVector2)obj);
1227 else if (type.Equals(typeof(RelativeVector3)))
1229 value = new PropertyValue((RelativeVector3)obj);
1231 else if (type.Equals(typeof(RelativeVector4)))
1233 value = new PropertyValue((RelativeVector4)obj);
1237 throw new global::System.InvalidOperationException("Unimplemented type for Property Value :" + type.Name);
1239 NUILog.Debug(" got an property value of =" + type.Name);
1244 /// Creates a Size2D property value.
1246 /// <param name="vectorValue">Size2D values.</param>
1247 /// <since_tizen> 3 </since_tizen>
1248 public PropertyValue(Size2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true)
1250 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1254 /// Creates a Position2D property value.
1256 /// <param name="vectorValue">Position2D values.</param>
1257 /// <since_tizen> 3 </since_tizen>
1258 public PropertyValue(Position2D vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true)
1260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1264 /// Creates a Size property value.
1266 /// <param name="vectorValue">Size values.</param>
1267 internal PropertyValue(Size vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true)
1269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1273 /// Creates a Position property value.
1275 /// <param name="vectorValue">Position values.</param>
1276 /// <since_tizen> 3 </since_tizen>
1277 public PropertyValue(Position vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true)
1279 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1283 /// Creates a Color property value.
1285 /// <param name="vectorValue">Color values.</param>
1286 /// <since_tizen> 3 </since_tizen>
1287 public PropertyValue(Color vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true)
1289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1294 /// Retrieves a Size2D value.
1296 /// <param name="vectorValue"> On return, a Size2D value.</param>
1297 /// <since_tizen> 3 </since_tizen>
1298 public bool Get(Size2D vectorValue)
1300 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
1301 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1306 /// Retrieves a Position2D value.
1308 /// <param name="vectorValue"> On return, a Position2D value.</param>
1309 /// <since_tizen> 3 </since_tizen>
1310 public bool Get(Position2D vectorValue)
1312 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
1313 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1318 /// Retrieves a Size value.
1320 /// <param name="vectorValue"> On return, a size value.</param>
1321 internal bool Get(Size vectorValue)
1323 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
1324 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1329 /// Retrieves a Position value.
1331 /// <param name="vectorValue"> On return, a position value.</param>
1332 /// <since_tizen> 3 </since_tizen>
1333 public bool Get(Position vectorValue)
1335 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
1336 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1341 /// Retrieves a Color value.
1343 /// <param name="vectorValue"> On return, a color value.</param>
1344 /// <since_tizen> 3 </since_tizen>
1345 public bool Get(Color vectorValue)
1347 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
1348 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1355 /// The default constructor.
1357 /// <since_tizen> 3 </since_tizen>
1358 public PropertyValue() : this(NDalicPINVOKE.new_Property_Value__SWIG_0(), true)
1360 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1364 /// Creates a boolean property value.
1366 /// <param name="boolValue">A boolean value.</param>
1367 /// <since_tizen> 3 </since_tizen>
1368 public PropertyValue(bool boolValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_1(boolValue), true)
1370 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1374 /// Creates an integer property value.
1376 /// <param name="integerValue">An integer value.</param>
1377 /// <since_tizen> 3 </since_tizen>
1378 public PropertyValue(int integerValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_2(integerValue), true)
1380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1384 /// Creates a float property value.
1386 /// <param name="floatValue">A floating-point value.</param>
1387 /// <since_tizen> 3 </since_tizen>
1388 public PropertyValue(float floatValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_3(floatValue), true)
1390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1394 /// Creates a Vector2 property value.
1396 /// <param name="vectorValue">A vector of 2 floating-point values.</param>
1397 /// <since_tizen> 3 </since_tizen>
1398 public PropertyValue(Vector2 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_4(Vector2.getCPtr(vectorValue)), true)
1400 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1404 /// Creates a Vector3 property value.
1406 /// <param name="vectorValue">A vector of 3 floating-point values.</param>
1407 /// <since_tizen> 3 </since_tizen>
1408 public PropertyValue(Vector3 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_5(Vector3.getCPtr(vectorValue)), true)
1410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1414 /// Creates a Vector4 property value.
1416 /// <param name="vectorValue">A vector of 4 floating-point values.</param>
1417 /// <since_tizen> 3 </since_tizen>
1418 public PropertyValue(Vector4 vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_6(Vector4.getCPtr(vectorValue)), true)
1420 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1423 internal PropertyValue(Matrix3 matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_7(Matrix3.getCPtr(matrixValue)), true)
1425 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1428 internal PropertyValue(Matrix matrixValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true)
1430 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1434 /// Creates a Rectangle property value.
1436 /// <param name="vectorValue">Rectangle values.</param>
1437 /// <since_tizen> 3 </since_tizen>
1438 public PropertyValue(Rectangle vectorValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_9(Rectangle.getCPtr(vectorValue)), true)
1440 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1443 internal PropertyValue(AngleAxis angleAxis) : this(NDalicPINVOKE.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true)
1445 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1449 /// Creates a Rotation property value.
1451 /// <param name="quaternion">Rotation values.</param>
1452 /// <since_tizen> 3 </since_tizen>
1453 public PropertyValue(Rotation quaternion) : this(NDalicPINVOKE.new_Property_Value__SWIG_11(Rotation.getCPtr(quaternion)), true)
1455 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1459 /// Creates a string property value.
1461 /// <param name="stringValue">A string.</param>
1462 /// <since_tizen> 3 </since_tizen>
1463 public PropertyValue(string stringValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_12(stringValue), true)
1465 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1469 /// Creates an array property value.
1471 /// <param name="arrayValue">An array.</param>
1472 /// <since_tizen> 3 </since_tizen>
1473 public PropertyValue(PropertyArray arrayValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_14(PropertyArray.getCPtr(arrayValue)), true)
1475 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1479 /// Creates a map property value.
1481 /// <param name="mapValue">An array.</param>
1482 /// <since_tizen> 3 </since_tizen>
1483 public PropertyValue(PropertyMap mapValue) : this(NDalicPINVOKE.new_Property_Value__SWIG_15(PropertyMap.getCPtr(mapValue)), true)
1485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1489 /// Creates a PropertyType value.
1491 /// <param name="type">A PropertyType value.</param>
1492 /// <since_tizen> 3 </since_tizen>
1493 public PropertyValue(PropertyType type) : this(NDalicPINVOKE.new_Property_Value__SWIG_16((int)type), true)
1495 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1499 /// Creates a PropertyValue value.
1501 /// <param name="value">A PropertyValue value.</param>
1502 /// <since_tizen> 3 </since_tizen>
1503 public PropertyValue(PropertyValue value) : this(NDalicPINVOKE.new_Property_Value__SWIG_17(PropertyValue.getCPtr(value)), true)
1505 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1509 /// Queries the type of this property value.
1511 /// <returns>The type ID</returns>
1512 /// <since_tizen> 3 </since_tizen>
1513 public new PropertyType GetType()
1515 PropertyType ret = (PropertyType)NDalicPINVOKE.Property_Value_GetType(swigCPtr);
1516 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1521 /// Retrieves a boolean value.
1523 /// <param name="boolValue">On return, a boolean value.</param>
1524 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1525 /// <since_tizen> 3 </since_tizen>
1526 public bool Get(out bool boolValue)
1528 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_1(swigCPtr, out boolValue);
1529 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1534 /// Retrieves a floating-point value.
1536 /// <param name="floatValue">On return, a floating-point value.</param>
1537 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1538 /// <since_tizen> 3 </since_tizen>
1539 public bool Get(out float floatValue)
1541 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_2(swigCPtr, out floatValue);
1542 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1547 /// Retrieves an integer value.
1549 /// <param name="integerValue">On return, an integer value.</param>
1550 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1551 /// <since_tizen> 3 </since_tizen>
1552 public bool Get(out int integerValue)
1554 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_3(swigCPtr, out integerValue);
1555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1560 /// Retrieves an integer rectangle.
1562 /// <param name="rect">On return, an integer rectangle.</param>
1563 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1564 /// <since_tizen> 3 </since_tizen>
1565 public bool Get(Rectangle rect)
1567 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
1568 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1573 /// Retrieves a vector value.
1575 /// <param name="vectorValue">On return, a vector value.</param>
1576 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1577 /// <since_tizen> 3 </since_tizen>
1578 public bool Get(Vector2 vectorValue)
1580 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
1581 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1586 /// Retrieves a vector value.
1588 /// <param name="vectorValue">On return, a vector value.</param>
1589 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1590 /// <since_tizen> 3 </since_tizen>
1591 public bool Get(Vector3 vectorValue)
1593 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
1594 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1599 /// Retrieves a vector value.
1601 /// <param name="vectorValue">On return, a vector value.</param>
1602 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1603 /// <since_tizen> 3 </since_tizen>
1604 public bool Get(Vector4 vectorValue)
1606 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
1607 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1611 internal bool Get(Matrix3 matrixValue)
1613 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_8(swigCPtr, Matrix3.getCPtr(matrixValue));
1614 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1618 internal bool Get(Matrix matrixValue)
1620 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
1621 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1625 internal bool Get(AngleAxis angleAxisValue)
1627 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
1628 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1633 /// Retrieves a Rotation value.
1635 /// <param name="quaternionValue">On return, a rotation value.</param>
1636 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1637 /// <since_tizen> 3 </since_tizen>
1638 public bool Get(Rotation quaternionValue)
1640 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
1641 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1646 /// Retrieves a string property value.
1648 /// <param name="stringValue">On return, a string.</param>
1649 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1650 /// <since_tizen> 3 </since_tizen>
1651 public bool Get(out string stringValue)
1653 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
1654 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1659 /// Retrieves an array property value.
1661 /// <param name="arrayValue">On return, the array as a vector property values.</param>
1662 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1663 /// <since_tizen> 3 </since_tizen>
1664 public bool Get(PropertyArray arrayValue)
1666 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_13(swigCPtr, PropertyArray.getCPtr(arrayValue));
1667 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1672 /// Retrieves a map property value.
1674 /// <param name="mapValue">On return, the map as vector of string and property value pairs.</param>
1675 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
1676 /// <since_tizen> 3 </since_tizen>
1677 public bool Get(PropertyMap mapValue)
1679 bool ret = NDalicPINVOKE.Property_Value_Get__SWIG_14(swigCPtr, PropertyMap.getCPtr(mapValue));
1680 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();