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 text horizontal aligning.
60 /// <since_tizen> 3 </since_tizen>
61 public enum HorizontalAlignment
64 /// Texts place at the begin of horizontal direction.
66 [Description("BEGIN")]
69 /// Texts place at the center of horizontal direction.
71 [Description("CENTER")]
74 /// Texts place at the end of horizontal direction.
81 /// Enumeration for the text horizontal aligning.
83 /// <since_tizen> 3 </since_tizen>
84 public enum VerticalAlignment
87 /// Texts place at the top of vertical direction.
92 /// Texts place at the center of vertical direction.
94 [Description("CENTER")]
97 /// Texts place at the bottom of 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.
155 /// This specifies sampling mode types. Filtering options are used when resizing images to sample original pixels.<br />
156 /// A SamplingMode controls how pixels in an input image are sampled and combined to generate each pixel of a destination image during scaling.<br />
157 /// 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 />
158 /// but all other filter modes do if the desired dimensions are not more than the raw dimensions of the input image file.<br />
160 /// <since_tizen> 3 </since_tizen>
161 public enum SamplingModeType
164 /// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size. <br />
165 /// This is the default.
169 /// For each output pixel, read one input pixel.
173 /// For each output pixel, read a quad of four input pixels and write a weighted average of them.
177 /// Iteratively box filter to generate an image of 1/2, 1/4, 1/8, etc. width and height and approximately the desired size, <br />
178 /// then for each output pixel, read one pixel from the last level of box filtering.<br />
182 /// 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.
186 /// 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.
190 /// For caching algorithms where a client strongly prefers a cache-hit to reuse a cached image.
196 /// The type of coordinate system for certain attributes of the points in a gradient.
198 /// <since_tizen> 3 </since_tizen>
199 public enum GradientVisualUnitsType
202 /// 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).
206 /// 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).
212 /// This specifies SpreadMethod types.<br />
213 /// SpreadMethod defines what happens if the gradient starts or ends inside the bounds of the target rectangle.<br />
215 /// <since_tizen> 3 </since_tizen>
216 public enum GradientVisualSpreadMethodType
219 /// Uses the terminal colors of the gradient to fill the remainder of the quad.
223 /// Reflects the gradient pattern start-to-end, end-to-start, start-to-end, etc. until the quad is filled.
227 /// Repeats the gradient pattern start-to-end, start-to-end, start-to-end, etc. until the quad is filled.
233 /// The shading mode used by the mesh visual.
235 /// <since_tizen> 3 </since_tizen>
236 public enum MeshVisualShadingModeValue
239 /// *Simplest*. One color that is lit by ambient and diffuse lighting.
241 TexturelessWithDiffuseLighting,
243 /// Uses only the visual image textures provided with specular lighting in addition to ambient and diffuse lighting.
245 TexturedWithSpecularLighting,
247 /// Uses all textures provided including gloss, normal, and texture map along with specular, ambient, and diffuse lighting.
249 TexturedWithDetailedSpecularLighting
253 /// The primitive shape to render as a primitive visual.
255 /// <since_tizen> 3 </since_tizen>
256 public enum PrimitiveVisualShapeType
259 /// A perfectly round geometrical object in the three-dimensional space.
263 /// The area bound between two circles, i.e., a cone with the tip removed.
267 /// Equivalent to a conical frustrum with the top radius of zero.
268 /// </summary>Equivalent to a conical frustrum with the top radius of zero.
271 /// Equivalent to a conical frustrum with the top radius of zero.
275 /// Equivalent to a conical frustrum with equal radii for the top and bottom circles.
279 /// Equivalent to a bevelled cube with a bevel percentage of zero.
283 /// Equivalent to a bevelled cube with a bevel percentage of one.
289 /// The values of this enum determine how the visual should fit into the view.
291 /// <since_tizen> 5 </since_tizen>
292 public enum VisualFittingModeType
295 /// The visual should be scaled to fit, preserving aspect ratio.
299 /// The visual should be stretched to fill, not preserving aspect ratio.
305 /// This specifies policy types that could be used by the transform for the offset or size.
307 /// <since_tizen> 3 </since_tizen>
308 public enum VisualTransformPolicyType
311 /// Relative to the control (percentage [0.0f to 1.0f] of the control).
315 /// Absolute value in world units.
321 /// This specifies all the transform property types.
323 /// <since_tizen> 3 </since_tizen>
324 public enum VisualTransformPropertyType
327 /// Offset of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
331 /// Size of the visual, which can be either relative (percentage [0.0f to 1.0f] of the parent) or absolute (in world units).
335 /// The origin of the visual within its control area.
339 /// The anchor-point of the visual.
343 /// Whether the x or y offset values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
347 /// Whether the width or the height size values are relative (percentage [0.0f to 1.0f] of the control) or absolute (in world units).
353 /// This specifies visual types.
355 /// <since_tizen> 3 </since_tizen>
359 /// The index for the visual type.
361 /// <since_tizen> 3 </since_tizen>
365 /// Renders a solid color as an internal border to the control's quad.
369 /// Renders a solid color to the control's quad.
373 /// Renders a smooth transition of colors to the control's quad.
377 /// Renders an image into the control's quad.
381 /// Renders a mesh using an "obj" file, optionally with textures provided by an "mtl" file.
385 /// Renders a simple 3D shape, such as a cube or a sphere.
389 /// Renders a simple wire-frame outlining a quad.
397 /// Renders an NPatch image.
401 /// Renders an SVG image.
405 /// Renders a animated image (animated GIF).
411 /// This specifies visual properties.
413 /// <since_tizen> 3 </since_tizen>
414 public struct Property
419 /// <since_tizen> 3 </since_tizen>
420 public static readonly int Type = NDalic.VISUAL_PROPERTY_TYPE;
424 /// <since_tizen> 3 </since_tizen>
425 public static readonly int Shader = NDalic.VISUAL_PROPERTY_SHADER;
429 /// <since_tizen> 3 </since_tizen>
430 public static readonly int Transform = NDalic.VISUAL_PROPERTY_TRANSFORM;
432 /// PremultipliedAlpha.
434 /// <since_tizen> 3 </since_tizen>
435 public static readonly int PremultipliedAlpha = NDalic.VISUAL_PROPERTY_PREMULTIPLIED_ALPHA;
439 /// <since_tizen> 3 </since_tizen>
440 public static readonly int MixColor = NDalic.VISUAL_PROPERTY_MIX_COLOR;
444 /// <since_tizen> 3 </since_tizen>
445 public static readonly int Opacity = NDalic.VISUAL_PROPERTY_MIX_COLOR + 1;
447 /// The fitting mode of the visual.
449 /// <since_tizen> 5 </since_tizen>
450 public static readonly int VisualFittingMode = NDalic.VISUAL_PROPERTY_MIX_COLOR + 2;
454 /// This specifies shader properties.
456 /// <since_tizen> 3 </since_tizen>
457 public struct ShaderProperty
460 /// Vertex shader code
462 /// <since_tizen> 3 </since_tizen>
463 public static readonly int VertexShader = NDalic.VISUAL_SHADER_VERTEX;
465 /// Fragment shader code
467 /// <since_tizen> 3 </since_tizen>
468 public static readonly int FragmentShader = NDalic.VISUAL_SHADER_FRAGMENT;
470 /// How to subdivide the grid along X
472 /// <since_tizen> 3 </since_tizen>
473 public static readonly int ShaderSubdivideGridX = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_X;
475 /// How to subdivide the grid along Y
477 /// <since_tizen> 3 </since_tizen>
478 public static readonly int ShaderSubdivideGridY = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_Y;
482 /// <since_tizen> 3 </since_tizen>
483 public static readonly int ShaderHints = NDalic.VISUAL_SHADER_HINTS;
487 /// This specifies visaul align types.
489 /// <since_tizen> 3 </since_tizen>
490 public enum AlignType
495 /// <since_tizen> 3 </since_tizen>
500 /// <since_tizen> 3 </since_tizen>
505 /// <since_tizen> 3 </since_tizen>
510 /// <since_tizen> 3 </since_tizen>
515 /// <since_tizen> 3 </since_tizen>
520 /// <since_tizen> 3 </since_tizen>
525 /// <since_tizen> 3 </since_tizen>
530 /// <since_tizen> 3 </since_tizen>
535 /// <since_tizen> 3 </since_tizen>
541 /// This specifies properties of the BorderVisual.
543 /// <since_tizen> 3 </since_tizen>
544 public struct BorderVisualProperty
547 /// The color of the border.
549 /// <since_tizen> 3 </since_tizen>
550 public static readonly int Color = NDalic.BORDER_VISUAL_COLOR;
552 /// The width of the border (in pixels).
554 /// <since_tizen> 3 </since_tizen>
555 public static readonly int Size = NDalic.BORDER_VISUAL_SIZE;
557 /// Whether anti-aliasing of the border is required.
559 /// <since_tizen> 3 </since_tizen>
560 public static readonly int AntiAliasing = NDalic.BORDER_VISUAL_ANTI_ALIASING;
564 /// This specifies properties of the ColorVisual.
566 /// <since_tizen> 3 </since_tizen>
567 public struct ColorVisualProperty
570 /// The solid color required.
572 /// <since_tizen> 3 </since_tizen>
573 public static readonly int MixColor = NDalic.COLOR_VISUAL_MIX_COLOR;
575 /// Whether to render if the MixColor is transparent.
577 /// <since_tizen> 5 </since_tizen>
578 public static readonly int RenderIfTransparent = NDalic.COLOR_VISUAL_MIX_COLOR + 1;
582 /// This specifies properties of the GradientVisual.
584 /// <since_tizen> 3 </since_tizen>
585 public struct GradientVisualProperty
588 /// The start position of a linear gradient.
590 /// <since_tizen> 3 </since_tizen>
591 public static readonly int StartPosition = NDalic.GRADIENT_VISUAL_START_POSITION;
593 /// The end position of a linear gradient.
595 /// <since_tizen> 3 </since_tizen>
596 public static readonly int EndPosition = NDalic.GRADIENT_VISUAL_END_POSITION;
598 /// The center point of a radial gradient.
600 /// <since_tizen> 3 </since_tizen>
601 public static readonly int Center = NDalic.GRADIENT_VISUAL_CENTER;
603 /// The size of the radius of a radial gradient.
605 /// <since_tizen> 3 </since_tizen>
606 public static readonly int Radius = NDalic.GRADIENT_VISUAL_RADIUS;
608 /// All the stop offsets.
610 /// <since_tizen> 3 </since_tizen>
611 public static readonly int StopOffset = NDalic.GRADIENT_VISUAL_STOP_OFFSET;
613 /// The color at the stop offsets.
615 /// <since_tizen> 3 </since_tizen>
616 public static readonly int StopColor = NDalic.GRADIENT_VISUAL_STOP_COLOR;
618 /// Defines the coordinate system for certain attributes of the points in a gradient.
620 /// <since_tizen> 3 </since_tizen>
621 public static readonly int Units = NDalic.GRADIENT_VISUAL_UNITS;
623 /// Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle.
625 /// <since_tizen> 3 </since_tizen>
626 public static readonly int SpreadMethod = NDalic.GRADIENT_VISUAL_SPREAD_METHOD;
630 /// This specifies properties of the ImageVisual.
632 /// <since_tizen> 3 </since_tizen>
633 public struct ImageVisualProperty
636 /// The URL of the image.
638 /// <since_tizen> 3 </since_tizen>
639 public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
642 /// Fitting options, used when resizing images to fit desired dimensions.
644 /// <since_tizen> 3 </since_tizen>
645 public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
648 /// Filtering options, used when resizing images to sample original pixels.
650 /// <since_tizen> 3 </since_tizen>
651 public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
654 /// The desired image width.
656 /// <since_tizen> 3 </since_tizen>
657 public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
660 /// The desired image height.
662 /// <since_tizen> 3 </since_tizen>
663 public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
666 /// Whether to load the image synchronously.
668 /// <since_tizen> 3 </since_tizen>
669 public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
672 /// If true, only draws the borders.
674 /// <since_tizen> 3 </since_tizen>
675 public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
678 /// The image area to be displayed.
680 /// <since_tizen> 3 </since_tizen>
681 public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
684 /// The wrap mode for u coordinate.
686 /// <since_tizen> 3 </since_tizen>
687 public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
690 /// The wrap mode for v coordinate.
692 /// <since_tizen> 3 </since_tizen>
693 public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
696 /// The border of the image.
698 /// <since_tizen> 3 </since_tizen>
699 public static readonly int Border = NDalic.IMAGE_VISUAL_BORDER;
702 /// Whether to use the texture atlas.
704 /// <since_tizen> 5 </since_tizen>
705 public static readonly int Atlasing = NDalic.IMAGE_VISUAL_BORDER + 1;
708 /// The URL of the alpha mask image.
710 /// <since_tizen> 3 </since_tizen>
711 public static readonly int AlphaMaskURL = NDalic.IMAGE_VISUAL_ALPHA_MASK_URL;
714 /// Defines the batch size for pre-loading images in the AnimatedImageVisual
716 /// <since_tizen> 4 </since_tizen>
717 public static readonly int BatchSize = NDalic.IMAGE_VISUAL_BATCH_SIZE;
720 /// Defines the cache size for loading images in the AnimatedImageVisual
722 /// <since_tizen> 4 </since_tizen>
723 public static readonly int CacheSize = NDalic.IMAGE_VISUAL_CACHE_SIZE;
726 /// The number of milliseconds between each frame in the AnimatedImageVisual
728 /// <since_tizen> 4 </since_tizen>
729 public static readonly int FrameDelay = NDalic.IMAGE_VISUAL_FRAME_DELAY;
732 /// The scale factor to apply to the content image before masking.
734 /// <since_tizen> 4 </since_tizen>
735 public static readonly int MaskContentScale = NDalic.IMAGE_VISUAL_MASK_CONTENT_SCALE;
738 /// Whether to crop image to mask or scale mask to fit image
740 /// <since_tizen> 4 </since_tizen>
741 public static readonly int CropToMask = NDalic.IMAGE_VISUAL_CROP_TO_MASK;
744 /// The policy to determine when an image should be loaded.
746 /// <since_tizen> 5 </since_tizen>
747 public static readonly int LoadPolicy = NDalic.IMAGE_VISUAL_LOAD_POLICY;
750 /// The policy to determine when an image should no longer be cached.
752 /// <since_tizen> 5 </since_tizen>
753 public static readonly int ReleasePolicy = NDalic.IMAGE_VISUAL_RELEASE_POLICY;
756 /// Determines if image orientation should be corrected so that the image displays as it was intended.
758 /// <since_tizen> 5 </since_tizen>
759 public static readonly int OrientationCorrection = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION;
762 /// Overlays the auxiliary image on top of an NPatch image.
764 /// <since_tizen> 5 </since_tizen>
765 public static readonly int AuxiliaryImageURL = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_URL;
768 /// Alpha value for the auxiliary image, without affecting the underlying NPatch image
770 /// <since_tizen> 5 </since_tizen>
771 public static readonly int AuxiliaryImageAlpha = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_ALPHA;
774 /// The number of times the AnimatedImageVisual will be looped.
775 /// The default is -1. If the value is less than 0, loop unlimited. Otherwise, loop loopCount times.
777 /// <since_tizen> 5 </since_tizen>
778 public static readonly int LoopCount = NDalic.IMAGE_VISUAL_LOOP_COUNT;
781 /// @brief The playing range the AnimatedVectorImageVisual will use.
782 /// Animation will play between the values specified.The array can only have two values, and more will be ignored.
783 /// Both values should be between 0 and the total frame number, otherwise they will be ignored.
784 /// If the range provided is not in proper order (minimum, maximum), it will be reordered.
785 /// @details Name "playRange", Type Property::ARRAY of Property::INTEGER
786 /// @note Default 0 and the total frame number.
789 /// Hidden API (Inhouse API)
791 [EditorBrowsable(EditorBrowsableState.Never)]
792 public static readonly int PlayRange = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 4;
795 /// @brief The playing state the AnimatedVectorImageVisual will use.
796 /// @details Name "playState", type PlayState (Property::INTEGER)
797 /// @note This property is read-only.
800 /// Hidden API (Inhouse API)
802 [EditorBrowsable(EditorBrowsableState.Never)]
803 public static readonly int PlayState = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 5;
806 /// @brief The current frame number the AnimatedVectorImageVisual will use.
807 /// @details Name "currentFrameNumber", Type Property::INTEGER, between[0, the maximum frame number] or between the play range if specified
808 /// @note This property is read-only.
813 [EditorBrowsable(EditorBrowsableState.Never)]
814 public static readonly int CurrentFrameNumber = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 6;
817 /// @brief The total frame number the AnimatedVectorImageVisual will use.
818 /// @details Name "totalFrameNumber", Type Property::INTEGER.
819 /// @note This property is read-only.
824 [EditorBrowsable(EditorBrowsableState.Never)]
825 public static readonly int TotalFrameNumber = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 7;
828 /// @brief The stop behavior the AnimatedVectorImageVisual will use.
829 /// @details Name "stopBehavior", Type StopBehavior::Type (Property::INTEGER)
830 /// @note Default value is StopBehavior::CURRENT_FRAME.
835 [EditorBrowsable(EditorBrowsableState.Never)]
836 public static readonly int StopBehavior = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 8;
839 /// @brief The looping mode the AnimatedVectorImageVisual will use.
840 /// @details Name "loopingMode", Type LoopingMode::Type (Property::INTEGER)
841 /// @note Default value is LoopingMode::RESTART.
846 [EditorBrowsable(EditorBrowsableState.Never)]
847 public static readonly int LoopingMode = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 9;
850 /// @brief The content information the AnimatedVectorImageVisual will use.
851 /// @details Name "contentInfo", Type Property::MAP.
852 /// The map contains the layer name as a key and Property::Array as a value.
853 /// And the array contains 2 integer values which are the frame numbers, the start frame number and the end frame number of the layer.
854 /// @note This property is read-only.
859 [EditorBrowsable(EditorBrowsableState.Never)]
860 public static readonly int ContentInfo = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION + 10;
864 /// This specifies properties of the MeshVisual.
866 /// <since_tizen> 3 </since_tizen>
867 public struct MeshVisualProperty
870 /// The location of the ".obj" file.
872 /// <since_tizen> 3 </since_tizen>
873 public static readonly int ObjectURL = NDalic.MESH_VISUAL_OBJECT_URL;
875 /// The location of the ".mtl" file.
877 /// <since_tizen> 3 </since_tizen>
878 public static readonly int MaterialtURL = NDalic.MESH_VISUAL_MATERIAL_URL;
880 /// Path to the directory the textures (including gloss and normal) are stored in.
882 /// <since_tizen> 3 </since_tizen>
883 public static readonly int TexturesPath = NDalic.MESH_VISUAL_TEXTURES_PATH;
885 /// Sets the type of shading mode that the mesh will use.
887 /// <since_tizen> 3 </since_tizen>
888 public static readonly int ShadingMode = NDalic.MESH_VISUAL_SHADING_MODE;
890 /// Whether to use mipmaps for textures or not.
892 /// <since_tizen> 3 </since_tizen>
893 public static readonly int UseMipmapping = NDalic.MESH_VISUAL_USE_MIPMAPPING;
895 /// Whether to average normals at each point to smooth textures or not.
897 /// <since_tizen> 3 </since_tizen>
898 public static readonly int UseSoftNormals = NDalic.MESH_VISUAL_USE_SOFT_NORMALS;
900 /// The position, in stage space, of the point light that applies lighting to the model.
902 /// <since_tizen> 3 </since_tizen>
903 public static readonly int LightPosition = NDalic.MESH_VISUAL_LIGHT_POSITION;
907 /// This specifies properties of the PrimitiveVisual.
909 /// <since_tizen> 3 </since_tizen>
910 public struct PrimitiveVisualProperty
913 /// The specific shape to render.
915 /// <since_tizen> 3 </since_tizen>
916 public static readonly int Shape = NDalic.PRIMITIVE_VISUAL_SHAPE;
918 /// The color of the shape.
920 /// <since_tizen> 3 </since_tizen>
921 public static readonly int MixColor = NDalic.PRIMITIVE_VISUAL_MIX_COLOR;
923 /// The number of slices as you go around the shape.
925 /// <since_tizen> 3 </since_tizen>
926 public static readonly int Slices = NDalic.PRIMITIVE_VISUAL_SLICES;
928 /// The number of stacks as you go down the shape.
930 /// <since_tizen> 3 </since_tizen>
931 public static readonly int Stacks = NDalic.PRIMITIVE_VISUAL_STACKS;
933 /// The scale of the radius of the top circle of a conical frustrum.
935 /// <since_tizen> 3 </since_tizen>
936 public static readonly int ScaleTopRadius = NDalic.PRIMITIVE_VISUAL_SCALE_TOP_RADIUS;
938 /// The scale of the radius of the bottom circle of a conical frustrum.
940 /// <since_tizen> 3 </since_tizen>
941 public static readonly int ScaleBottomRadius = NDalic.PRIMITIVE_VISUAL_SCALE_BOTTOM_RADIUS;
943 /// The scale of the height of a conic.
945 /// <since_tizen> 3 </since_tizen>
946 public static readonly int ScaleHeight = NDalic.PRIMITIVE_VISUAL_SCALE_HEIGHT;
948 /// The scale of the radius of a cylinder.
950 /// <since_tizen> 3 </since_tizen>
951 public static readonly int ScaleRadius = NDalic.PRIMITIVE_VISUAL_SCALE_RADIUS;
953 /// The dimensions of a cuboid. Scales in the same fashion as a 9-patch image.
955 /// <since_tizen> 3 </since_tizen>
956 public static readonly int ScaleDimensions = NDalic.PRIMITIVE_VISUAL_SCALE_DIMENSIONS;
958 /// Determines how bevelled the cuboid should be, based off the smallest dimension.
960 /// <since_tizen> 3 </since_tizen>
961 public static readonly int BevelPercentage = NDalic.PRIMITIVE_VISUAL_BEVEL_PERCENTAGE;
963 /// Defines how smooth the bevelled edges should be.
965 /// <since_tizen> 3 </since_tizen>
966 public static readonly int BevelSmoothness = NDalic.PRIMITIVE_VISUAL_BEVEL_SMOOTHNESS;
968 /// The position, in stage space, of the point light that applies lighting to the model.
970 /// <since_tizen> 3 </since_tizen>
971 public static readonly int LightPosition = NDalic.PRIMITIVE_VISUAL_LIGHT_POSITION;
975 /// This specifies properties of the TextVisual.
977 /// <since_tizen> 3 </since_tizen>
978 public struct TextVisualProperty
981 /// The text to display in UTF-8 format.
983 /// <since_tizen> 3 </since_tizen>
984 public static readonly int Text = NDalic.TEXT_VISUAL_TEXT;
986 /// The requested font family to use.
988 /// <since_tizen> 3 </since_tizen>
989 public static readonly int FontFamily = NDalic.TEXT_VISUAL_FONT_FAMILY;
991 /// The requested font style to use.
993 /// <since_tizen> 3 </since_tizen>
994 public static readonly int FontStyle = NDalic.TEXT_VISUAL_FONT_STYLE;
996 /// The size of font in points.
998 /// <since_tizen> 3 </since_tizen>
999 public static readonly int PointSize = NDalic.TEXT_VISUAL_POINT_SIZE;
1001 /// The single-line or multi-line layout option.
1003 /// <since_tizen> 3 </since_tizen>
1004 public static readonly int MultiLine = NDalic.TEXT_VISUAL_MULTI_LINE;
1006 /// The line horizontal alignment.
1008 /// <since_tizen> 3 </since_tizen>
1009 public static readonly int HorizontalAlignment = NDalic.TEXT_VISUAL_HORIZONTAL_ALIGNMENT;
1011 /// The line vertical alignment.
1013 /// <since_tizen> 3 </since_tizen>
1014 public static readonly int VerticalAlignment = NDalic.TEXT_VISUAL_VERTICAL_ALIGNMENT;
1016 /// The color of the text.
1018 /// <since_tizen> 3 </since_tizen>
1019 public static readonly int TextColor = NDalic.TEXT_VISUAL_TEXT_COLOR;
1021 /// Whether the mark-up processing is enabled.
1023 /// <since_tizen> 3 </since_tizen>
1024 public static readonly int EnableMarkup = NDalic.TEXT_VISUAL_ENABLE_MARKUP;
1026 /// The shadow parameters.
1028 /// <since_tizen> 5 </since_tizen>
1029 public static readonly int Shadow = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 1;
1031 /// The default underline parameters.
1033 /// <since_tizen> 5 </since_tizen>
1034 public static readonly int Underline = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 2;
1036 /// The default outline parameters.
1038 /// <since_tizen> 5 </since_tizen>
1039 public static readonly int Outline = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 3;
1041 /// The default text background parameters.
1043 /// <since_tizen> 5 </since_tizen>
1044 public static readonly int Background = NDalic.TEXT_VISUAL_ENABLE_MARKUP + 4;
1048 /// This specifies properties of the NpatchImageVisual.
1050 /// <since_tizen> 3 </since_tizen>
1051 public struct NpatchImageVisualProperty
1054 /// The URL of the image.
1056 /// <since_tizen> 3 </since_tizen>
1057 public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
1059 /// Fitting options, used when resizing images to fit desired dimensions.
1061 /// <since_tizen> 3 </since_tizen>
1062 public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
1064 /// Filtering options, used when resizing images to sample original pixels.
1066 /// <since_tizen> 3 </since_tizen>
1067 public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
1069 /// The desired image width.
1071 /// <since_tizen> 3 </since_tizen>
1072 public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
1074 /// The desired image height.
1076 /// <since_tizen> 3 </since_tizen>
1077 public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
1079 /// Whether to load the image synchronously.
1081 /// <since_tizen> 3 </since_tizen>
1082 public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
1084 /// If true, only draws the borders.
1086 /// <since_tizen> 3 </since_tizen>
1087 public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
1089 /// The image area to be displayed.
1091 /// <since_tizen> 3 </since_tizen>
1092 public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
1094 /// The wrap mode for u coordinate.
1096 /// <since_tizen> 3 </since_tizen>
1097 public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
1099 /// The wrap mode for v coordinate.
1101 /// <since_tizen> 3 </since_tizen>
1102 public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
1104 /// The border of the image.
1106 /// <since_tizen> 3 </since_tizen>
1107 public static readonly int Border = NDalic.IMAGE_VISUAL_WRAP_MODE_V + 1;