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

    Class Border

    Inheritance
    System.Object
    ShapeBorder
    Border
    Inherited Members
    ShapeBorder.lerp(ShapeBorder, ShapeBorder, Single)
    Namespace: Unity.UIWidgets.painting
    Syntax
    public class Border : ShapeBorder, IEquatable<Border>

    Constructors

    Border(BorderSide, BorderSide, BorderSide, BorderSide)

    Declaration
    public Border(BorderSide top = null, BorderSide right = null, BorderSide bottom = null, BorderSide left = null)
    Parameters
    Type Name Description
    BorderSide top
    BorderSide right
    BorderSide bottom
    BorderSide left

    Fields

    bottom

    Declaration
    public readonly BorderSide bottom
    Field Value
    Type Description
    BorderSide

    left

    Declaration
    public readonly BorderSide left
    Field Value
    Type Description
    BorderSide

    right

    Declaration
    public readonly BorderSide right
    Field Value
    Type Description
    BorderSide

    top

    Declaration
    public readonly BorderSide top
    Field Value
    Type Description
    BorderSide

    Properties

    dimensions

    Declaration
    public override EdgeInsets dimensions { get; }
    Property Value
    Type Description
    EdgeInsets
    Overrides
    ShapeBorder.dimensions

    isSameColor

    Declaration
    public bool isSameColor { get; }
    Property Value
    Type Description
    System.Boolean

    isSameStyle

    Declaration
    public bool isSameStyle { get; }
    Property Value
    Type Description
    System.Boolean

    isSameWidth

    Declaration
    public bool isSameWidth { get; }
    Property Value
    Type Description
    System.Boolean

    isUniform

    Declaration
    public bool isUniform { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    add(ShapeBorder, Boolean)

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

    all(Color, Single, BorderStyle)

    Declaration
    public static Border all(Color color = null, float width = 1F, BorderStyle style = BorderStyle.solid)
    Parameters
    Type Name Description
    Color color
    System.Single width
    BorderStyle style
    Returns
    Type Description
    Border

    Equals(Object)

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

    Equals(Border)

    Declaration
    public bool Equals(Border other)
    Parameters
    Type Name Description
    Border other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

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

    getInnerPath(Rect)

    Declaration
    public override Path getInnerPath(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Path
    Overrides
    ShapeBorder.getInnerPath(Rect)

    getOuterPath(Rect)

    Declaration
    public override Path getOuterPath(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Path
    Overrides
    ShapeBorder.getOuterPath(Rect)

    lerp(Border, Border, Single)

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

    lerpFrom(ShapeBorder, Single)

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

    lerpTo(ShapeBorder, Single)

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

    merge(Border, Border)

    Declaration
    public static Border merge(Border a, Border b)
    Parameters
    Type Name Description
    Border a
    Border b
    Returns
    Type Description
    Border

    paint(Canvas, Rect)

    Declaration
    public override void paint(Canvas canvas, Rect rect)
    Parameters
    Type Name Description
    Canvas canvas
    Rect rect
    Overrides
    ShapeBorder.paint(Canvas, Rect)

    paint(Canvas, Rect, BoxShape, BorderRadius)

    Declaration
    public void paint(Canvas canvas, Rect rect, BoxShape shape = BoxShape.rectangle, BorderRadius borderRadius = null)
    Parameters
    Type Name Description
    Canvas canvas
    Rect rect
    BoxShape shape
    BorderRadius borderRadius

    scale(Single)

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

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    ShapeBorder.ToString()
    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