1 // Copyright (c) 2019 Samsung Electronics Co., Ltd.
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 using System.ComponentModel;
20 /// Specifies the release policy types.<br />
21 /// Decides if the image should be cached in different conditions.
23 /// <since_tizen> 5 </since_tizen>
24 public enum ReleasePolicyType
27 /// Image is released when visual detached from scene.
31 /// Image is only released when visual is destroyed.
35 /// Image is not released.
41 /// Specifies the load policy types.<br />
42 /// Decides when the image texture should be loaded.
44 /// <since_tizen> 5 </since_tizen>
45 public enum LoadPolicyType
48 /// Load texture once the image source has been provided. Even if not being used yet.
52 /// Only load texture once the visual is attached, when the image needs to be shown.
58 /// Enumeration for the horizontal alignment of objects such as texts and layout items.
60 /// <since_tizen> 3 </since_tizen>
61 public enum HorizontalAlignment
64 /// Objects are placed at the beginning of the horizontal direction.
66 [Description("BEGIN")]
69 /// Objects are placed at the center of the horizontal direction.
71 [Description("CENTER")]
74 /// Objects are placed at the end of the horizontal direction.
81 /// Enumeration for the vertical alignment of objects such as texts and layout items.
83 /// <since_tizen> 3 </since_tizen>
84 public enum VerticalAlignment
87 /// Objects are placed at the top of the vertical direction.
92 /// Objects are placed at the center of the vertical direction.
94 [Description("CENTER")]
97 /// Objects are placed at the bottom of the vertical direction.
99 [Description("BOTTOM")]
104 /// This specifies wrap mode types.<br />
105 /// 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.
107 /// <since_tizen> 3 </since_tizen>
108 public enum WrapModeType
111 /// The default value.
129 /// This specifies fitting mode types. Fitting options, used when resizing images to fit desired dimensions.<br />
130 /// A fitting mode controls the region of a loaded image to be mapped to the desired image rectangle.<br />
131 /// All fitting modes preserve the aspect ratio of the image contents.<br />
133 /// <since_tizen> 3 </since_tizen>
134 public enum FittingModeType
137 /// Full-screen image display: Limit loaded image resolution to device resolution using the ShrinkToFit mode.
141 /// Thumbnail gallery grid: Limit loaded image resolution to screen tile using the ScaleToFill mode.
145 /// Image columns: Limit loaded image resolution to column width using the FitWidth mode.
149 /// Image rows: Limit loaded image resolution to row height using the FitHeight mode.
153 /// Image displayed in its original size (no scaling) using the Center mode.
155 [EditorBrowsable(EditorBrowsableState.Never)]
158 /// Image stretched to fill the desired area (aspect ratio could be changed) using the Fill mode.
160 [EditorBrowsable(EditorBrowsableState.Never)]
165 /// This specifies sampling mode types. Filtering options are used when resizing images to sample original pixels.<br />
166 /// A SamplingMode controls how pixels in an input image are sampled and combined to generate each pixel of a destination image during scaling.<br />
167 /// 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 />
168 /// but all other filter modes do if the desired dimensions are not more than the raw dimensions of the input image file.<br />
170 /// <since_tizen> 3 </since_tizen>
171 public enum SamplingModeType
174 /// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size. <br />
175 /// This is the default.
179 /// For each output pixel, read one input pixel.
183 /// For each output pixel, read a quad of four input pixels and write a weighted average of them.
187 /// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size, <br />
188 /// then for each output pixel, read one pixel from the last level of box filtering.<br />
192 /// 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.
196 /// 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.
200 /// For caching algorithms where a client strongly prefers a cache-hit to reuse a cached image.
206 /// The type of coordinate system for certain attributes of the points in a gradient.
208 /// <since_tizen> 3 </since_tizen>
209 public enum GradientVisualUnitsType
212 /// 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).
216 /// 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).
222 /// This specifies SpreadMethod types.<br />
223 /// SpreadMethod defines what happens if the gradient starts or ends inside the bounds of the target rectangle.<br />
225 /// <since_tizen> 3 </since_tizen>
226 public enum GradientVisualSpreadMethodType
229 /// Uses the terminal colors of the gradient to fill the remainder of the quad.
233 /// Reflects the gradient pattern start-to-end, end-to-start, start-to-end, etc. until the quad is filled.
237 /// Repeats the gradient pattern start-to-end, start-to-end, start-to-end, etc. until the quad is filled.
243 /// The shading mode used by the mesh visual.
245 /// <since_tizen> 3 </since_tizen>
246 public enum MeshVisualShadingModeValue
249 /// *Simplest*. One color that is lit by ambient and diffuse lighting.
251 TexturelessWithDiffuseLighting,
253 /// Uses only the visual image textures provided with specular lighting in addition to ambient and diffuse lighting.
255 TexturedWithSpecularLighting,
257 /// Uses all textures provided including gloss, normal, and texture map along with specular, ambient, and diffuse lighting.
259 TexturedWithDetailedSpecularLighting
263 /// The primitive shape to render as a primitive visual.
265 /// <since_tizen> 3 </since_tizen>
266 public enum PrimitiveVisualShapeType
269 /// A perfectly round geometrical object in the three-dimensional space.
273 /// The area bound between two circles, i.e., a cone with the tip removed.
277 /// Equivalent to a conical frustum with the top radius of zero.
278 /// </summary>Equivalent to a conical frustum with the top radius of zero.
281 /// Equivalent to a conical frustum with the top radius of zero.
285 /// Equivalent to a conical frustum with equal radii for the top and bottom circles.
289 /// Equivalent to a bevelled cube with a bevel percentage of zero.
293 /// Equivalent to a bevelled cube with a bevel percentage of one.
299 /// The values of this enum determine how the visual should fit into the view.
301 /// <since_tizen> 5 </since_tizen>
302 public enum VisualFittingModeType
305 /// The visual should be scaled to fit, preserving aspect ratio.
309 /// The visual should be stretched to fill, not preserving aspect ratio.
313 /// The visual should be scaled to fit, preserving aspect ratio. The visual will be filled without empty area, and outside is cropped away.
315 [EditorBrowsable(EditorBrowsableState.Never)]
316 OverFitKeepAspectRatio,
318 /// The visual should keep original size of image. it is not scaled and not stretched.
320 [EditorBrowsable(EditorBrowsableState.Never)]
323 /// The visual should be scaled to fit, preserving aspect ratio. Height is scaled proportionately to maintain aspect ratio.
325 [EditorBrowsable(EditorBrowsableState.Never)]
328 /// The visual should be scaled to fit, preserving aspect ratio. WIDTH is scaled proportionately to maintain aspect ratio.
330 [EditorBrowsable(EditorBrowsableState.Never)]
335 /// This specifies policy types that could be used by the transform for the offset or size.
337 /// <since_tizen> 3 </since_tizen>
338 public enum VisualTransformPolicyType
341 /// Relative to the control (percentage [0.0f to 1.0f] of the control).
345 /// Absolute value in world units.
351 /// This specifies all the transform property types.
353 /// <since_tizen> 3 </since_tizen>
354 public enum VisualTransformPropertyType
357 /// Offset of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
361 /// Size of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
365 /// The origin of the visual within its control area.
369 /// The anchor-point of the visual.
373 /// Whether the x or y offset values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
377 /// Whether the width or the height size values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
381 /// Extra size value that will be added to the computed visual size.
383 [EditorBrowsable(EditorBrowsableState.Never)]
388 /// This specifies visual types.
390 /// <since_tizen> 3 </since_tizen>
394 /// The index for the visual type.
396 /// <since_tizen> 3 </since_tizen>
400 /// Renders a solid color as an internal border to the control's quad.
404 /// Renders a solid color to the control's quad.
408 /// Renders a smooth transition of colors to the control's quad.
412 /// Renders an image into the control's quad.
416 /// Renders a mesh using an "obj" file, optionally with textures provided by an "mtl" file.
420 /// Renders a simple 3D shape, such as a cube or a sphere.
424 /// Renders a simple wire-frame outlining a quad.
432 /// Renders an NPatch image.
436 /// Renders an SVG image.
440 /// Renders a animated image (animated GIF).
446 [EditorBrowsable(EditorBrowsableState.Never)]
447 Arc = AnimatedImage + 3,
450 /// Keyword for invalid visual type. (NUI only)
452 [EditorBrowsable(EditorBrowsableState.Never)]
453 Invalid = Border - 1,
457 /// This specifies visual properties.
459 /// <since_tizen> 3 </since_tizen>
460 [System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1716: Identifiers should not match keywords")]
461 public struct Property
466 /// <since_tizen> 3 </since_tizen>
467 public static readonly int Type = NDalic.VisualPropertyType;
471 /// <since_tizen> 3 </since_tizen>
472 public static readonly int Shader = NDalic.VisualPropertyShader;
476 /// <since_tizen> 3 </since_tizen>
477 public static readonly int Transform = NDalic.VisualPropertyTransform;
479 /// PremultipliedAlpha.
481 /// <since_tizen> 3 </since_tizen>
482 public static readonly int PremultipliedAlpha = NDalic.VisualPropertyPremultipliedAlpha;
486 /// <since_tizen> 3 </since_tizen>
487 public static readonly int MixColor = NDalic.VisualPropertyMixColor;
491 /// <since_tizen> 3 </since_tizen>
492 public static readonly int Opacity = NDalic.VisualPropertyMixColor + 1;
494 /// The fitting mode of the visual.
496 /// <since_tizen> 5 </since_tizen>
497 public static readonly int VisualFittingMode = NDalic.VisualPropertyMixColor + 2;
499 /// The corner radius of the visual.
501 [EditorBrowsable(EditorBrowsableState.Never)]
502 public static readonly int CornerRadius = NDalic.VisualPropertyMixColor + 3;
504 /// The corner radius policy of the visual.
505 /// Whether the corner radius value is relative (percentage [0.0f to 1.0f] of the visual size) or absolute (in world units).
507 [EditorBrowsable(EditorBrowsableState.Never)]
508 public static readonly int CornerRadiusPolicy = NDalic.VisualPropertyMixColor + 4;
510 /// The borderline width of the visual.
512 [EditorBrowsable(EditorBrowsableState.Never)]
513 public static readonly int BorderlineWidth = NDalic.VisualPropertyMixColor + 5;
515 /// The borderline color of the visual.
517 [EditorBrowsable(EditorBrowsableState.Never)]
518 public static readonly int BorderlineColor = NDalic.VisualPropertyMixColor + 6;
520 /// The borderline offset of the visual.
521 /// Relative position of borderline. (percentage [-1.0f to 1.0f]).
522 /// If -1.0f, borderline draw inside of visual
523 /// If 1.0f, borderline draw outside of visual
524 /// If 0.0f, half draw inside and half draw outside of visual
526 [EditorBrowsable(EditorBrowsableState.Never)]
527 public static readonly int BorderlineOffset = NDalic.VisualPropertyMixColor + 7;
531 /// This specifies shader properties.
533 /// <since_tizen> 3 </since_tizen>
534 public struct ShaderProperty
537 /// Vertex shader code
539 /// <since_tizen> 3 </since_tizen>
540 public static readonly int VertexShader = NDalic.VisualShaderVertex;
542 /// Fragment shader code
544 /// <since_tizen> 3 </since_tizen>
545 public static readonly int FragmentShader = NDalic.VisualShaderFragment;
547 /// How to subdivide the grid along X
549 /// <since_tizen> 3 </since_tizen>
550 public static readonly int ShaderSubdivideGridX = NDalic.VisualShaderSubdivideGridX;
552 /// How to subdivide the grid along Y
554 /// <since_tizen> 3 </since_tizen>
555 public static readonly int ShaderSubdivideGridY = NDalic.VisualShaderSubdivideGridY;
559 /// <since_tizen> 3 </since_tizen>
560 public static readonly int ShaderHints = NDalic.VisualShaderHints;
564 /// This specifies visual align types.
566 /// <since_tizen> 3 </since_tizen>
567 public enum AlignType
572 /// <since_tizen> 3 </since_tizen>
577 /// <since_tizen> 3 </since_tizen>
582 /// <since_tizen> 3 </since_tizen>
587 /// <since_tizen> 3 </since_tizen>
592 /// <since_tizen> 3 </since_tizen>
597 /// <since_tizen> 3 </since_tizen>
602 /// <since_tizen> 3 </since_tizen>
607 /// <since_tizen> 3 </since_tizen>
612 /// <since_tizen> 3 </since_tizen>
618 /// This specifies properties of the BorderVisual.
620 /// <since_tizen> 3 </since_tizen>
621 public struct BorderVisualProperty
624 /// The color of the border.
626 /// <since_tizen> 3 </since_tizen>
627 public static readonly int Color = NDalic.BorderVisualColor;
629 /// The width of the border (in pixels).
631 /// <since_tizen> 3 </since_tizen>
632 public static readonly int Size = NDalic.BorderVisualSize;
634 /// Whether anti-aliasing of the border is required.
636 /// <since_tizen> 3 </since_tizen>
637 public static readonly int AntiAliasing = NDalic.BorderVisualAntiAliasing;
641 /// This specifies properties of the ColorVisual.
643 /// <since_tizen> 3 </since_tizen>
644 public struct ColorVisualProperty
647 /// The solid color required.
649 /// <since_tizen> 3 </since_tizen>
650 public static readonly int MixColor = NDalic.ColorVisualMixColor;
652 /// Whether to render if the MixColor is transparent.
654 /// <since_tizen> 5 </since_tizen>
655 public static readonly int RenderIfTransparent = NDalic.ColorVisualMixColor + 1;
657 /// Then radius value for the area to blur.
659 [EditorBrowsable(EditorBrowsableState.Never)]
660 public static readonly int BlurRadius = NDalic.ColorVisualMixColor + 2;
664 /// This specifies properties of the GradientVisual.
666 /// <since_tizen> 3 </since_tizen>
667 public struct GradientVisualProperty
670 /// The start position of a linear gradient.
672 /// <since_tizen> 3 </since_tizen>
673 public static readonly int StartPosition = NDalic.GradientVisualStartPosition;
675 /// The end position of a linear gradient.
677 /// <since_tizen> 3 </since_tizen>
678 public static readonly int EndPosition = NDalic.GradientVisualEndPosition;
680 /// The center point of a radial gradient.
682 /// <since_tizen> 3 </since_tizen>
683 public static readonly int Center = NDalic.GradientVisualCenter;
685 /// The size of the radius of a radial gradient.
687 /// <since_tizen> 3 </since_tizen>
688 public static readonly int Radius = NDalic.GradientVisualRadius;
690 /// All the stop offsets.
692 /// <since_tizen> 3 </since_tizen>
693 public static readonly int StopOffset = NDalic.GradientVisualStopOffset;
695 /// The color at the stop offsets.
697 /// <since_tizen> 3 </since_tizen>
698 public static readonly int StopColor = NDalic.GradientVisualStopColor;
700 /// Defines the coordinate system for certain attributes of the points in a gradient.
702 /// <since_tizen> 3 </since_tizen>
703 public static readonly int Units = NDalic.GradientVisualUnits;
705 /// Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle.
707 /// <since_tizen> 3 </since_tizen>
708 public static readonly int SpreadMethod = NDalic.GradientVisualSpreadMethod;
712 /// This specifies properties of the ImageVisual.
714 /// <since_tizen> 3 </since_tizen>
715 public struct ImageVisualProperty
718 /// The URL of the image.
720 /// <since_tizen> 3 </since_tizen>
721 public static readonly int URL = NDalic.ImageVisualUrl;
724 /// Fitting options, used when resizing images to fit desired dimensions.
726 /// <since_tizen> 3 </since_tizen>
727 public static readonly int FittingMode = NDalic.ImageVisualFittingMode;
730 /// Filtering options, used when resizing images to sample original pixels.
732 /// <since_tizen> 3 </since_tizen>
733 public static readonly int SamplingMode = NDalic.ImageVisualSamplingMode;
736 /// The desired image width.
738 /// <since_tizen> 3 </since_tizen>
739 public static readonly int DesiredWidth = NDalic.ImageVisualDesiredWidth;
742 /// The desired image height.
744 /// <since_tizen> 3 </since_tizen>
745 public static readonly int DesiredHeight = NDalic.ImageVisualDesiredHeight;
748 /// Whether to load the image synchronously.
750 /// <since_tizen> 3 </since_tizen>
751 public static readonly int SynchronousLoading = NDalic.ImageVisualSynchronousLoading;
754 /// If true, only draws the borders.
756 /// <since_tizen> 3 </since_tizen>
757 public static readonly int BorderOnly = NDalic.ImageVisualBorderOnly;
760 /// The image area to be displayed.
762 /// <since_tizen> 3 </since_tizen>
763 public static readonly int PixelArea = NDalic.ImageVisualPixelArea;
766 /// The wrap mode for u coordinate.
768 /// <since_tizen> 3 </since_tizen>
769 public static readonly int WrapModeU = NDalic.ImageVisualWrapModeU;
772 /// The wrap mode for v coordinate.
774 /// <since_tizen> 3 </since_tizen>
775 public static readonly int WrapModeV = NDalic.ImageVisualWrapModeV;
778 /// The border of the image.
780 /// <since_tizen> 3 </since_tizen>
781 public static readonly int Border = NDalic.ImageVisualBorder;
784 /// Whether to use the texture atlas.
786 /// <since_tizen> 5 </since_tizen>
787 public static readonly int Atlasing = NDalic.ImageVisualBorder + 1;
790 /// The URL of the alpha mask image.
792 /// <since_tizen> 3 </since_tizen>
793 public static readonly int AlphaMaskURL = NDalic.ImageVisualAlphaMaskUrl;
796 /// Defines the batch size for pre-loading images in the AnimatedImageVisual
798 /// <since_tizen> 4 </since_tizen>
799 public static readonly int BatchSize = NDalic.ImageVisualBatchSize;
802 /// Defines the cache size for loading images in the AnimatedImageVisual
804 /// <since_tizen> 4 </since_tizen>
805 public static readonly int CacheSize = NDalic.ImageVisualCacheSize;
808 /// The number of milliseconds between each frame in the AnimatedImageVisual
810 /// <since_tizen> 4 </since_tizen>
811 public static readonly int FrameDelay = NDalic.ImageVisualFrameDelay;
814 /// The scale factor to apply to the content image before masking.
816 /// <since_tizen> 4 </since_tizen>
817 public static readonly int MaskContentScale = NDalic.ImageVisualMaskContentScale;
820 /// Whether to crop image to mask or scale mask to fit image
822 /// <since_tizen> 4 </since_tizen>
823 public static readonly int CropToMask = NDalic.ImageVisualCropToMask;
826 /// The policy to determine when an image should be loaded.
828 /// <since_tizen> 5 </since_tizen>
829 public static readonly int LoadPolicy = NDalic.ImageVisualLoadPolicy;
832 /// The policy to determine when an image should no longer be cached.
834 /// <since_tizen> 5 </since_tizen>
835 public static readonly int ReleasePolicy = NDalic.ImageVisualReleasePolicy;
838 /// Determines if image orientation should be corrected so that the image displays as it was intended.
840 /// <since_tizen> 5 </since_tizen>
841 public static readonly int OrientationCorrection = NDalic.ImageVisualOrientationCorrection;
844 /// Overlays the auxiliary image on top of an NPatch image.
846 /// <since_tizen> 5 </since_tizen>
847 public static readonly int AuxiliaryImageURL = NDalic.ImageVisualAuxiliaryImageUrl;
850 /// Alpha value for the auxiliary image, without affecting the underlying NPatch image
852 /// <since_tizen> 5 </since_tizen>
853 public static readonly int AuxiliaryImageAlpha = NDalic.ImageVisualAuxiliaryImageAlpha;
856 /// The number of times the AnimatedImageVisual will be looped.
857 /// The default is -1. If the value is less than 0, loop unlimited. Otherwise, loop loopCount times.
859 /// <since_tizen> 5 </since_tizen>
860 public static readonly int LoopCount = NDalic.ImageVisualLoopCount;
863 /// @brief The playing range the AnimatedVectorImageVisual will use.
864 /// Animation will play between the values specified.The array can only have two values, and more will be ignored.
865 /// Both values should be between 0 and the total frame number, otherwise they will be ignored.
866 /// If the range provided is not in proper order (minimum, maximum), it will be reordered.
867 /// @details Name "playRange", Type Property::ARRAY of Property::INTEGER
868 /// @note Default 0 and the total frame number.
871 /// Hidden API (Inhouse API)
873 [EditorBrowsable(EditorBrowsableState.Never)]
874 public static readonly int PlayRange = NDalic.ImageVisualOrientationCorrection + 4;
877 /// @brief The playing state the AnimatedVectorImageVisual will use.
878 /// @details Name "playState", type PlayState (Property::INTEGER)
879 /// @note This property is read-only.
882 /// Hidden API (Inhouse API)
884 [EditorBrowsable(EditorBrowsableState.Never)]
885 public static readonly int PlayState = NDalic.ImageVisualOrientationCorrection + 5;
888 /// @brief The current frame number the AnimatedVectorImageVisual will use.
889 /// @details Name "currentFrameNumber", Type Property::INTEGER, between[0, the maximum frame number] or between the play range if specified
890 /// @note This property is read-only.
895 [EditorBrowsable(EditorBrowsableState.Never)]
896 public static readonly int CurrentFrameNumber = NDalic.ImageVisualOrientationCorrection + 6;
899 /// @brief The total frame number the AnimatedVectorImageVisual will use.
900 /// @details Name "totalFrameNumber", Type Property::INTEGER.
901 /// @note This property is read-only.
906 [EditorBrowsable(EditorBrowsableState.Never)]
907 public static readonly int TotalFrameNumber = NDalic.ImageVisualOrientationCorrection + 7;
910 /// @brief The stop behavior the AnimatedVectorImageVisual will use.
911 /// @details Name "stopBehavior", Type StopBehavior::Type (Property::INTEGER)
912 /// @note Default value is StopBehavior::CURRENT_FRAME.
917 [EditorBrowsable(EditorBrowsableState.Never)]
918 public static readonly int StopBehavior = NDalic.ImageVisualOrientationCorrection + 8;
921 /// @brief The looping mode the AnimatedVectorImageVisual will use.
922 /// @details Name "loopingMode", Type LoopingMode::Type (Property::INTEGER)
923 /// @note Default value is LoopingMode::RESTART.
928 [EditorBrowsable(EditorBrowsableState.Never)]
929 public static readonly int LoopingMode = NDalic.ImageVisualOrientationCorrection + 9;
932 /// @brief The content information the AnimatedVectorImageVisual will use.
933 /// @details Name "contentInfo", Type Property::MAP.
934 /// The map contains the layer name as a key and Property::Array as a value.
935 /// And the array contains 2 integer values which are the frame numbers, the start frame number and the end frame number of the layer.
936 /// @note This property is read-only.
941 [EditorBrowsable(EditorBrowsableState.Never)]
942 public static readonly int ContentInfo = NDalic.ImageVisualOrientationCorrection + 10;
945 /// @brief Whether to redraw the image when the visual is scaled down.
946 /// @details Name "redrawInScalingDown", type Property::BOOLEAN.
947 /// @note It is used in the AnimatedVectorImageVisual.The default is true.
952 [EditorBrowsable(EditorBrowsableState.Never)]
953 public static readonly int RedrawInScalingDown = NDalic.ImageVisualOrientationCorrection + 11;
956 /// @brief Whether to apply mask on the GPU or not.
957 /// @details Name "MaskingMode", type MaskingModeType (Property::INTEGER).
958 /// @note It is used in the ImageVisual, and AnimatedImageVisual.The default is MaskingOnLoading.
960 [EditorBrowsable(EditorBrowsableState.Never)]
961 public static readonly int MaskingMode = NDalic.ImageVisualOrientationCorrection + 12;
965 /// This specifies properties of the MeshVisual.
967 /// <since_tizen> 3 </since_tizen>
968 public struct MeshVisualProperty
971 /// The location of the ".obj" file.
973 /// <since_tizen> 3 </since_tizen>
974 public static readonly int ObjectURL = NDalic.MeshVisualObjectUrl;
976 /// The location of the ".mtl" file.
978 [EditorBrowsable(EditorBrowsableState.Never)]
979 public static readonly int MaterialURL = NDalic.MeshVisualMaterialUrl;
981 /// The location of the ".mtl" file.
983 /// <since_tizen> 3 </since_tizen>
984 public static readonly int MaterialtURL = NDalic.MeshVisualMaterialUrl;
986 /// Path to the directory the textures (including gloss and normal) are stored in.
988 /// <since_tizen> 3 </since_tizen>
989 public static readonly int TexturesPath = NDalic.MeshVisualTexturesPath;
991 /// Sets the type of shading mode that the mesh will use.
993 /// <since_tizen> 3 </since_tizen>
994 public static readonly int ShadingMode = NDalic.MeshVisualShadingMode;
996 /// Whether to use mipmaps for textures or not.
998 /// <since_tizen> 3 </since_tizen>
999 public static readonly int UseMipmapping = NDalic.MeshVisualUseMipmapping;
1001 /// Whether to average normals at each point to smooth textures or not.
1003 /// <since_tizen> 3 </since_tizen>
1004 public static readonly int UseSoftNormals = NDalic.MeshVisualUseSoftNormals;
1006 /// The position, in stage space, of the point light that applies lighting to the model.
1008 /// <since_tizen> 3 </since_tizen>
1009 public static readonly int LightPosition = NDalic.MeshVisualLightPosition;
1013 /// This specifies properties of the PrimitiveVisual.
1015 /// <since_tizen> 3 </since_tizen>
1016 public struct PrimitiveVisualProperty
1019 /// The specific shape to render.
1021 /// <since_tizen> 3 </since_tizen>
1022 public static readonly int Shape = NDalic.PrimitiveVisualShape;
1024 /// The color of the shape.
1026 /// <since_tizen> 3 </since_tizen>
1027 public static readonly int MixColor = NDalic.PrimitiveVisualMixColor;
1029 /// The number of slices as you go around the shape.
1031 /// <since_tizen> 3 </since_tizen>
1032 public static readonly int Slices = NDalic.PrimitiveVisualSlices;
1034 /// The number of stacks as you go down the shape.
1036 /// <since_tizen> 3 </since_tizen>
1037 public static readonly int Stacks = NDalic.PrimitiveVisualStacks;
1039 /// The scale of the radius of the top circle of a conical frustum.
1041 /// <since_tizen> 3 </since_tizen>
1042 public static readonly int ScaleTopRadius = NDalic.PrimitiveVisualScaleTopRadius;
1044 /// The scale of the radius of the bottom circle of a conical frustum.
1046 /// <since_tizen> 3 </since_tizen>
1047 public static readonly int ScaleBottomRadius = NDalic.PrimitiveVisualScaleBottomRadius;
1049 /// The scale of the height of a conic.
1051 /// <since_tizen> 3 </since_tizen>
1052 public static readonly int ScaleHeight = NDalic.PrimitiveVisualScaleHeight;
1054 /// The scale of the radius of a cylinder.
1056 /// <since_tizen> 3 </since_tizen>
1057 public static readonly int ScaleRadius = NDalic.PrimitiveVisualScaleRadius;
1059 /// The dimensions of a cuboid. Scales in the same fashion as a 9-patch image.
1061 /// <since_tizen> 3 </since_tizen>
1062 public static readonly int ScaleDimensions = NDalic.PrimitiveVisualScaleDimensions;
1064 /// Determines how bevelled the cuboid should be, based off the smallest dimension.
1066 /// <since_tizen> 3 </since_tizen>
1067 public static readonly int BevelPercentage = NDalic.PrimitiveVisualBevelPercentage;
1069 /// Defines how smooth the bevelled edges should be.
1071 /// <since_tizen> 3 </since_tizen>
1072 public static readonly int BevelSmoothness = NDalic.PrimitiveVisualBevelSmoothness;
1074 /// The position, in stage space, of the point light that applies lighting to the model.
1076 /// <since_tizen> 3 </since_tizen>
1077 public static readonly int LightPosition = NDalic.PrimitiveVisualLightPosition;
1081 /// This specifies properties of the TextVisual.
1083 /// <since_tizen> 3 </since_tizen>
1084 public struct TextVisualProperty
1087 /// The text to display in UTF-8 format.
1089 /// <since_tizen> 3 </since_tizen>
1090 public static readonly int Text = NDalic.TextVisualText;
1092 /// The requested font family to use.
1094 /// <since_tizen> 3 </since_tizen>
1095 public static readonly int FontFamily = NDalic.TextVisualFontFamily;
1097 /// The requested font style to use.
1099 /// <since_tizen> 3 </since_tizen>
1100 public static readonly int FontStyle = NDalic.TextVisualFontStyle;
1102 /// The size of font in points.
1104 /// <since_tizen> 3 </since_tizen>
1105 public static readonly int PointSize = NDalic.TextVisualPointSize;
1107 /// The single-line or multi-line layout option.
1109 /// <since_tizen> 3 </since_tizen>
1110 public static readonly int MultiLine = NDalic.TextVisualMultiLine;
1112 /// The line horizontal alignment.
1114 /// <since_tizen> 3 </since_tizen>
1115 public static readonly int HorizontalAlignment = NDalic.TextVisualHorizontalAlignment;
1117 /// The line vertical alignment.
1119 /// <since_tizen> 3 </since_tizen>
1120 public static readonly int VerticalAlignment = NDalic.TextVisualVerticalAlignment;
1122 /// The color of the text.
1124 /// <since_tizen> 3 </since_tizen>
1125 public static readonly int TextColor = NDalic.TextVisualTextColor;
1127 /// Whether the mark-up processing is enabled.
1129 /// <since_tizen> 3 </since_tizen>
1130 public static readonly int EnableMarkup = NDalic.TextVisualEnableMarkup;
1132 /// The shadow parameters.
1134 /// <since_tizen> 5 </since_tizen>
1135 public static readonly int Shadow = NDalic.TextVisualEnableMarkup + 1;
1137 /// The default underline parameters.
1139 /// <since_tizen> 5 </since_tizen>
1140 public static readonly int Underline = NDalic.TextVisualEnableMarkup + 2;
1142 /// The default outline parameters.
1144 /// <since_tizen> 5 </since_tizen>
1145 public static readonly int Outline = NDalic.TextVisualEnableMarkup + 3;
1147 /// The default text background parameters.
1149 /// <since_tizen> 5 </since_tizen>
1150 public static readonly int Background = NDalic.TextVisualEnableMarkup + 4;
1154 /// This specifies properties of the NpatchImageVisual.
1156 /// <since_tizen> 3 </since_tizen>
1157 public struct NpatchImageVisualProperty
1160 /// The URL of the image.
1162 /// <since_tizen> 3 </since_tizen>
1163 public static readonly int URL = NDalic.ImageVisualUrl;
1165 /// Fitting options, used when resizing images to fit desired dimensions.
1167 /// <since_tizen> 3 </since_tizen>
1168 public static readonly int FittingMode = NDalic.ImageVisualFittingMode;
1170 /// Filtering options, used when resizing images to sample original pixels.
1172 /// <since_tizen> 3 </since_tizen>
1173 public static readonly int SamplingMode = NDalic.ImageVisualSamplingMode;
1175 /// The desired image width.
1177 /// <since_tizen> 3 </since_tizen>
1178 public static readonly int DesiredWidth = NDalic.ImageVisualDesiredWidth;
1180 /// The desired image height.
1182 /// <since_tizen> 3 </since_tizen>
1183 public static readonly int DesiredHeight = NDalic.ImageVisualDesiredHeight;
1185 /// Whether to load the image synchronously.
1187 /// <since_tizen> 3 </since_tizen>
1188 public static readonly int SynchronousLoading = NDalic.ImageVisualSynchronousLoading;
1190 /// If true, only draws the borders.
1192 /// <since_tizen> 3 </since_tizen>
1193 public static readonly int BorderOnly = NDalic.ImageVisualBorderOnly;
1195 /// The image area to be displayed.
1197 /// <since_tizen> 3 </since_tizen>
1198 public static readonly int PixelArea = NDalic.ImageVisualPixelArea;
1200 /// The wrap mode for u coordinate.
1202 /// <since_tizen> 3 </since_tizen>
1203 public static readonly int WrapModeU = NDalic.ImageVisualWrapModeU;
1205 /// The wrap mode for v coordinate.
1207 /// <since_tizen> 3 </since_tizen>
1208 public static readonly int WrapModeV = NDalic.ImageVisualWrapModeV;
1210 /// The border of the image.
1212 /// <since_tizen> 3 </since_tizen>
1213 public static readonly int Border = NDalic.ImageVisualWrapModeV + 1;
1217 /// This specifies properties of the ArcVisual.
1219 internal struct ArcVisualProperty
1222 /// The thickness of the arc.
1224 /// <remarks>The value is float type.</remarks>
1225 /// <remarks>This is mandatory property.</remarks>
1226 internal static readonly int Thickness = NDalic.ImageVisualUrl;
1229 /// The start angle where the arc begins in degrees.
1231 /// <remarks>The value is float type.</remarks>
1232 /// <remarks>The property of optional. The default value is 0.</remarks>
1233 internal static readonly int StartAngle = Thickness + 1;
1236 /// The sweep angle of the arc in degrees.
1238 /// <remarks>The value is float type.</remarks>
1239 /// <remarks>The property of optional. The default value is 360.</remarks>
1240 internal static readonly int SweepAngle = Thickness + 2;
1243 /// The cap style of the arc.
1246 /// The value is integer type.
1247 /// The value 0 means butt, the arc does not extend beyond its two endpoints.
1248 /// The value 1 means round, the arc will be extended by a half circle with the center at the end.
1250 /// <remarks>The property of optional. The default value is 0 (butt).</remarks>
1251 internal static readonly int Cap = Thickness + 3;
1255 /// Enumeration for Circular alignment.
1256 /// The @p horizontalAlignment and @p verticalAlignment can be used to align the text within the text area.
1258 [EditorBrowsable(EditorBrowsableState.Never)]
1259 public enum CircularAlignment
1262 /// Texts place at the begin of Circular direction.
1264 [Description("BEGIN")]
1267 /// Texts place at the center of Circular direction.
1269 [Description("CENTER")]
1272 /// Texts place at the end of Circular direction.
1274 [Description("END")]
1279 /// Enumeration for Text Layout.
1281 [EditorBrowsable(EditorBrowsableState.Never)]
1282 public enum TextLayout
1287 [Description("singleLine")]
1292 [Description("multiLine")]
1297 [Description("circular")]
1302 /// Defines how a color is blended.
1304 /// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
1305 [EditorBrowsable(EditorBrowsableState.Never)]
1306 public enum ColorBlendingMode
1313 /// The color is multiplied by another one.