2 * Copyright(c) 2019 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.
18 using System.ComponentModel;
23 /// A value-type representing a property value.
25 /// <since_tizen> 3 </since_tizen>
26 public class PropertyValue : Disposable
30 /// Creates a Size2D property value.
32 /// <param name="vectorValue">Size2D values.</param>
33 /// <since_tizen> 3 </since_tizen>
34 public PropertyValue(Size2D vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true)
36 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
40 /// Creates a Position2D property value.
42 /// <param name="vectorValue">Position2D values.</param>
43 /// <since_tizen> 3 </since_tizen>
44 public PropertyValue(Position2D vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true)
46 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
50 /// Creates a Position property value.
52 /// <param name="vectorValue">Position values.</param>
53 /// <since_tizen> 3 </since_tizen>
54 public PropertyValue(Position vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true)
56 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
60 /// Creates a Color property value.
62 /// <param name="vectorValue">Color values.</param>
63 /// <since_tizen> 3 </since_tizen>
64 public PropertyValue(Color vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true)
66 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70 /// The default constructor.
72 /// <since_tizen> 3 </since_tizen>
73 public PropertyValue() : this(Interop.PropertyValue.new_Property_Value__SWIG_0(), true)
75 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79 /// Creates a boolean property value.
81 /// <param name="boolValue">A boolean value.</param>
82 /// <since_tizen> 3 </since_tizen>
83 public PropertyValue(bool boolValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_1(boolValue), true)
85 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
89 /// Creates an integer property value.
91 /// <param name="integerValue">An integer value.</param>
92 /// <since_tizen> 3 </since_tizen>
93 public PropertyValue(int integerValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_2(integerValue), true)
95 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
99 /// Creates a float property value.
101 /// <param name="floatValue">A floating-point value.</param>
102 /// <since_tizen> 3 </since_tizen>
103 public PropertyValue(float floatValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_3(floatValue), true)
105 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109 /// Creates a Vector2 property value.
111 /// <param name="vectorValue">A vector of 2 floating-point values.</param>
112 /// <since_tizen> 3 </since_tizen>
113 public PropertyValue(Vector2 vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_4(Vector2.getCPtr(vectorValue)), true)
115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
119 /// Creates a Vector3 property value.
121 /// <param name="vectorValue">A vector of 3 floating-point values.</param>
122 /// <since_tizen> 3 </since_tizen>
123 public PropertyValue(Vector3 vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_5(Vector3.getCPtr(vectorValue)), true)
125 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
129 /// Creates a Vector4 property value.
131 /// <param name="vectorValue">A vector of 4 floating-point values.</param>
132 /// <since_tizen> 3 </since_tizen>
133 public PropertyValue(Vector4 vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_6(Vector4.getCPtr(vectorValue)), true)
135 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
139 /// Creates a Rectangle property value.
141 /// <param name="vectorValue">Rectangle values.</param>
142 /// <since_tizen> 3 </since_tizen>
143 public PropertyValue(Rectangle vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_9(Rectangle.getCPtr(vectorValue)), true)
145 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149 /// Creates a Rotation property value.
151 /// <param name="quaternion">Rotation values.</param>
152 /// <since_tizen> 3 </since_tizen>
153 public PropertyValue(Rotation quaternion) : this(Interop.PropertyValue.new_Property_Value__SWIG_11(Rotation.getCPtr(quaternion)), true)
155 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
159 /// Creates a string property value.
161 /// <param name="stringValue">A string.</param>
162 /// <since_tizen> 3 </since_tizen>
163 public PropertyValue(string stringValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_12(stringValue), true)
165 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
169 /// Creates an array property value.
171 /// <param name="arrayValue">An array.</param>
172 /// <since_tizen> 3 </since_tizen>
173 public PropertyValue(PropertyArray arrayValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_14(PropertyArray.getCPtr(arrayValue)), true)
175 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
179 /// Creates a map property value.
181 /// <param name="mapValue">An array.</param>
182 /// <since_tizen> 3 </since_tizen>
183 public PropertyValue(PropertyMap mapValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_15(PropertyMap.getCPtr(mapValue)), true)
185 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
189 /// Creates a Extents value.
191 /// <param name="extentsValue">A Extents value.</param>
192 /// <since_tizen> 4 </since_tizen>
193 public PropertyValue(Extents extentsValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_16(Extents.getCPtr(extentsValue)), true)
195 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
199 /// Creates a PropertyType value.
201 /// <param name="type">A PropertyType value.</param>
202 /// <since_tizen> 3 </since_tizen>
203 public PropertyValue(PropertyType type) : this(Interop.PropertyValue.new_Property_Value__SWIG_17((int)type), true)
205 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209 /// Creates a PropertyValue value.
211 /// <param name="value">A PropertyValue value.</param>
212 /// <since_tizen> 3 </since_tizen>
213 public PropertyValue(PropertyValue value) : this(Interop.PropertyValue.new_Property_Value__SWIG_18(PropertyValue.getCPtr(value)), true)
215 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
219 /// Creates a Size property value.
221 /// <param name="vectorValue">Size values.</param>
222 internal PropertyValue(Size vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true)
224 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227 internal PropertyValue(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
231 internal PropertyValue(Matrix3 matrixValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_7(Matrix3.getCPtr(matrixValue)), true)
233 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236 internal PropertyValue(Matrix matrixValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true)
238 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
241 internal PropertyValue(AngleAxis angleAxis) : this(Interop.PropertyValue.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true)
243 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
247 /// An extension to the property value class that allows us to create a
248 /// Property value from a C# object, for example, integer, float, or string.<br />
250 /// <param name="obj">An object to create.</param>
251 /// <returns>The created value.</returns>
252 /// <exception cref="global::System.ArgumentNullException"> Thrown when obj is null. </exception>
253 /// <since_tizen> 3 </since_tizen>
254 static public PropertyValue CreateFromObject(System.Object obj)
258 throw new global::System.ArgumentNullException(nameof(obj));
261 System.Type type = obj.GetType();
265 value = new PropertyValue((int)obj);//Enum.Parse(type, str);
267 else if (type.Equals(typeof(int)))
269 value = new PropertyValue((int)obj);
271 else if (type.Equals(typeof(System.Int32)))
273 value = new PropertyValue((int)obj);
275 else if (type.Equals(typeof(bool)))
277 value = new PropertyValue((bool)obj);
279 else if (type.Equals(typeof(float)))
281 value = new PropertyValue((float)obj);
283 else if (type.Equals(typeof(string)))
285 value = new PropertyValue((string)obj);
287 else if (type.Equals(typeof(Vector2)))
289 value = new PropertyValue((Vector2)obj);
291 else if (type.Equals(typeof(Vector3)))
293 value = new PropertyValue((Vector3)obj);
295 else if (type.Equals(typeof(Vector4)))
297 value = new PropertyValue((Vector4)obj);
299 else if (type.Equals(typeof(Position)))
301 value = new PropertyValue((Position)obj);
303 else if (type.Equals(typeof(Position2D)))
305 value = new PropertyValue((Position2D)obj);
307 else if (type.Equals(typeof(Size)))
309 value = new PropertyValue((Size)obj);
311 else if (type.Equals(typeof(Size2D)))
313 value = new PropertyValue((Size2D)obj);
315 else if (type.Equals(typeof(Color)))
317 value = new PropertyValue((Color)obj);
319 else if (type.Equals(typeof(Rotation)))
321 value = new PropertyValue((Rotation)obj);
323 else if (type.Equals(typeof(RelativeVector2)))
325 value = new PropertyValue((RelativeVector2)obj);
327 else if (type.Equals(typeof(RelativeVector3)))
329 value = new PropertyValue((RelativeVector3)obj);
331 else if (type.Equals(typeof(RelativeVector4)))
333 value = new PropertyValue((RelativeVector4)obj);
335 else if (type.Equals(typeof(Extents)))
337 value = new PropertyValue((Extents)obj);
339 else if (type.Equals(typeof(Rectangle)))
341 value = new PropertyValue((Rectangle)obj);
345 throw new global::System.InvalidOperationException("Unimplemented type for Property Value :" + type.Name);
351 /// Retrieves a Size2D value.
353 /// <param name="vectorValue"> On return, a Size2D value.</param>
354 /// <since_tizen> 3 </since_tizen>
355 public bool Get(Size2D vectorValue)
357 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
358 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363 /// Retrieves a Position2D value.
365 /// <param name="vectorValue"> On return, a Position2D value.</param>
366 /// <since_tizen> 3 </since_tizen>
367 public bool Get(Position2D vectorValue)
369 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
370 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
375 /// Retrieves a Size value.
377 /// <param name="vectorValue"> On return, a size value.</param>
378 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
379 [EditorBrowsable(EditorBrowsableState.Never)]
380 public bool Get(Size vectorValue)
382 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
383 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 /// Retrieves a Position value.
390 /// <param name="vectorValue"> On return, a position value.</param>
391 /// <since_tizen> 3 </since_tizen>
392 public bool Get(Position vectorValue)
394 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
395 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
400 /// Retrieves a Color value.
402 /// <param name="vectorValue"> On return, a color value.</param>
403 /// <since_tizen> 3 </since_tizen>
404 public bool Get(Color vectorValue)
406 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
407 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
412 /// Queries the type of this property value.
414 /// <returns>The type ID</returns>
415 /// <since_tizen> 3 </since_tizen>
416 public new PropertyType GetType()
418 PropertyType ret = (PropertyType)Interop.PropertyValue.Property_Value_GetType(swigCPtr);
419 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424 /// Retrieves a boolean value.
426 /// <param name="boolValue">On return, a boolean value.</param>
427 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
428 /// <since_tizen> 3 </since_tizen>
429 public bool Get(out bool boolValue)
431 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_1(swigCPtr, out boolValue);
432 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437 /// Retrieves a floating-point value.
439 /// <param name="floatValue">On return, a floating-point value.</param>
440 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
441 /// <since_tizen> 3 </since_tizen>
442 public bool Get(out float floatValue)
444 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_2(swigCPtr, out floatValue);
445 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
450 /// Retrieves an integer value.
452 /// <param name="integerValue">On return, an integer value.</param>
453 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
454 /// <since_tizen> 3 </since_tizen>
455 public bool Get(out int integerValue)
457 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_3(swigCPtr, out integerValue);
458 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
463 /// Retrieves an integer rectangle.
465 /// <param name="rect">On return, an integer rectangle.</param>
466 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
467 /// <since_tizen> 3 </since_tizen>
468 public bool Get(Rectangle rect)
470 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
471 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
476 /// Retrieves a vector value.
478 /// <param name="vectorValue">On return, a vector value.</param>
479 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
480 /// <since_tizen> 3 </since_tizen>
481 public bool Get(Vector2 vectorValue)
483 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
484 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489 /// Retrieves a vector value.
491 /// <param name="vectorValue">On return, a vector value.</param>
492 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
493 /// <since_tizen> 3 </since_tizen>
494 public bool Get(Vector3 vectorValue)
496 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
497 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
502 /// Retrieves a vector value.
504 /// <param name="vectorValue">On return, a vector value.</param>
505 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
506 /// <since_tizen> 3 </since_tizen>
507 public bool Get(Vector4 vectorValue)
509 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
510 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
515 /// Retrieves a vector value.
517 /// <param name="vectorValue">On return, a vector value.</param>
518 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
519 /// <since_tizen> 5 </since_tizen>
520 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
521 [EditorBrowsable(EditorBrowsableState.Never)]
522 public bool Get(RelativeVector2 vectorValue)
524 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, RelativeVector2.getCPtr(vectorValue));
525 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
530 /// Retrieves a vector value.
532 /// <param name="vectorValue">On return, a vector value.</param>
533 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
534 /// <since_tizen> 5 </since_tizen>
535 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
536 [EditorBrowsable(EditorBrowsableState.Never)]
537 public bool Get(RelativeVector3 vectorValue)
539 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, RelativeVector3.getCPtr(vectorValue));
540 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545 /// Retrieves a vector value.
547 /// <param name="vectorValue">On return, a vector value.</param>
548 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
549 /// <since_tizen> 5 </since_tizen>
550 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
551 [EditorBrowsable(EditorBrowsableState.Never)]
552 public bool Get(RelativeVector4 vectorValue)
554 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_7(swigCPtr, RelativeVector4.getCPtr(vectorValue));
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
560 /// Retrieves a rotation value.
562 /// <param name="quaternionValue">On return, a rotation value.</param>
563 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
564 /// <since_tizen> 3 </since_tizen>
565 public bool Get(Rotation quaternionValue)
567 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
568 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573 /// Retrieves a string property value.
575 /// <param name="stringValue">On return, a string.</param>
576 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
577 /// <since_tizen> 3 </since_tizen>
578 public bool Get(out string stringValue)
580 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
581 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
586 /// Retrieves an array property value.
588 /// <param name="arrayValue">On return, the array as a vector property values.</param>
589 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
590 /// <since_tizen> 3 </since_tizen>
591 public bool Get(PropertyArray arrayValue)
593 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_13(swigCPtr, PropertyArray.getCPtr(arrayValue));
594 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
599 /// Retrieves a map property value.
601 /// <param name="mapValue">On return, the map as vector of string and property value pairs.</param>
602 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
603 /// <since_tizen> 3 </since_tizen>
604 public bool Get(PropertyMap mapValue)
606 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_14(swigCPtr, PropertyMap.getCPtr(mapValue));
607 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
612 /// Retrieves a Extents value.
614 /// <param name="extentsValue">On return, a extents.</param>
615 /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
616 /// <since_tizen> 4 </since_tizen>
617 public bool Get(Extents extentsValue)
619 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_15(swigCPtr, Extents.getCPtr(extentsValue));
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
624 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyValue obj)
626 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
629 internal bool Get(Matrix3 matrixValue)
631 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_8(swigCPtr, Matrix3.getCPtr(matrixValue));
632 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
636 internal bool Get(Matrix matrixValue)
638 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
639 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
643 internal bool Get(AngleAxis angleAxisValue)
645 bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
646 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
650 /// This will not be public opened.
651 [EditorBrowsable(EditorBrowsableState.Never)]
652 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
654 Interop.PropertyValue.delete_Property_Value(swigCPtr);
657 internal static PropertyValue CreateWithGuard(string value)
659 return value == null ? new PropertyValue() : new PropertyValue(value);
662 internal static PropertyValue CreateWithGuard(Vector2 value)
664 return value == null ? new PropertyValue() : new PropertyValue(value);
667 internal static PropertyValue CreateWithGuard(Rectangle value)
669 return value == null ? new PropertyValue() : new PropertyValue(value);
672 internal static PropertyValue CreateWithGuard(Color value)
674 return value == null ? new PropertyValue() : new PropertyValue(value);