[NUI] Fix Dropdown runtime error (#1232)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / PropertyValue.cs
1 /*
2  * Copyright(c) 2019 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 using System.ComponentModel;
19
20 namespace Tizen.NUI
21 {
22     /// <summary>
23     /// A value-type representing a property value.
24     /// </summary>
25     /// <since_tizen> 3 </since_tizen>
26     public class PropertyValue : Disposable
27     {
28
29         /// <summary>
30         /// Creates a Size2D property value.
31         /// </summary>
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)
35         {
36             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
37         }
38
39         /// <summary>
40         /// Creates a Position2D property value.
41         /// </summary>
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)
45         {
46             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
47         }
48
49         /// <summary>
50         /// Creates a Position property value.
51         /// </summary>
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)
55         {
56             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
57         }
58
59         /// <summary>
60         /// Creates a Color property value.
61         /// </summary>
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)
65         {
66             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
67         }
68
69         /// <summary>
70         /// The default constructor.
71         /// </summary>
72         /// <since_tizen> 3 </since_tizen>
73         public PropertyValue() : this(Interop.PropertyValue.new_Property_Value__SWIG_0(), true)
74         {
75             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
76         }
77
78         /// <summary>
79         /// Creates a boolean property value.
80         /// </summary>
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)
84         {
85             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
86         }
87
88         /// <summary>
89         /// Creates an integer property value.
90         /// </summary>
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)
94         {
95             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
96         }
97
98         /// <summary>
99         /// Creates a float property value.
100         /// </summary>
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)
104         {
105             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
106         }
107
108         /// <summary>
109         /// Creates a Vector2 property value.
110         /// </summary>
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)
114         {
115             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116         }
117
118         /// <summary>
119         /// Creates a Vector3 property value.
120         /// </summary>
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)
124         {
125             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126         }
127
128         /// <summary>
129         /// Creates a Vector4 property value.
130         /// </summary>
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)
134         {
135             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
136         }
137
138         /// <summary>
139         /// Creates a Rectangle property value.
140         /// </summary>
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)
144         {
145             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
146         }
147
148         /// <summary>
149         /// Creates a Rotation property value.
150         /// </summary>
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)
154         {
155             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156         }
157
158         /// <summary>
159         /// Creates a string property value.
160         /// </summary>
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)
164         {
165             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166         }
167
168         /// <summary>
169         /// Creates an array property value.
170         /// </summary>
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)
174         {
175             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
176         }
177
178         /// <summary>
179         /// Creates a map property value.
180         /// </summary>
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)
184         {
185             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
186         }
187
188         /// <summary>
189         /// Creates a Extents value.
190         /// </summary>
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)
194         {
195             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196         }
197
198         /// <summary>
199         /// Creates a PropertyType value.
200         /// </summary>
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)
204         {
205             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
206         }
207
208         /// <summary>
209         /// Creates a PropertyValue value.
210         /// </summary>
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)
214         {
215             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
216         }
217
218         /// <summary>
219         /// Creates a Size property value.
220         /// </summary>
221         /// <param name="vectorValue">Size values.</param>
222         internal PropertyValue(Size vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true)
223         {
224             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
225         }
226
227         internal PropertyValue(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
228         {
229         }
230
231         internal PropertyValue(Matrix3 matrixValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_7(Matrix3.getCPtr(matrixValue)), true)
232         {
233             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234         }
235
236         internal PropertyValue(Matrix matrixValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true)
237         {
238             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
239         }
240
241         internal PropertyValue(AngleAxis angleAxis) : this(Interop.PropertyValue.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true)
242         {
243             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
244         }
245
246         /// <summary>
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 />
249         /// </summary>
250         /// <param name="obj">An object to create.</param>
251         /// <returns>The created value.</returns>
252         /// <since_tizen> 3 </since_tizen>
253         static public PropertyValue CreateFromObject(System.Object obj)
254         {
255             System.Type type = obj.GetType();
256
257             PropertyValue value;
258             if (type.IsEnum)
259             {
260                 value = new PropertyValue((int)obj);//Enum.Parse(type, str);
261             }
262             else if (type.Equals(typeof(int)))
263             {
264                 value = new PropertyValue((int)obj);
265             }
266             else if (type.Equals(typeof(System.Int32)))
267             {
268                 value = new PropertyValue((int)obj);
269             }
270             else if (type.Equals(typeof(bool)))
271             {
272                 value = new PropertyValue((bool)obj);
273             }
274             else if (type.Equals(typeof(float)))
275             {
276                 value = new PropertyValue((float)obj);
277             }
278             else if (type.Equals(typeof(string)))
279             {
280                 value = new PropertyValue((string)obj);
281             }
282             else if (type.Equals(typeof(Vector2)))
283             {
284                 value = new PropertyValue((Vector2)obj);
285             }
286             else if (type.Equals(typeof(Vector3)))
287             {
288                 value = new PropertyValue((Vector3)obj);
289             }
290             else if (type.Equals(typeof(Vector4)))
291             {
292                 value = new PropertyValue((Vector4)obj);
293             }
294             else if (type.Equals(typeof(Position)))
295             {
296                 value = new PropertyValue((Position)obj);
297             }
298             else if (type.Equals(typeof(Position2D)))
299             {
300                 value = new PropertyValue((Position2D)obj);
301             }
302             else if (type.Equals(typeof(Size)))
303             {
304                 value = new PropertyValue((Size)obj);
305             }
306             else if (type.Equals(typeof(Size2D)))
307             {
308                 value = new PropertyValue((Size2D)obj);
309             }
310             else if (type.Equals(typeof(Color)))
311             {
312                 value = new PropertyValue((Color)obj);
313             }
314             else if (type.Equals(typeof(Rotation)))
315             {
316                 value = new PropertyValue((Rotation)obj);
317             }
318             else if (type.Equals(typeof(RelativeVector2)))
319             {
320                 value = new PropertyValue((RelativeVector2)obj);
321             }
322             else if (type.Equals(typeof(RelativeVector3)))
323             {
324                 value = new PropertyValue((RelativeVector3)obj);
325             }
326             else if (type.Equals(typeof(RelativeVector4)))
327             {
328                 value = new PropertyValue((RelativeVector4)obj);
329             }
330             else if (type.Equals(typeof(Extents)))
331             {
332                 value = new PropertyValue((Extents)obj);
333             }
334             else
335             {
336                 throw new global::System.InvalidOperationException("Unimplemented type for Property Value :" + type.Name);
337             }
338             //NUILog.Debug(" got an property value of =" + type.Name);
339             return value;
340         }
341
342         /// <summary>
343         /// Retrieves a Size2D value.
344         /// </summary>
345         /// <param name="vectorValue"> On return, a Size2D value.</param>
346         /// <since_tizen> 3 </since_tizen>
347         public bool Get(Size2D vectorValue)
348         {
349             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
350             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
351             return ret;
352         }
353
354         /// <summary>
355         /// Retrieves a Position2D value.
356         /// </summary>
357         /// <param name="vectorValue"> On return, a Position2D value.</param>
358         /// <since_tizen> 3 </since_tizen>
359         public bool Get(Position2D vectorValue)
360         {
361             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
362             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363             return ret;
364         }
365
366         /// <summary>
367         /// Retrieves a Size value.
368         /// </summary>
369         /// <param name="vectorValue"> On return, a size value.</param>
370         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
371         [EditorBrowsable(EditorBrowsableState.Never)]
372         public bool Get(Size vectorValue)
373         {
374             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
375             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376             return ret;
377         }
378
379         /// <summary>
380         /// Retrieves a Position value.
381         /// </summary>
382         /// <param name="vectorValue"> On return, a position value.</param>
383         /// <since_tizen> 3 </since_tizen>
384         public bool Get(Position vectorValue)
385         {
386             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
387             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388             return ret;
389         }
390
391         /// <summary>
392         /// Retrieves a Color value.
393         /// </summary>
394         /// <param name="vectorValue"> On return, a color value.</param>
395         /// <since_tizen> 3 </since_tizen>
396         public bool Get(Color vectorValue)
397         {
398             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
399             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
400             return ret;
401         }
402
403         /// <summary>
404         /// Queries the type of this property value.
405         /// </summary>
406         /// <returns>The type ID</returns>
407         /// <since_tizen> 3 </since_tizen>
408         public new PropertyType GetType()
409         {
410             PropertyType ret = (PropertyType)Interop.PropertyValue.Property_Value_GetType(swigCPtr);
411             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
412             return ret;
413         }
414
415         /// <summary>
416         /// Retrieves a boolean value.
417         /// </summary>
418         /// <param name="boolValue">On return, a boolean value.</param>
419         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
420         /// <since_tizen> 3 </since_tizen>
421         public bool Get(out bool boolValue)
422         {
423             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_1(swigCPtr, out boolValue);
424             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
425             return ret;
426         }
427
428         /// <summary>
429         /// Retrieves a floating-point value.
430         /// </summary>
431         /// <param name="floatValue">On return, a floating-point value.</param>
432         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
433         /// <since_tizen> 3 </since_tizen>
434         public bool Get(out float floatValue)
435         {
436             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_2(swigCPtr, out floatValue);
437             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
438             return ret;
439         }
440
441         /// <summary>
442         /// Retrieves an integer value.
443         /// </summary>
444         /// <param name="integerValue">On return, an integer value.</param>
445         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
446         /// <since_tizen> 3 </since_tizen>
447         public bool Get(out int integerValue)
448         {
449             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_3(swigCPtr, out integerValue);
450             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451             return ret;
452         }
453
454         /// <summary>
455         /// Retrieves an integer rectangle.
456         /// </summary>
457         /// <param name="rect">On return, an integer rectangle.</param>
458         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
459         /// <since_tizen> 3 </since_tizen>
460         public bool Get(Rectangle rect)
461         {
462             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
463             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
464             return ret;
465         }
466
467         /// <summary>
468         /// Retrieves a vector value.
469         /// </summary>
470         /// <param name="vectorValue">On return, a vector value.</param>
471         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
472         /// <since_tizen> 3 </since_tizen>
473         public bool Get(Vector2 vectorValue)
474         {
475             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
476             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477             return ret;
478         }
479
480         /// <summary>
481         /// Retrieves a vector value.
482         /// </summary>
483         /// <param name="vectorValue">On return, a vector value.</param>
484         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
485         /// <since_tizen> 3 </since_tizen>
486         public bool Get(Vector3 vectorValue)
487         {
488             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
489             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
490             return ret;
491         }
492
493         /// <summary>
494         /// Retrieves a vector value.
495         /// </summary>
496         /// <param name="vectorValue">On return, a vector value.</param>
497         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
498         /// <since_tizen> 3 </since_tizen>
499         public bool Get(Vector4 vectorValue)
500         {
501             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
502             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503             return ret;
504         }
505
506         /// <summary>
507         /// Retrieves a vector value.
508         /// </summary>
509         /// <param name="vectorValue">On return, a vector value.</param>
510         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
511         /// <since_tizen> 5 </since_tizen>
512         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
513         [EditorBrowsable(EditorBrowsableState.Never)]
514         public bool Get(RelativeVector2 vectorValue)
515         {
516             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, RelativeVector2.getCPtr(vectorValue));
517             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
518             return ret;
519         }
520
521         /// <summary>
522         /// Retrieves a vector value.
523         /// </summary>
524         /// <param name="vectorValue">On return, a vector value.</param>
525         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
526         /// <since_tizen> 5 </since_tizen>
527         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
528         [EditorBrowsable(EditorBrowsableState.Never)]
529         public bool Get(RelativeVector3 vectorValue)
530         {
531             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, RelativeVector3.getCPtr(vectorValue));
532             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
533             return ret;
534         }
535
536         /// <summary>
537         /// Retrieves a vector value.
538         /// </summary>
539         /// <param name="vectorValue">On return, a vector value.</param>
540         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
541         /// <since_tizen> 5 </since_tizen>
542         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
543         [EditorBrowsable(EditorBrowsableState.Never)]
544         public bool Get(RelativeVector4 vectorValue)
545         {
546             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_7(swigCPtr, RelativeVector4.getCPtr(vectorValue));
547             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
548             return ret;
549         }
550
551         /// <summary>
552         /// Retrieves a rotation value.
553         /// </summary>
554         /// <param name="quaternionValue">On return, a rotation value.</param>
555         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
556         /// <since_tizen> 3 </since_tizen>
557         public bool Get(Rotation quaternionValue)
558         {
559             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
560             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
561             return ret;
562         }
563
564         /// <summary>
565         /// Retrieves a string property value.
566         /// </summary>
567         /// <param name="stringValue">On return, a string.</param>
568         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
569         /// <since_tizen> 3 </since_tizen>
570         public bool Get(out string stringValue)
571         {
572             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
573             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
574             return ret;
575         }
576
577         /// <summary>
578         /// Retrieves an array property value.
579         /// </summary>
580         /// <param name="arrayValue">On return, the array as a vector property values.</param>
581         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
582         /// <since_tizen> 3 </since_tizen>
583         public bool Get(PropertyArray arrayValue)
584         {
585             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_13(swigCPtr, PropertyArray.getCPtr(arrayValue));
586             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
587             return ret;
588         }
589
590         /// <summary>
591         /// Retrieves a map property value.
592         /// </summary>
593         /// <param name="mapValue">On return, the map as vector of string and property value pairs.</param>
594         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
595         /// <since_tizen> 3 </since_tizen>
596         public bool Get(PropertyMap mapValue)
597         {
598             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_14(swigCPtr, PropertyMap.getCPtr(mapValue));
599             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
600             return ret;
601         }
602
603         /// <summary>
604         /// Retrieves a Extents value.
605         /// </summary>
606         /// <param name="extentsValue">On return, a extents.</param>
607         /// <returns>Returns true if the value is successfully retrieved, false if the type is not convertible.</returns>
608         /// <since_tizen> 4 </since_tizen>
609         public bool Get(Extents extentsValue)
610         {
611             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_15(swigCPtr, Extents.getCPtr(extentsValue));
612             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
613             return ret;
614         }
615
616         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyValue obj)
617         {
618             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
619         }
620
621         internal bool Get(Matrix3 matrixValue)
622         {
623             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_8(swigCPtr, Matrix3.getCPtr(matrixValue));
624             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
625             return ret;
626         }
627
628         internal bool Get(Matrix matrixValue)
629         {
630             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
631             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
632             return ret;
633         }
634
635         internal bool Get(AngleAxis angleAxisValue)
636         {
637             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
638             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
639             return ret;
640         }
641
642         /// This will not be public opened.
643         [EditorBrowsable(EditorBrowsableState.Never)]
644         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
645         {
646             Interop.PropertyValue.delete_Property_Value(swigCPtr);
647         }
648     }
649 }