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

    Class EdgeInsets

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

    Fields

    bottom

    Declaration
    public readonly float bottom
    Field Value
    Type Description
    Single

    left

    Declaration
    public readonly float left
    Field Value
    Type Description
    Single

    right

    Declaration
    public readonly float right
    Field Value
    Type Description
    Single

    top

    Declaration
    public readonly float top
    Field Value
    Type Description
    Single

    zero

    Declaration
    public static readonly EdgeInsets zero
    Field Value
    Type Description
    EdgeInsets

    Properties

    bottomLeft

    Declaration
    public Offset bottomLeft { get; }
    Property Value
    Type Description
    Offset

    bottomRight

    Declaration
    public Offset bottomRight { get; }
    Property Value
    Type Description
    Offset

    collapsedSize

    Declaration
    public Size collapsedSize { get; }
    Property Value
    Type Description
    Size

    flipped

    Declaration
    public EdgeInsets flipped { get; }
    Property Value
    Type Description
    EdgeInsets

    horizontal

    Declaration
    public float horizontal { get; }
    Property Value
    Type Description
    Single

    isNonNegative

    Declaration
    public bool isNonNegative { get; }
    Property Value
    Type Description
    Boolean

    topLeft

    Declaration
    public Offset topLeft { get; }
    Property Value
    Type Description
    Offset

    topRight

    Declaration
    public Offset topRight { get; }
    Property Value
    Type Description
    Offset

    vertical

    Declaration
    public float vertical { get; }
    Property Value
    Type Description
    Single

    Methods

    add(EdgeInsets)

    Declaration
    public EdgeInsets add(EdgeInsets other)
    Parameters
    Type Name Description
    EdgeInsets other
    Returns
    Type Description
    EdgeInsets

    all(Single)

    Declaration
    public static EdgeInsets all(float value)
    Parameters
    Type Name Description
    Single value
    Returns
    Type Description
    EdgeInsets

    along(Axis)

    Declaration
    public float along(Axis axis)
    Parameters
    Type Name Description
    Axis axis
    Returns
    Type Description
    Single

    copyWith(Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<Single>)

    Declaration
    public EdgeInsets copyWith(float? left = default(float? ), float? top = default(float? ), float? right = default(float? ), float? bottom = default(float? ))
    Parameters
    Type Name Description
    Nullable<Single> left
    Nullable<Single> top
    Nullable<Single> right
    Nullable<Single> bottom
    Returns
    Type Description
    EdgeInsets

    deflateRect(Rect)

    Declaration
    public Rect deflateRect(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Rect

    deflateSize(Size)

    Declaration
    public Size deflateSize(Size size)
    Parameters
    Type Name Description
    Size size
    Returns
    Type Description
    Size

    Equals(Object)

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

    Equals(EdgeInsets)

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

    fromLTRB(Single, Single, Single, Single)

    Declaration
    public static EdgeInsets fromLTRB(float left, float top, float right, float bottom)
    Parameters
    Type Name Description
    Single left
    Single top
    Single right
    Single bottom
    Returns
    Type Description
    EdgeInsets

    fromWindowPadding(WindowPadding, Single)

    Declaration
    public static EdgeInsets fromWindowPadding(WindowPadding padding, float devicePixelRatio)
    Parameters
    Type Name Description
    WindowPadding padding
    Single devicePixelRatio
    Returns
    Type Description
    EdgeInsets

    GetHashCode()

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

    inflateRect(Rect)

    Declaration
    public Rect inflateRect(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Rect

    inflateSize(Size)

    Declaration
    public Size inflateSize(Size size)
    Parameters
    Type Name Description
    Size size
    Returns
    Type Description
    Size

    lerp(EdgeInsets, EdgeInsets, Single)

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

    only(Single, Single, Single, Single)

    Declaration
    public static EdgeInsets only(float left = 0F, float top = 0F, float right = 0F, float bottom = 0F)
    Parameters
    Type Name Description
    Single left
    Single top
    Single right
    Single bottom
    Returns
    Type Description
    EdgeInsets

    subtract(EdgeInsets)

    Declaration
    public EdgeInsets subtract(EdgeInsets other)
    Parameters
    Type Name Description
    EdgeInsets other
    Returns
    Type Description
    EdgeInsets

    symmetric(Single, Single)

    Declaration
    public static EdgeInsets symmetric(float vertical = 0F, float horizontal = 0F)
    Parameters
    Type Name Description
    Single vertical
    Single horizontal
    Returns
    Type Description
    EdgeInsets

    ToString()

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

    Operators

    Addition(EdgeInsets, EdgeInsets)

    Declaration
    public static EdgeInsets operator +(EdgeInsets a, EdgeInsets b)
    Parameters
    Type Name Description
    EdgeInsets a
    EdgeInsets b
    Returns
    Type Description
    EdgeInsets

    Division(EdgeInsets, Single)

    Declaration
    public static EdgeInsets operator /(EdgeInsets a, float b)
    Parameters
    Type Name Description
    EdgeInsets a
    Single b
    Returns
    Type Description
    EdgeInsets

    Equality(EdgeInsets, EdgeInsets)

    Declaration
    public static bool operator ==(EdgeInsets a, EdgeInsets b)
    Parameters
    Type Name Description
    EdgeInsets a
    EdgeInsets b
    Returns
    Type Description
    Boolean

    Inequality(EdgeInsets, EdgeInsets)

    Declaration
    public static bool operator !=(EdgeInsets a, EdgeInsets b)
    Parameters
    Type Name Description
    EdgeInsets a
    EdgeInsets b
    Returns
    Type Description
    Boolean

    Modulus(EdgeInsets, Single)

    Declaration
    public static EdgeInsets operator %(EdgeInsets a, float b)
    Parameters
    Type Name Description
    EdgeInsets a
    Single b
    Returns
    Type Description
    EdgeInsets

    Multiply(EdgeInsets, Single)

    Declaration
    public static EdgeInsets operator *(EdgeInsets a, float b)
    Parameters
    Type Name Description
    EdgeInsets a
    Single b
    Returns
    Type Description
    EdgeInsets

    Subtraction(EdgeInsets, EdgeInsets)

    Declaration
    public static EdgeInsets operator -(EdgeInsets a, EdgeInsets b)
    Parameters
    Type Name Description
    EdgeInsets a
    EdgeInsets b
    Returns
    Type Description
    EdgeInsets

    UnaryNegation(EdgeInsets)

    Declaration
    public static EdgeInsets operator -(EdgeInsets a)
    Parameters
    Type Name Description
    EdgeInsets a
    Returns
    Type Description
    EdgeInsets
    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