Class ColorVisual

    Definition

    Namespace:
    Tizen.NUI.Visuals
    Assembly:
    Tizen.NUI.dll

    Simple visual to render a solid color.

    public class ColorVisual : VisualBase, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    VisualBase
    ColorVisual
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Constructors

    View Source

    ColorVisual()

    Creates an visual object.

    Declaration
    public ColorVisual()

    Properties

    View Source

    BlurRadius

    Blur radius for this visual

    Declaration
    public float BlurRadius { get; set; }
    Property Value
    Type Description
    float
    Remarks

    This property will ignore BorderlineWidth property when we set BlurRadius property at least one time.

    View Source

    BorderlineColor

    The color for the borderline of the visual. It is Color.Black by default.

    Declaration
    public Color BorderlineColor { get; set; }
    Property Value
    Type Description
    Color
    View Source

    BorderlineOffset

    The Relative offset for the borderline of the visual. Recommended range : [-1.0f to 1.0f]. If -1.0f, draw borderline inside of the visual. If 1.0f, draw borderline outside of the visual. If 0.0f, draw borderline half inside and half outside. It is 0.0f by default.

    Declaration
    public float BorderlineOffset { get; set; }
    Property Value
    Type Description
    float
    View Source

    BorderlineWidth

    The width for the borderline of the visual.

    Declaration
    public float BorderlineWidth { get; set; }
    Property Value
    Type Description
    float
    View Source

    CornerRadius

    The radius for the rounded corners of the visual. The values in Vector4 are used in clockwise order from top-left to bottom-left : Vector4(top-left-corner, top-right-corner, bottom-right-corner, bottom-left-corner). Each radius will clamp internally to the half of smaller of the visual's width or height.

    Declaration
    public Vector4 CornerRadius { get; set; }
    Property Value
    Type Description
    Vector4
    View Source

    CornerRadiusPolicy

    Whether the CornerRadius property value is relative (percentage [0.0f to 0.5f] of the visual size) or absolute (in world units). It is absolute by default. When the policy is relative, the corner radius is relative to the smaller of the visual's width and height.

    Declaration
    public VisualTransformPolicyType CornerRadiusPolicy { get; set; }
    Property Value
    Type Description
    VisualTransformPolicyType
    View Source

    CornerSquareness

    The squareness for the rounded corners of the visual. The values in Vector4 are used in clockwise order from top-left to bottom-left : Vector4(top-left-corner, top-right-corner, bottom-right-corner, bottom-left-corner). Each radius will clamp internally between 0.0 and 1.0.

    Declaration
    public Vector4 CornerSquareness { get; set; }
    Property Value
    Type Description
    Vector4
    View Source

    CutoutPolicy

    Cutout policy of color visual

    Declaration
    public ColorVisualCutoutPolicyType CutoutPolicy { get; set; }
    Property Value
    Type Description
    ColorVisualCutoutPolicyType

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX