- /// <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>
- /// MixColor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MixColor = NDalic.VISUAL_PROPERTY_MIX_COLOR;
- /// <summary>
- /// Opacity.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Opacity = NDalic.VISUAL_PROPERTY_MIX_COLOR + 1;
- /// <summary>
- /// The fitting mode of the visual.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int VisualFittingMode = NDalic.VISUAL_PROPERTY_MIX_COLOR + 2;
- }
-
- /// <summary>
- /// This specifies shader properties.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct ShaderProperty
- {
- /// <summary>
- /// Vertex shader code
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int VertexShader = NDalic.VISUAL_SHADER_VERTEX;
- /// <summary>
- /// Fragment shader code
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int FragmentShader = NDalic.VISUAL_SHADER_FRAGMENT;
- /// <summary>
- /// How to subdivide the grid along X
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ShaderSubdivideGridX = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_X;
- /// <summary>
- /// How to subdivide the grid along Y
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ShaderSubdivideGridY = NDalic.VISUAL_SHADER_SUBDIVIDE_GRID_Y;
- /// <summary>
- /// Bitmask of hints
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ShaderHints = NDalic.VISUAL_SHADER_HINTS;
- }
-
- /// <summary>
- /// This specifies visaul align types.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public enum AlignType
- {
- /// <summary>
- /// TopBegin
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- TopBegin = 0,
- /// <summary>
- /// TopCenter
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- TopCenter,
- /// <summary>
- /// TopEnd
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- TopEnd,
- /// <summary>
- /// CenterBegin
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- CenterBegin,
- /// <summary>
- /// Center
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- Center,
- /// <summary>
- /// CenterEnd
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- CenterEnd,
- /// <summary>
- /// BottomBegin
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- BottomBegin,
- /// <summary>
- /// BottomCenter
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- BottomCenter,
- /// <summary>
- /// BottomEnd
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- BottomEnd
- }
- }
-
- /// <summary>
- /// This specifies properties of the BorderVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct BorderVisualProperty
- {
- /// <summary>
- /// The color of the border.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Color = NDalic.BORDER_VISUAL_COLOR;
- /// <summary>
- /// The width of the border (in pixels).
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Size = NDalic.BORDER_VISUAL_SIZE;
- /// <summary>
- /// Whether anti-aliasing of the border is required.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int AntiAliasing = NDalic.BORDER_VISUAL_ANTI_ALIASING;
- }
-
- /// <summary>
- /// This specifies properties of the ColorVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct ColorVisualProperty
- {
- /// <summary>
- /// The solid color required.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MixColor = NDalic.COLOR_VISUAL_MIX_COLOR;
- /// <summary>
- /// Whether to render if the MixColor is transparent.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int RenderIfTransparent = NDalic.COLOR_VISUAL_MIX_COLOR + 1;
- }
-
- /// <summary>
- /// This specifies properties of the GradientVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct GradientVisualProperty
- {
- /// <summary>
- /// The start position of a linear gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int StartPosition = NDalic.GRADIENT_VISUAL_START_POSITION;
- /// <summary>
- /// The end position of a linear gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int EndPosition = NDalic.GRADIENT_VISUAL_END_POSITION;
- /// <summary>
- /// The center point of a radial gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Center = NDalic.GRADIENT_VISUAL_CENTER;
- /// <summary>
- /// The size of the radius of a radial gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Radius = NDalic.GRADIENT_VISUAL_RADIUS;
- /// <summary>
- /// All the stop offsets.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int StopOffset = NDalic.GRADIENT_VISUAL_STOP_OFFSET;
- /// <summary>
- /// The color at the stop offsets.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int StopColor = NDalic.GRADIENT_VISUAL_STOP_COLOR;
- /// <summary>
- /// Defines the coordinate system for certain attributes of the points in a gradient.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Units = NDalic.GRADIENT_VISUAL_UNITS;
- /// <summary>
- /// Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int SpreadMethod = NDalic.GRADIENT_VISUAL_SPREAD_METHOD;
- }
-
- /// <summary>
- /// This specifies properties of the ImageVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct ImageVisualProperty
- {
- /// <summary>
- /// The URL of the image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
- /// <summary>
- /// The URL of the alpha mask image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int AlphaMaskURL = NDalic.IMAGE_VISUAL_ALPHA_MASK_URL;
- /// <summary>
- /// Fitting options, used when resizing images to fit desired dimensions.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
- /// <summary>
- /// Filtering options, used when resizing images to sample original pixels.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
- /// <summary>
- /// The desired image width.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
- /// <summary>
- /// The desired image height.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
- /// <summary>
- /// Whether to load the image synchronously.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
- /// <summary>
- /// If true, only draws the borders.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
- /// <summary>
- /// The image area to be displayed.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
- /// <summary>
- /// The wrap mode for u coordinate.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
- /// <summary>
- /// The wrap mode for v coordinate.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
- /// <summary>
- /// The border of the image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Border = NDalic.IMAGE_VISUAL_BORDER;
- /// <summary>
- /// Whether to use the texture atlas.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int Atlasing = NDalic.IMAGE_VISUAL_BORDER + 1;
- /// <summary>
- /// The scale factor to apply to the content image before masking.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int MaskContentScale = NDalic.IMAGE_VISUAL_MASK_CONTENT_SCALE;
- /// <summary>
- /// Whether to crop image to mask or scale mask to fit image
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int CropToMask = NDalic.IMAGE_VISUAL_CROP_TO_MASK;
- /// <summary>
- /// Defines the batch size for pre-loading images in the AnimatedImageVisual
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int BatchSize = NDalic.IMAGE_VISUAL_BATCH_SIZE;
- /// <summary>
- /// Defines the cache size for loading images in the AnimatedImageVisual
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int CacheSize = NDalic.IMAGE_VISUAL_CACHE_SIZE;
- /// <summary>
- /// The number of milliseconds between each frame in the AnimatedImageVisual
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public static readonly int FrameDelay = NDalic.IMAGE_VISUAL_FRAME_DELAY;
- /// <summary>
- /// The number of times the AnimatedImageVisual will be looped.
- /// The default is -1. If the value is less than 0, loop unlimited. Otherwise, loop loopCount times.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int LoopCount = NDalic.IMAGE_VISUAL_LOOP_COUNT;
- /// <summary>
- /// The policy to determine when an image should no longer be cached.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int ReleasePolicy = NDalic.IMAGE_VISUAL_RELEASE_POLICY;
- /// <summary>
- /// The policy to determine when an image should be loaded.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int LoadPolicy = NDalic.IMAGE_VISUAL_LOAD_POLICY;
- /// <summary>
- /// Determines if image orientation should be corrected so that the image displays as it was intended.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int OrientationCorrection = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION;
- /// <summary>
- /// Overlays the auxiliary image on top of an NPatch image.
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int AuxiliaryImageURL = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_URL;
- /// <summary>
- /// Alpha value for the auxiliary image, without affecting the underlying NPatch image
- /// </summary>
- /// <since_tizen> 5 </since_tizen>
- public static readonly int AuxiliaryImageAlpha = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_ALPHA;
- }
-
- /// <summary>
- /// This specifies properties of the MeshVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct MeshVisualProperty
- {
- /// <summary>
- /// The location of the ".obj" file.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ObjectURL = NDalic.MESH_VISUAL_OBJECT_URL;
- /// <summary>
- /// The location of the ".mtl" file.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MaterialtURL = NDalic.MESH_VISUAL_MATERIAL_URL;
- /// <summary>
- /// Path to the directory the textures (including gloss and normal) are stored in.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int TexturesPath = NDalic.MESH_VISUAL_TEXTURES_PATH;
- /// <summary>
- /// Sets the type of shading mode that the mesh will use.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ShadingMode = NDalic.MESH_VISUAL_SHADING_MODE;
- /// <summary>
- /// Whether to use mipmaps for textures or not.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int UseMipmapping = NDalic.MESH_VISUAL_USE_MIPMAPPING;
- /// <summary>
- /// Whether to average normals at each point to smooth textures or not.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int UseSoftNormals = NDalic.MESH_VISUAL_USE_SOFT_NORMALS;
- /// <summary>
- /// The position, in stage space, of the point light that applies lighting to the model.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int LightPosition = NDalic.MESH_VISUAL_LIGHT_POSITION;
- }
-
- /// <summary>
- /// This specifies properties of the PrimitiveVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct PrimitiveVisualProperty
- {
- /// <summary>
- /// The specific shape to render.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Shape = NDalic.PRIMITIVE_VISUAL_SHAPE;
- /// <summary>
- /// The color of the shape.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MixColor = NDalic.PRIMITIVE_VISUAL_MIX_COLOR;
- /// <summary>
- /// The number of slices as you go around the shape.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Slices = NDalic.PRIMITIVE_VISUAL_SLICES;
- /// <summary>
- /// The number of stacks as you go down the shape.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Stacks = NDalic.PRIMITIVE_VISUAL_STACKS;
- /// <summary>
- /// The scale of the radius of the top circle of a conical frustrum.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleTopRadius = NDalic.PRIMITIVE_VISUAL_SCALE_TOP_RADIUS;
- /// <summary>
- /// The scale of the radius of the bottom circle of a conical frustrum.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleBottomRadius = NDalic.PRIMITIVE_VISUAL_SCALE_BOTTOM_RADIUS;
- /// <summary>
- /// The scale of the height of a conic.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleHeight = NDalic.PRIMITIVE_VISUAL_SCALE_HEIGHT;
- /// <summary>
- /// The scale of the radius of a cylinder.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleRadius = NDalic.PRIMITIVE_VISUAL_SCALE_RADIUS;
- /// <summary>
- /// The dimensions of a cuboid. Scales in the same fashion as a 9-patch image.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int ScaleDimensions = NDalic.PRIMITIVE_VISUAL_SCALE_DIMENSIONS;
- /// <summary>
- /// Determines how bevelled the cuboid should be, based off the smallest dimension.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int BevelPercentage = NDalic.PRIMITIVE_VISUAL_BEVEL_PERCENTAGE;
- /// <summary>
- /// Defines how smooth the bevelled edges should be.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int BevelSmoothness = NDalic.PRIMITIVE_VISUAL_BEVEL_SMOOTHNESS;
- /// <summary>
- /// The position, in stage space, of the point light that applies lighting to the model.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int LightPosition = NDalic.PRIMITIVE_VISUAL_LIGHT_POSITION;
- }
-
- /// <summary>
- /// This specifies properties of the TextVisual.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public struct TextVisualProperty
- {
- /// <summary>
- /// The text to display in UTF-8 format.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int Text = NDalic.TEXT_VISUAL_TEXT;
- /// <summary>
- /// The requested font family to use.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int FontFamily = NDalic.TEXT_VISUAL_FONT_FAMILY;
- /// <summary>
- /// The requested font style to use.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int FontStyle = NDalic.TEXT_VISUAL_FONT_STYLE;
- /// <summary>
- /// The size of font in points.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int PointSize = NDalic.TEXT_VISUAL_POINT_SIZE;
- /// <summary>
- /// The single-line or multi-line layout option.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int MultiLine = NDalic.TEXT_VISUAL_MULTI_LINE;
- /// <summary>
- /// The line horizontal alignment.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int HorizontalAlignment = NDalic.TEXT_VISUAL_HORIZONTAL_ALIGNMENT;
- /// <summary>
- /// The line vertical alignment.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int VerticalAlignment = NDalic.TEXT_VISUAL_VERTICAL_ALIGNMENT;
- /// <summary>
- /// The color of the text.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int TextColor = NDalic.TEXT_VISUAL_TEXT_COLOR;
- /// <summary>
- /// Whether the mark-up processing is enabled.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public static readonly int EnableMarkup = NDalic.TEXT_VISUAL_ENABLE_MARKUP;