[NUI] Split large files (#1081)
[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         /// <summary>
29         /// swigCMemOwn
30         /// </summary>
31         /// <since_tizen> 3 </since_tizen>
32         protected bool swigCMemOwn;
33         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
34
35         /// <summary>
36         /// Creates a Size2D property value.
37         /// </summary>
38         /// <param name="vectorValue">Size2D values.</param>
39         /// <since_tizen> 3 </since_tizen>
40         public PropertyValue(Size2D vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_4(Size2D.getCPtr(vectorValue)), true)
41         {
42             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
43         }
44
45         /// <summary>
46         /// Creates a Position2D property value.
47         /// </summary>
48         /// <param name="vectorValue">Position2D values.</param>
49         /// <since_tizen> 3 </since_tizen>
50         public PropertyValue(Position2D vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_4(Position2D.getCPtr(vectorValue)), true)
51         {
52             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53         }
54
55         /// <summary>
56         /// Creates a Position property value.
57         /// </summary>
58         /// <param name="vectorValue">Position values.</param>
59         /// <since_tizen> 3 </since_tizen>
60         public PropertyValue(Position vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_5(Position.getCPtr(vectorValue)), true)
61         {
62             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
63         }
64
65         /// <summary>
66         /// Creates a Color property value.
67         /// </summary>
68         /// <param name="vectorValue">Color values.</param>
69         /// <since_tizen> 3 </since_tizen>
70         public PropertyValue(Color vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_6(Color.getCPtr(vectorValue)), true)
71         {
72             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73         }
74
75         /// <summary>
76         /// The default constructor.
77         /// </summary>
78         /// <since_tizen> 3 </since_tizen>
79         public PropertyValue() : this(Interop.PropertyValue.new_Property_Value__SWIG_0(), true)
80         {
81             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
82         }
83
84         /// <summary>
85         /// Creates a boolean property value.
86         /// </summary>
87         /// <param name="boolValue">A boolean value.</param>
88         /// <since_tizen> 3 </since_tizen>
89         public PropertyValue(bool boolValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_1(boolValue), true)
90         {
91             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92         }
93
94         /// <summary>
95         /// Creates an integer property value.
96         /// </summary>
97         /// <param name="integerValue">An integer value.</param>
98         /// <since_tizen> 3 </since_tizen>
99         public PropertyValue(int integerValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_2(integerValue), true)
100         {
101             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
102         }
103
104         /// <summary>
105         /// Creates a float property value.
106         /// </summary>
107         /// <param name="floatValue">A floating-point value.</param>
108         /// <since_tizen> 3 </since_tizen>
109         public PropertyValue(float floatValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_3(floatValue), true)
110         {
111             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
112         }
113
114         /// <summary>
115         /// Creates a Vector2 property value.
116         /// </summary>
117         /// <param name="vectorValue">A vector of 2 floating-point values.</param>
118         /// <since_tizen> 3 </since_tizen>
119         public PropertyValue(Vector2 vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_4(Vector2.getCPtr(vectorValue)), true)
120         {
121             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122         }
123
124         /// <summary>
125         /// Creates a Vector3 property value.
126         /// </summary>
127         /// <param name="vectorValue">A vector of 3 floating-point values.</param>
128         /// <since_tizen> 3 </since_tizen>
129         public PropertyValue(Vector3 vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_5(Vector3.getCPtr(vectorValue)), true)
130         {
131             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
132         }
133
134         /// <summary>
135         /// Creates a Vector4 property value.
136         /// </summary>
137         /// <param name="vectorValue">A vector of 4 floating-point values.</param>
138         /// <since_tizen> 3 </since_tizen>
139         public PropertyValue(Vector4 vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_6(Vector4.getCPtr(vectorValue)), true)
140         {
141             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
142         }
143
144         /// <summary>
145         /// Creates a Rectangle property value.
146         /// </summary>
147         /// <param name="vectorValue">Rectangle values.</param>
148         /// <since_tizen> 3 </since_tizen>
149         public PropertyValue(Rectangle vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_9(Rectangle.getCPtr(vectorValue)), true)
150         {
151             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
152         }
153
154         /// <summary>
155         /// Creates a Rotation property value.
156         /// </summary>
157         /// <param name="quaternion">Rotation values.</param>
158         /// <since_tizen> 3 </since_tizen>
159         public PropertyValue(Rotation quaternion) : this(Interop.PropertyValue.new_Property_Value__SWIG_11(Rotation.getCPtr(quaternion)), true)
160         {
161             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
162         }
163
164         /// <summary>
165         /// Creates a string property value.
166         /// </summary>
167         /// <param name="stringValue">A string.</param>
168         /// <since_tizen> 3 </since_tizen>
169         public PropertyValue(string stringValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_12(stringValue), true)
170         {
171             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
172         }
173
174         /// <summary>
175         /// Creates an array property value.
176         /// </summary>
177         /// <param name="arrayValue">An array.</param>
178         /// <since_tizen> 3 </since_tizen>
179         public PropertyValue(PropertyArray arrayValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_14(PropertyArray.getCPtr(arrayValue)), true)
180         {
181             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182         }
183
184         /// <summary>
185         /// Creates a map property value.
186         /// </summary>
187         /// <param name="mapValue">An array.</param>
188         /// <since_tizen> 3 </since_tizen>
189         public PropertyValue(PropertyMap mapValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_15(PropertyMap.getCPtr(mapValue)), true)
190         {
191             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192         }
193
194         /// <summary>
195         /// Creates a Extents value.
196         /// </summary>
197         /// <param name="extentsValue">A Extents value.</param>
198         /// <since_tizen> 4 </since_tizen>
199         public PropertyValue(Extents extentsValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_16(Extents.getCPtr(extentsValue)), true)
200         {
201             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202         }
203
204         /// <summary>
205         /// Creates a PropertyType value.
206         /// </summary>
207         /// <param name="type">A PropertyType value.</param>
208         /// <since_tizen> 3 </since_tizen>
209         public PropertyValue(PropertyType type) : this(Interop.PropertyValue.new_Property_Value__SWIG_17((int)type), true)
210         {
211             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
212         }
213
214         /// <summary>
215         /// Creates a PropertyValue value.
216         /// </summary>
217         /// <param name="value">A PropertyValue value.</param>
218         /// <since_tizen> 3 </since_tizen>
219         public PropertyValue(PropertyValue value) : this(Interop.PropertyValue.new_Property_Value__SWIG_18(PropertyValue.getCPtr(value)), true)
220         {
221             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
222         }
223
224         /// <summary>
225         /// Creates a Size property value.
226         /// </summary>
227         /// <param name="vectorValue">Size values.</param>
228         internal PropertyValue(Size vectorValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_5(Size.getCPtr(vectorValue)), true)
229         {
230             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
231         }
232
233         internal PropertyValue(global::System.IntPtr cPtr, bool cMemoryOwn)
234         {
235             swigCMemOwn = cMemoryOwn;
236             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
237         }
238
239         internal PropertyValue(Matrix3 matrixValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_7(Matrix3.getCPtr(matrixValue)), true)
240         {
241             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
242         }
243
244         internal PropertyValue(Matrix matrixValue) : this(Interop.PropertyValue.new_Property_Value__SWIG_8(Matrix.getCPtr(matrixValue)), true)
245         {
246             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
247         }
248
249         internal PropertyValue(AngleAxis angleAxis) : this(Interop.PropertyValue.new_Property_Value__SWIG_10(AngleAxis.getCPtr(angleAxis)), true)
250         {
251             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
252         }
253
254         /// <summary>
255         /// An extension to the property value class that allows us to create a
256         /// Property value from a C# object, for example, integer, float, or string.<br />
257         /// </summary>
258         /// <param name="obj">An object to create.</param>
259         /// <returns>The created value.</returns>
260         /// <since_tizen> 3 </since_tizen>
261         static public PropertyValue CreateFromObject(System.Object obj)
262         {
263             System.Type type = obj.GetType();
264
265             PropertyValue value;
266             if (type.IsEnum)
267             {
268                 value = new PropertyValue((int)obj);//Enum.Parse(type, str);
269             }
270             else if (type.Equals(typeof(int)))
271             {
272                 value = new PropertyValue((int)obj);
273             }
274             else if (type.Equals(typeof(System.Int32)))
275             {
276                 value = new PropertyValue((int)obj);
277             }
278             else if (type.Equals(typeof(bool)))
279             {
280                 value = new PropertyValue((bool)obj);
281             }
282             else if (type.Equals(typeof(float)))
283             {
284                 value = new PropertyValue((float)obj);
285             }
286             else if (type.Equals(typeof(string)))
287             {
288                 value = new PropertyValue((string)obj);
289             }
290             else if (type.Equals(typeof(Vector2)))
291             {
292                 value = new PropertyValue((Vector2)obj);
293             }
294             else if (type.Equals(typeof(Vector3)))
295             {
296                 value = new PropertyValue((Vector3)obj);
297             }
298             else if (type.Equals(typeof(Vector4)))
299             {
300                 value = new PropertyValue((Vector4)obj);
301             }
302             else if (type.Equals(typeof(Position)))
303             {
304                 value = new PropertyValue((Position)obj);
305             }
306             else if (type.Equals(typeof(Position2D)))
307             {
308                 value = new PropertyValue((Position2D)obj);
309             }
310             else if (type.Equals(typeof(Size)))
311             {
312                 value = new PropertyValue((Size)obj);
313             }
314             else if (type.Equals(typeof(Size2D)))
315             {
316                 value = new PropertyValue((Size2D)obj);
317             }
318             else if (type.Equals(typeof(Color)))
319             {
320                 value = new PropertyValue((Color)obj);
321             }
322             else if (type.Equals(typeof(Rotation)))
323             {
324                 value = new PropertyValue((Rotation)obj);
325             }
326             else if (type.Equals(typeof(RelativeVector2)))
327             {
328                 value = new PropertyValue((RelativeVector2)obj);
329             }
330             else if (type.Equals(typeof(RelativeVector3)))
331             {
332                 value = new PropertyValue((RelativeVector3)obj);
333             }
334             else if (type.Equals(typeof(RelativeVector4)))
335             {
336                 value = new PropertyValue((RelativeVector4)obj);
337             }
338             else if (type.Equals(typeof(Extents)))
339             {
340                 value = new PropertyValue((Extents)obj);
341             }
342             else
343             {
344                 throw new global::System.InvalidOperationException("Unimplemented type for Property Value :" + type.Name);
345             }
346             //NUILog.Debug(" got an property value of =" + type.Name);
347             return value;
348         }
349
350         /// <summary>
351         /// Retrieves a Size2D value.
352         /// </summary>
353         /// <param name="vectorValue"> On return, a Size2D value.</param>
354         /// <since_tizen> 3 </since_tizen>
355         public bool Get(Size2D vectorValue)
356         {
357             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, Size2D.getCPtr(vectorValue));
358             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
359             return ret;
360         }
361
362         /// <summary>
363         /// Retrieves a Position2D value.
364         /// </summary>
365         /// <param name="vectorValue"> On return, a Position2D value.</param>
366         /// <since_tizen> 3 </since_tizen>
367         public bool Get(Position2D vectorValue)
368         {
369             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, Position2D.getCPtr(vectorValue));
370             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
371             return ret;
372         }
373
374         /// <summary>
375         /// Retrieves a Size value.
376         /// </summary>
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)
381         {
382             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, Size.getCPtr(vectorValue));
383             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
384             return ret;
385         }
386
387         /// <summary>
388         /// Retrieves a Position value.
389         /// </summary>
390         /// <param name="vectorValue"> On return, a position value.</param>
391         /// <since_tizen> 3 </since_tizen>
392         public bool Get(Position vectorValue)
393         {
394             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, Position.getCPtr(vectorValue));
395             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396             return ret;
397         }
398
399         /// <summary>
400         /// Retrieves a Color value.
401         /// </summary>
402         /// <param name="vectorValue"> On return, a color value.</param>
403         /// <since_tizen> 3 </since_tizen>
404         public bool Get(Color vectorValue)
405         {
406             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_7(swigCPtr, Color.getCPtr(vectorValue));
407             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
408             return ret;
409         }
410
411         /// <summary>
412         /// Queries the type of this property value.
413         /// </summary>
414         /// <returns>The type ID</returns>
415         /// <since_tizen> 3 </since_tizen>
416         public new PropertyType GetType()
417         {
418             PropertyType ret = (PropertyType)Interop.PropertyValue.Property_Value_GetType(swigCPtr);
419             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420             return ret;
421         }
422
423         /// <summary>
424         /// Retrieves a boolean value.
425         /// </summary>
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)
430         {
431             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_1(swigCPtr, out boolValue);
432             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
433             return ret;
434         }
435
436         /// <summary>
437         /// Retrieves a floating-point value.
438         /// </summary>
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)
443         {
444             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_2(swigCPtr, out floatValue);
445             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
446             return ret;
447         }
448
449         /// <summary>
450         /// Retrieves an integer value.
451         /// </summary>
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)
456         {
457             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_3(swigCPtr, out integerValue);
458             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
459             return ret;
460         }
461
462         /// <summary>
463         /// Retrieves an integer rectangle.
464         /// </summary>
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)
469         {
470             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_4(swigCPtr, Rectangle.getCPtr(rect));
471             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
472             return ret;
473         }
474
475         /// <summary>
476         /// Retrieves a vector value.
477         /// </summary>
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)
482         {
483             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, Vector2.getCPtr(vectorValue));
484             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
485             return ret;
486         }
487
488         /// <summary>
489         /// Retrieves a vector value.
490         /// </summary>
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)
495         {
496             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, Vector3.getCPtr(vectorValue));
497             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
498             return ret;
499         }
500
501         /// <summary>
502         /// Retrieves a vector value.
503         /// </summary>
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)
508         {
509             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_7(swigCPtr, Vector4.getCPtr(vectorValue));
510             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
511             return ret;
512         }
513
514         /// <summary>
515         /// Retrieves a vector value.
516         /// </summary>
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)
523         {
524             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_5(swigCPtr, RelativeVector2.getCPtr(vectorValue));
525             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
526             return ret;
527         }
528
529         /// <summary>
530         /// Retrieves a vector value.
531         /// </summary>
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)
538         {
539             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_6(swigCPtr, RelativeVector3.getCPtr(vectorValue));
540             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
541             return ret;
542         }
543
544         /// <summary>
545         /// Retrieves a vector value.
546         /// </summary>
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)
553         {
554             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_7(swigCPtr, RelativeVector4.getCPtr(vectorValue));
555             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
556             return ret;
557         }
558
559         /// <summary>
560         /// Retrieves a rotation value.
561         /// </summary>
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)
566         {
567             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_11(swigCPtr, Rotation.getCPtr(quaternionValue));
568             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
569             return ret;
570         }
571
572         /// <summary>
573         /// Retrieves a string property value.
574         /// </summary>
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)
579         {
580             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_12(swigCPtr, out stringValue);
581             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
582             return ret;
583         }
584
585         /// <summary>
586         /// Retrieves an array property value.
587         /// </summary>
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)
592         {
593             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_13(swigCPtr, PropertyArray.getCPtr(arrayValue));
594             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
595             return ret;
596         }
597
598         /// <summary>
599         /// Retrieves a map property value.
600         /// </summary>
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)
605         {
606             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_14(swigCPtr, PropertyMap.getCPtr(mapValue));
607             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
608             return ret;
609         }
610
611         /// <summary>
612         /// Retrieves a Extents value.
613         /// </summary>
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)
618         {
619             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_15(swigCPtr, Extents.getCPtr(extentsValue));
620             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
621             return ret;
622         }
623
624         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PropertyValue obj)
625         {
626             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
627         }
628
629         internal bool Get(Matrix3 matrixValue)
630         {
631             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_8(swigCPtr, Matrix3.getCPtr(matrixValue));
632             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
633             return ret;
634         }
635
636         internal bool Get(Matrix matrixValue)
637         {
638             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_9(swigCPtr, Matrix.getCPtr(matrixValue));
639             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
640             return ret;
641         }
642
643         internal bool Get(AngleAxis angleAxisValue)
644         {
645             bool ret = Interop.PropertyValue.Property_Value_Get__SWIG_10(swigCPtr, AngleAxis.getCPtr(angleAxisValue));
646             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
647             return ret;
648         }
649
650         /// <summary>
651         /// Dispose.
652         /// </summary>
653         /// <since_tizen> 3 </since_tizen>
654         protected override void Dispose(DisposeTypes type)
655         {
656             if (disposed)
657             {
658                 return;
659             }
660
661             //Release your own unmanaged resources here.
662             //You should not access any managed member here except static instance.
663             //because the execution order of Finalizes is non-deterministic.
664
665             if (swigCPtr.Handle != global::System.IntPtr.Zero)
666             {
667                 if (swigCMemOwn)
668                 {
669                     swigCMemOwn = false;
670                     Interop.PropertyValue.delete_Property_Value(swigCPtr);
671                 }
672                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
673             }
674             base.Dispose(type);
675         }
676     }
677 }