Class ShapeBorder | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ShapeBorder

    Inheritance
    System.Object
    ShapeBorder
    InputBorder
    BeveledRectangleBorder
    Border
    CircleBorder
    RoundedRectangleBorder
    StadiumBorder
    Namespace: Unity.UIWidgets.painting
    Syntax
    public abstract class ShapeBorder

    Constructors

    ShapeBorder()

    Declaration
    protected ShapeBorder()

    Properties

    dimensions

    Declaration
    public abstract EdgeInsets dimensions { get; }
    Property Value
    Type Description
    EdgeInsets

    Methods

    add(ShapeBorder, Boolean)

    Declaration
    public virtual ShapeBorder add(ShapeBorder other, bool reversed = false)
    Parameters
    Type Name Description
    ShapeBorder other
    System.Boolean reversed
    Returns
    Type Description
    ShapeBorder

    getInnerPath(Rect)

    Declaration
    public abstract Path getInnerPath(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Path

    getOuterPath(Rect)

    Declaration
    public abstract Path getOuterPath(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Path

    lerp(ShapeBorder, ShapeBorder, Single)

    Declaration
    public static ShapeBorder lerp(ShapeBorder a, ShapeBorder b, float t)
    Parameters
    Type Name Description
    ShapeBorder a
    ShapeBorder b
    System.Single t
    Returns
    Type Description
    ShapeBorder

    lerpFrom(ShapeBorder, Single)

    Declaration
    public virtual ShapeBorder lerpFrom(ShapeBorder a, float t)
    Parameters
    Type Name Description
    ShapeBorder a
    System.Single t
    Returns
    Type Description
    ShapeBorder

    lerpTo(ShapeBorder, Single)

    Declaration
    public virtual ShapeBorder lerpTo(ShapeBorder b, float t)
    Parameters
    Type Name Description
    ShapeBorder b
    System.Single t
    Returns
    Type Description
    ShapeBorder

    paint(Canvas, Rect)

    Declaration
    public abstract void paint(Canvas canvas, Rect rect)
    Parameters
    Type Name Description
    Canvas canvas
    Rect rect

    scale(Single)

    Declaration
    public abstract ShapeBorder scale(float t)
    Parameters
    Type Name Description
    System.Single t
    Returns
    Type Description
    ShapeBorder

    ToString()

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

    Operators

    Addition(ShapeBorder, ShapeBorder)

    Declaration
    public static ShapeBorder operator +(ShapeBorder it, ShapeBorder other)
    Parameters
    Type Name Description
    ShapeBorder it
    ShapeBorder other
    Returns
    Type Description
    ShapeBorder
    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