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