Class DecorationImage | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class DecorationImage

    Inheritance
    Object
    DecorationImage
    Namespace: Unity.UIWidgets.painting
    Syntax
    public class DecorationImage : IEquatable<DecorationImage>

    Constructors

    DecorationImage(ImageProvider, ColorFilter, Nullable<BoxFit>, Alignment, Rect, ImageRepeat)

    Declaration
    public DecorationImage(ImageProvider image = null, ColorFilter colorFilter = null, BoxFit? fit = default(BoxFit? ), Alignment alignment = null, Rect centerSlice = null, ImageRepeat repeat = ImageRepeat.noRepeat)
    Parameters
    Type Name Description
    ImageProvider image
    ColorFilter colorFilter
    Nullable<BoxFit> fit
    Alignment alignment
    Rect centerSlice
    ImageRepeat repeat

    Fields

    alignment

    Declaration
    public readonly Alignment alignment
    Field Value
    Type Description
    Alignment

    centerSlice

    Declaration
    public readonly Rect centerSlice
    Field Value
    Type Description
    Rect

    colorFilter

    Declaration
    public readonly ColorFilter colorFilter
    Field Value
    Type Description
    ColorFilter

    fit

    Declaration
    public readonly BoxFit? fit
    Field Value
    Type Description
    Nullable<BoxFit>

    image

    Declaration
    public readonly ImageProvider image
    Field Value
    Type Description
    ImageProvider

    repeat

    Declaration
    public readonly ImageRepeat repeat
    Field Value
    Type Description
    ImageRepeat

    Methods

    createPainter(VoidCallback)

    Declaration
    public DecorationImagePainter createPainter(VoidCallback onChanged)
    Parameters
    Type Name Description
    VoidCallback onChanged
    Returns
    Type Description
    DecorationImagePainter

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    Equals(DecorationImage)

    Declaration
    public bool Equals(DecorationImage other)
    Parameters
    Type Name Description
    DecorationImage other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Operators

    Equality(DecorationImage, DecorationImage)

    Declaration
    public static bool operator ==(DecorationImage left, DecorationImage right)
    Parameters
    Type Name Description
    DecorationImage left
    DecorationImage right
    Returns
    Type Description
    Boolean

    Inequality(DecorationImage, DecorationImage)

    Declaration
    public static bool operator !=(DecorationImage left, DecorationImage right)
    Parameters
    Type Name Description
    DecorationImage left
    DecorationImage right
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023