/
NUIConstants.cs
executable file
·2738 lines (2652 loc) · 91.3 KB
/
NUIConstants.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
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2018 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;
using System.ComponentModel;
namespace Tizen.NUI
{
/// <summary>
/// This specifies all the scroll mode type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum ScrollModeType
{
/// <summary>
/// Whether the content can be scrolled along the X axis or not.
/// </summary>
/// <since_tizen> 3 </since_tizen>
XAxisScrollEnabled,
/// <summary>
/// When set, causes scroll view to snap to multiples of the
/// value of the interval while flicking along the X axis.
/// </summary>
/// <since_tizen> 3 </since_tizen>
XAxisSnapToInterval,
/// <summary>
/// When set, the scroll view is unable to scroll beyond the
/// value of the boundary along the X axis.
/// </summary>
/// <since_tizen> 3 </since_tizen>
XAxisScrollBoundary,
/// <summary>
/// Whether the content can be scrolled along the Y axis or not.
/// </summary>
/// <since_tizen> 3 </since_tizen>
YAxisScrollEnabled,
/// <summary>
/// When set, causes scroll view to snap to multiples of the
/// value of the interval while flicking along the Y axis.
/// </summary>
/// <since_tizen> 3 </since_tizen>
YAxisSnapToInterval,
/// <summary>
/// When set, the scroll view is unable to scroll beyond the
/// value of the boundary along the Y axis.
/// </summary>
/// <since_tizen> 3 </since_tizen>
YAxisScrollBoundary
}
/// <summary>
/// This specifies whether the actor uses its own color or inherits.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum ColorMode
{
/// <summary>
/// Actor will use its own color.
/// </summary>
UseOwnColor,
/// <summary>
/// Actor will use its parent color.
/// </summary>
UseParentColor,
/// <summary>
/// Actor will blend its color with its parents color.
/// </summary>
UseOwnMultiplyParentColor,
/// <summary>
/// Actor will blend its alpha with its parents alpha. This means when the parent fades in or out, the child does as well. This is the default.
/// </summary>
UseOwnMultiplyParentAlpha
}
/// <summary>
/// This specifies the dimension of the width or the height for size negotiation.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum DimensionType
{
/// <summary>
/// Width dimension.
/// </summary>
Width = 0x1,
/// <summary>
/// Height dimension.
/// </summary>
Height = 0x2,
/// <summary>
/// Mask to cover all flags.
/// </summary>
AllDimensions = 0x3
}
/// <summary>
/// Enumeration for the instance of how the actor and it's children will be drawn.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum DrawModeType
{
/// <summary>
/// The default draw-mode.
/// </summary>
Normal = 0,
/// <summary>
/// Draw the actor and its children as an overlay.
/// </summary>
Overlay2D = 1,
/// <summary>
/// Will be replaced by separate ClippingMode enum. Draw the actor and its children into the stencil buffer.
/// </summary>
Stencil = 3
}
/// <summary>
/// Enumeration for size negotiation resize policies.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum ResizePolicyType
{
/// <summary>
/// Size is fixed as set by SetSize.
/// </summary>
Fixed,
/// <summary>
/// Size is to use the actor's natural size.
/// </summary>
/// <see cref="ViewImpl.GetNaturalSize"/>
UseNaturalSize,
/// <summary>
/// Size is to fill up to the actor's parent's bounds. Aspect ratio is not maintained.
/// </summary>
FillToParent,
/// <summary>
/// The actors size will be ( ParentSize * SizeRelativeToParentFactor ).
/// </summary>
SizeRelativeToParent,
/// <summary>
/// The actors size will be ( ParentSize + SizeRelativeToParentFactor ).
/// </summary>
SizeFixedOffsetFromParent,
/// <summary>
/// The size will adjust to wrap around all children.
/// </summary>
FitToChildren,
/// <summary>
/// One dimension is dependent on the other.
/// </summary>
DimensionDependency,
/// <summary>
/// The size will be assigned to the actor.
/// </summary>
UseAssignedSize
}
/// <summary>
/// Enumeration for policies to determine how an actor should resize itself when having its size set in size negotiation.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum SizeScalePolicyType
{
/// <summary>
/// Use the size that was set.
/// </summary>
UseSizeSet,
/// <summary>
/// Fit within the size set maintaining natural size aspect ratio.
/// </summary>
FitWithAspectRatio,
/// <summary>
/// Fit within the size set maintaining natural size aspect ratio.
/// </summary>
FillWithAspectRatio
}
/// <summary>
/// Enumeration for the ClippingMode describing how this actor's children will be clipped against it.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum ClippingModeType
{
/// <summary>
/// This actor will not clip its children.
/// </summary>
Disabled,
/// <summary>
/// This actor will clip all children to within its boundaries (the actor will also be visible itself).
/// </summary>
ClipChildren,
/// <summary>
/// This Actor will clip all children within a screen-aligned rectangle encompassing its boundaries (the actor will also be visible itself).
/// </summary>
/// <since_tizen> 4 </since_tizen>
ClipToBoundingBox
}
/// <summary>
/// Enumeration for type determination of how the camera operates.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum CameraType
{
/// <summary>
/// Camera orientation is taken from the CameraActor.
/// </summary>
FreeLook,
/// <summary>
/// Camera is oriented to always look at a target.
/// </summary>
LookAtTarget
}
/// <summary>
/// Enumeration for the projection modes.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum ProjectionMode
{
/// <summary>
/// Distance causes foreshortening; objects further from the camera appear smaller.
/// </summary>
PerspectiveProjection,
/// <summary>
/// Relative distance from the camera does not affect the size of objects.
/// </summary>
OrthographicProjection
}
/// <summary>
/// This specifies customView behavior types.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum CustomViewBehaviour
{
/// <summary>
/// Use to provide default behavior (size negotiation is on, event callbacks are not called).
/// </summary>
ViewBehaviourDefault = 0,
/// <summary>
/// True if the control does not need size negotiation, i.e., it can be skipped in the algorithm.
/// </summary>
DisableSizeNegotiation = 1 << 0,
/// <summary>
/// Use to provide key navigation support.
/// </summary>
RequiresKeyboardNavigationSupport = 1 << 5,
/// <summary>
/// Use to make style change event disabled.
/// </summary>
DisableStyleChangeSignals = 1 << 6,
/// <summary>
/// Please do not use! This will be deprecated!
/// </summary>
/// <since_tizen> 3 </since_tizen>
[Obsolete("Please do not use! This will be deprecated!")]
[EditorBrowsable(EditorBrowsableState.Never)]
LastViewBehaviourFlag
}
/// <summary>
/// An enum of Device Class types.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum DeviceClassType
{
/// <summary>
/// Not a device.
/// </summary>
/// <since_tizen> 3 </since_tizen>
None,
/// <summary>
/// The user/seat (the user themselves).
/// </summary>
/// <since_tizen> 3 </since_tizen>
Seat,
/// <summary>
/// A regular keyboard, numberpad or attached buttons.
/// </summary>
/// <since_tizen> 3 </since_tizen>
Keyboard,
/// <summary>
/// A mouse, trackball or touchpad relative motion device.
/// </summary>
/// <since_tizen> 3 </since_tizen>
Mouse,
/// <summary>
/// A touchscreen with fingers or stylus.
/// </summary>
/// <since_tizen> 3 </since_tizen>
Touch,
/// <summary>
/// A special pen device.
/// </summary>
/// <since_tizen> 3 </since_tizen>
Pen,
/// <summary>
/// A pointing device based on laser, infrared or similar technology.
/// </summary>
/// <since_tizen> 3 </since_tizen>
Pointer,
/// <summary>
/// A gamepad controller or joystick.
/// </summary>
/// <since_tizen> 3 </since_tizen>
Gamepad
}
/// <summary>
/// An enum of Device Subclass types.
/// </summary>
/// <since_tizen> 4 </since_tizen>
public enum DeviceSubClassType
{
/// <summary>
/// Not a device
/// </summary>
/// <since_tizen> 4 </since_tizen>
None,
/// <summary>
/// The normal flat of your finger
/// </summary>
/// <since_tizen> 4 </since_tizen>
Finger,
/// <summary>
/// A fingernail
/// </summary>
/// <since_tizen> 4 </since_tizen>
Fingernail,
/// <summary>
/// A Knuckle
/// </summary>
/// <since_tizen> 4 </since_tizen>
Knuckle,
/// <summary>
/// The palm of a users hand
/// </summary>
/// <since_tizen> 4 </since_tizen>
Palm,
/// <summary>
/// The side of your hand
/// </summary>
/// <since_tizen> 4 </since_tizen>
HandSide,
/// <summary>
/// The flat of your hand
/// </summary>
/// <since_tizen> 4 </since_tizen>
HandFlat,
/// <summary>
/// The tip of a pen
/// </summary>
/// <since_tizen> 4 </since_tizen>
PenTip,
/// <summary>
/// A trackpad style mouse
/// </summary>
/// <since_tizen> 4 </since_tizen>
Trackpad,
/// <summary>
/// A trackpoint style mouse
/// </summary>
/// <since_tizen> 4 </since_tizen>
Trackpoint,
/// <summary>
/// A trackball style mouse
/// </summary>
/// <since_tizen> 4 </since_tizen>
Trackball,
/// <summary>
/// A remote controller
/// </summary>
/// <since_tizen> 4 </since_tizen>
Remocon,
/// <summary>
/// A virtual keyboard
/// </summary>
/// <since_tizen> 4 </since_tizen>
VirtualKeyboard
}
/// <summary>
/// This specifies all the property types.<br />
/// Enumeration for the property types supported.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum PropertyType
{
/// <summary>
/// No type.
/// </summary>
None,
/// <summary>
/// A boolean type.
/// </summary>
Boolean,
/// <summary>
/// A float type.
/// </summary>
Float,
/// <summary>
/// An integer type.
/// </summary>
Integer,
/// <summary>
/// A vector array of size=2 with float precision.
/// </summary>
Vector2,
/// <summary>
/// A vector array of size=3 with float precision.
/// </summary>
Vector3,
/// <summary>
/// A vector array of size=4 with float precision.
/// </summary>
Vector4,
/// <summary>
/// A 3x3 matrix.
/// </summary>
Matrix3,
/// <summary>
/// A 4x4 matrix.
/// </summary>
Matrix,
/// <summary>
/// An integer array of size=4.
/// </summary>
Rectangle,
/// <summary>
/// Either a quaternion or an axis angle rotation.
/// </summary>
Rotation,
/// <summary>
/// A string type.
/// </summary>
String,
/// <summary>
/// An array of PropertyValue.
/// </summary>
Array,
/// <summary>
/// A string key to PropertyValue mapping.
/// </summary>
Map,
/// <summary>
/// An extents type.
/// </summary>
/// <since_tizen> 4 </since_tizen>
Extents
}
/// <summary>
/// This specifies the property access mode types.<br />
/// Enumeration for the access mode for custom properties.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum PropertyAccessMode
{
/// <summary>
/// If the property is read-only.
/// </summary>
ReadOnly,
/// <summary>
/// If the property is read or writeable.
/// </summary>
ReadWrite,
/// <summary>
/// If the property can be animated or constrained.
/// </summary>
Animatable,
/// <summary>
/// The number of access modes.
/// </summary>
AccessModeCount
}
/// <summary>
/// Types of style change. Enumeration for the StyleChange type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum StyleChangeType
{
/// <summary>
/// Denotes that the default font has changed.
/// </summary>
DefaultFontChange,
/// <summary>
/// Denotes that the default font size has changed.
/// </summary>
DefaultFontSizeChange,
/// <summary>
/// Denotes that the theme has changed.
/// </summary>
ThemeChange
}
/// <summary>
/// Enumeration for horizontal alignment types.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum HorizontalAlignmentType
{
/// <summary>
/// Align horizontally left.
/// </summary>
Left,
/// <summary>
/// Align horizontally center.
/// </summary>
Center,
/// <summary>
/// Align horizontally right.
/// </summary>
Right
}
/// <summary>
/// Enumeration for vertical alignment types.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum VerticalAlignmentType
{
/// <summary>
/// Align vertically top.
/// </summary>
Top,
/// <summary>
/// Align vertically center.
/// </summary>
Center,
/// <summary>
/// Align vertically bottom.
/// </summary>
Bottom
}
/// <summary>
/// Enumeration for point state type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum PointStateType
{
/// <summary>
/// Touch or hover started.
/// </summary>
Started,
/// <summary>
/// Touch or hover finished.
/// </summary>
Finished,
/// <summary>
/// Screen touched.
/// </summary>
Down = Started,
/// <summary>
/// Touch stopped.
/// </summary>
Up = Finished,
/// <summary>
/// Finger dragged or hovered.
/// </summary>
Motion,
/// <summary>
/// Leave the boundary of an actor.
/// </summary>
Leave,
/// <summary>
/// No change from last event. <br />
/// Useful when a multi-point event occurs where all points are sent, but indicates that this particular point has not changed since the last time.
/// </summary>
Stationary,
/// <summary>
/// A system event has occurred which has interrupted the touch or hover event sequence.
/// </summary>
Interrupted
}
/// <summary>
/// Enumeration for the text horizontal aligning.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum HorizontalAlignment
{
/// <summary>
/// Texts place at the begin of horizontal direction.
/// </summary>
Begin,
/// <summary>
/// Texts place at the center of horizontal direction.
/// </summary>
Center,
/// <summary>
/// Texts place at the end of horizontal direction.
/// </summary>
End
}
/// <summary>
/// Enumeration for the text horizontal aligning.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum VerticalAlignment
{
/// <summary>
/// Texts place at the top of vertical direction.
/// </summary>
Top,
/// <summary>
/// Texts place at the center of vertical direction.
/// </summary>
Center,
/// <summary>
/// Texts place at the bottom of vertical direction.
/// </summary>
Bottom
}
/// <summary>
/// This specifies wrap mode types.<br />
/// WrapModeU and WrapModeV separately decide how the texture should be sampled when the u and v coordinate exceeds the range of 0.0 to 1.0.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum WrapModeType
{
/// <summary>
/// The default value.
/// </summary>
Default = 0,
/// <summary>
/// Clamp to edge.
/// </summary>
ClampToEdge,
/// <summary>
/// Repeat.
/// </summary>
Repeat,
/// <summary>
/// Mirrored repeat.
/// </summary>
MirroredRepeat
}
/// <summary>
/// Specifies the release policy types.<br />
/// Decides if the image should be cached in different conditions.
/// </summary>
/// <since_tizen> 5 </since_tizen>
public enum ReleasePolicyType
{
/// <summary>
/// Image is released when visual detached from scene.
/// </summary>
Detached = 0,
/// <summary>
/// Image is only released when visual is destroyed.
/// </summary>
Destroyed,
/// <summary>
/// Image is not released.
/// </summary>
Never
}
/// <summary>
/// Specifies the load policy types.<br />
/// Decides when the image texture should be loaded.
/// </summary>
/// <since_tizen> 5 </since_tizen>
public enum LoadPolicyType
{
/// <summary>
/// Load texture once the image source has been provided. Even if not being used yet.
/// </summary>
Immediate = 0,
/// <summary>
/// Only load texture once the visual is attached, when the image needs to be shown.
/// </summary>
Attached
}
/// <summary>
/// The type of coordinate system for certain attributes of the points in a gradient.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum GradientVisualUnitsType
{
/// <summary>
/// Uses the normals for the start, end, and center points, i.e., top-left is (-0.5, -0.5) and bottom-right is (0.5, 0.5).
/// </summary>
ObjectBoundingBox,
/// <summary>
/// Uses the user coordinates for the start, end, and center points, i.e., in a 200 by 200 control, top-left is (0, 0) and bottom-right is (200, 200).
/// </summary>
UserSpace
}
/// <summary>
/// This specifies SpreadMethod types.<br />
/// SpreadMethod defines what happens if the gradient starts or ends inside the bounds of the target rectangle.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum GradientVisualSpreadMethodType
{
/// <summary>
/// Uses the terminal colors of the gradient to fill the remainder of the quad.
/// </summary>
Pad,
/// <summary>
/// Reflects the gradient pattern start-to-end, end-to-start, start-to-end, etc. until the quad is filled.
/// </summary>
Reflect,
/// <summary>
/// Repeats the gradient pattern start-to-end, start-to-end, start-to-end, etc. until the quad is filled.
/// </summary>
Repeat
}
/// <summary>
/// The shading mode used by the mesh visual.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum MeshVisualShadingModeValue
{
/// <summary>
/// *Simplest*. One color that is lit by ambient and diffuse lighting.
/// </summary>
TexturelessWithDiffuseLighting,
/// <summary>
/// Uses only the visual image textures provided with specular lighting in addition to ambient and diffuse lighting.
/// </summary>
TexturedWithSpecularLighting,
/// <summary>
/// Uses all textures provided including gloss, normal, and texture map along with specular, ambient, and diffuse lighting.
/// </summary>
TexturedWithDetailedSpecularLighting
}
/// <summary>
/// The primitive shape to render as a primitive visual.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum PrimitiveVisualShapeType
{
/// <summary>
/// A perfectly round geometrical object in the three-dimensional space.
/// </summary>
Sphere,
/// <summary>
/// The area bound between two circles, i.e., a cone with the tip removed.
/// </summary>
ConicalFrustrum,
/// <summary>
/// Equivalent to a conical frustrum with the top radius of zero.
/// </summary>Equivalent to a conical frustrum with the top radius of zero.
Cone,
/// <summary>
/// Equivalent to a conical frustrum with the top radius of zero.
/// </summary>
Cylinder,
/// <summary>
/// Equivalent to a conical frustrum with equal radii for the top and bottom circles.
/// </summary>
Cube,
/// <summary>
/// Equivalent to a bevelled cube with a bevel percentage of zero.
/// </summary>
Octahedron,
/// <summary>
/// Equivalent to a bevelled cube with a bevel percentage of one.
/// </summary>
BevelledCube
}
/// <summary>
/// This specifies fitting mode types. Fitting options, used when resizing images to fit desired dimensions.<br />
/// A fitting mode controls the region of a loaded image to be mapped to the desired image rectangle.<br />
/// All fitting modes preserve the aspect ratio of the image contents.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum FittingModeType
{
/// <summary>
/// Full-screen image display: Limit loaded image resolution to device resolution using the ShrinkToFit mode.
/// </summary>
ShrinkToFit,
/// <summary>
/// Thumbnail gallery grid: Limit loaded image resolution to screen tile using the ScaleToFill mode.
/// </summary>
ScaleToFill,
/// <summary>
/// Image columns: Limit loaded image resolution to column width using the FitWidth mode.
/// </summary>
FitWidth,
/// <summary>
/// Image rows: Limit loaded image resolution to row height using the FitHeight mode.
/// </summary>
FitHeight
}
/// <summary>
/// The values of this enum determine how the visual should fit into the view.
/// </summary>
/// <since_tizen> 5 </since_tizen>
public enum VisualFittingModeType
{
/// <summary>
/// The visual should be scaled to fit, preserving aspect ratio.
/// </summary>
FitKeepAspectRatio,
/// <summary>
/// The visual should be stretched to fill, not preserving aspect ratio.
/// </summary>
Fill
}
/// <summary>
/// This specifies sampling mode types. Filtering options are used when resizing images to sample original pixels.<br />
/// A SamplingMode controls how pixels in an input image are sampled and combined to generate each pixel of a destination image during scaling.<br />
/// NoFilter and Box modes do not guarantee that the output pixel array exactly matches the rectangle specified by the desired dimensions and the FittingMode,<br />
/// but all other filter modes do if the desired dimensions are not more than the raw dimensions of the input image file.<br />
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum SamplingModeType
{
/// <summary>
/// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size. <br />
/// This is the default.
/// </summary>
Box,
/// <summary>
/// For each output pixel, read one input pixel.
/// </summary>
Nearest,
/// <summary>
/// For each output pixel, read a quad of four input pixels and write a weighted average of them.
/// </summary>
Linear,
/// <summary>
/// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size, <br />
/// then for each output pixel, read one pixel from the last level of box filtering.<br />
/// </summary>
BoxThenNearest,
/// <summary>
/// Iteratively box filter to almost the right size, then for each output pixel, read four pixels from the last level of box filtering and write their weighted average.
/// </summary>
BoxThenLinear,
/// <summary>
/// No filtering is performed. If the SCALE_TO_FILL scaling mode is enabled, the borders of the image may be trimmed to match the aspect ratio of the desired dimensions.
/// </summary>
NoFilter,
/// <summary>
/// For caching algorithms where a client strongly prefers a cache-hit to reuse a cached image.
/// </summary>
DontCare
}
/// <summary>
/// This specifies policy types that could be used by the transform for the offset or size.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum VisualTransformPolicyType
{
/// <summary>
/// Relative to the control (percentage [0.0f to 1.0f] of the control).
/// </summary>
Relative = 0,
/// <summary>
/// Absolute value in world units.
/// </summary>
Absolute = 1
}
/// <summary>
/// This specifies all the transform property types.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum VisualTransformPropertyType
{
/// <summary>
/// Offset of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
/// </summary>
Offset,
/// <summary>
/// Size of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
/// </summary>
Size,
/// <summary>
/// The origin of the visual within its control area.
/// </summary>
Origin,
/// <summary>
/// The anchor-point of the visual.
/// </summary>
AnchorPoint,
/// <summary>
/// Whether the x or y offset values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
/// </summary>
OffsetPolicy,
/// <summary>
/// Whether the width or the height size values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
/// </summary>
SizePolicy
}
/// <summary>
/// This specifies visual types.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public struct Visual
{
/// <summary>
/// The index for the visual type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public enum Type
{
/// <summary>
/// Renders a solid color as an internal border to the control's quad.
/// </summary>
Border,
/// <summary>
/// Renders a solid color to the control's quad.
/// </summary>
Color,
/// <summary>
/// Renders a smooth transition of colors to the control's quad.
/// </summary>
Gradient,
/// <summary>
/// Renders an image into the control's quad.
/// </summary>
Image,
/// <summary>
/// Renders a mesh using an "obj" file, optionally with textures provided by an "mtl" file.
/// </summary>
Mesh,
/// <summary>
/// Renders a simple 3D shape, such as a cube or a sphere.
/// </summary>
Primitive,
/// <summary>
/// Renders a simple wire-frame outlining a quad.
/// </summary>
Wireframe,
/// <summary>
/// Renders text.
/// </summary>
Text,
/// <summary>
/// Renders an NPatch image.
/// </summary>
NPatch,
/// <summary>
/// Renders an SVG image.
/// </summary>
SVG,
/// <summary>
/// Renders a animated image (animated GIF).
/// </summary>
AnimatedImage
}
/// <summary>
/// This specifies visual properties.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public struct Property
{
/// <summary>
/// Type.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public static readonly int Type = NDalic.VISUAL_PROPERTY_TYPE;
/// <summary>
/// Shader.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public static readonly int Shader = NDalic.VISUAL_PROPERTY_SHADER;
/// <summary>
/// Transform.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public static readonly int Transform = NDalic.VISUAL_PROPERTY_TRANSFORM;
/// <summary>
/// PremultipliedAlpha.
/// </summary>
/// <since_tizen> 3 </since_tizen>
public static readonly int PremultipliedAlpha = NDalic.VISUAL_PROPERTY_PREMULTIPLIED_ALPHA;
/// <summary>