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

    Class RRect

    Inheritance
    System.Object
    RRect
    Namespace: Unity.UIWidgets.ui
    Syntax
    public class RRect : IEquatable<RRect>

    Fields

    blRadius

    Declaration
    public readonly Radius blRadius
    Field Value
    Type Description
    Radius

    bottom

    Declaration
    public readonly float bottom
    Field Value
    Type Description
    System.Single

    brRadius

    Declaration
    public readonly Radius brRadius
    Field Value
    Type Description
    Radius

    left

    Declaration
    public readonly float left
    Field Value
    Type Description
    System.Single

    right

    Declaration
    public readonly float right
    Field Value
    Type Description
    System.Single

    tlRadius

    Declaration
    public readonly Radius tlRadius
    Field Value
    Type Description
    Radius

    top

    Declaration
    public readonly float top
    Field Value
    Type Description
    System.Single

    trRadius

    Declaration
    public readonly Radius trRadius
    Field Value
    Type Description
    Radius

    zero

    Declaration
    public static readonly RRect zero
    Field Value
    Type Description
    RRect

    Properties

    blRadiusX

    Declaration
    public float blRadiusX { get; }
    Property Value
    Type Description
    System.Single

    blRadiusY

    Declaration
    public float blRadiusY { get; }
    Property Value
    Type Description
    System.Single

    brRadiusX

    Declaration
    public float brRadiusX { get; }
    Property Value
    Type Description
    System.Single

    brRadiusY

    Declaration
    public float brRadiusY { get; }
    Property Value
    Type Description
    System.Single

    center

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

    height

    Declaration
    public float height { get; }
    Property Value
    Type Description
    System.Single

    isCircle

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

    isEllipse

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

    isEmpty

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

    isFinite

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

    isInfinite

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

    isRect

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

    isStadium

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

    longestSide

    Declaration
    public float longestSide { get; }
    Property Value
    Type Description
    System.Single

    middleRect

    Declaration
    public Rect middleRect { get; }
    Property Value
    Type Description
    Rect

    outerRect

    Declaration
    public Rect outerRect { get; }
    Property Value
    Type Description
    Rect

    safeInnerRect

    Declaration
    public Rect safeInnerRect { get; }
    Property Value
    Type Description
    Rect

    shortestSide

    Declaration
    public float shortestSide { get; }
    Property Value
    Type Description
    System.Single

    tallMiddleRect

    Declaration
    public Rect tallMiddleRect { get; }
    Property Value
    Type Description
    Rect

    tlRadiusX

    Declaration
    public float tlRadiusX { get; }
    Property Value
    Type Description
    System.Single

    tlRadiusY

    Declaration
    public float tlRadiusY { get; }
    Property Value
    Type Description
    System.Single

    trRadiusX

    Declaration
    public float trRadiusX { get; }
    Property Value
    Type Description
    System.Single

    trRadiusY

    Declaration
    public float trRadiusY { get; }
    Property Value
    Type Description
    System.Single

    wideMiddleRect

    Declaration
    public Rect wideMiddleRect { get; }
    Property Value
    Type Description
    Rect

    width

    Declaration
    public float width { get; }
    Property Value
    Type Description
    System.Single

    Methods

    contains(Offset)

    Declaration
    public bool contains(Offset point)
    Parameters
    Type Name Description
    Offset point
    Returns
    Type Description
    System.Boolean

    contains(Rect)

    Declaration
    public bool contains(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    System.Boolean

    deflate(Single)

    Declaration
    public RRect deflate(float delta)
    Parameters
    Type Name Description
    System.Single delta
    Returns
    Type Description
    RRect

    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(RRect)

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

    fromLTRBAndCorners(Single, Single, Single, Single, Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<Single>)

    Declaration
    public static RRect fromLTRBAndCorners(float left, float top, float right, float bottom, float? topLeft = default(float? ), float? topRight = default(float? ), float? bottomRight = default(float? ), float? bottomLeft = default(float? ))
    Parameters
    Type Name Description
    System.Single left
    System.Single top
    System.Single right
    System.Single bottom
    System.Nullable<System.Single> topLeft
    System.Nullable<System.Single> topRight
    System.Nullable<System.Single> bottomRight
    System.Nullable<System.Single> bottomLeft
    Returns
    Type Description
    RRect

    fromLTRBAndCorners(Single, Single, Single, Single, Radius, Radius, Radius, Radius)

    Declaration
    public static RRect fromLTRBAndCorners(float left, float top, float right, float bottom, Radius topLeft = null, Radius topRight = null, Radius bottomRight = null, Radius bottomLeft = null)
    Parameters
    Type Name Description
    System.Single left
    System.Single top
    System.Single right
    System.Single bottom
    Radius topLeft
    Radius topRight
    Radius bottomRight
    Radius bottomLeft
    Returns
    Type Description
    RRect

    fromLTRBR(Single, Single, Single, Single, Single)

    Declaration
    public static RRect fromLTRBR(float left, float top, float right, float bottom, float radius)
    Parameters
    Type Name Description
    System.Single left
    System.Single top
    System.Single right
    System.Single bottom
    System.Single radius
    Returns
    Type Description
    RRect

    fromLTRBR(Single, Single, Single, Single, Radius)

    Declaration
    public static RRect fromLTRBR(float left, float top, float right, float bottom, Radius radius)
    Parameters
    Type Name Description
    System.Single left
    System.Single top
    System.Single right
    System.Single bottom
    Radius radius
    Returns
    Type Description
    RRect

    fromLTRBXY(Single, Single, Single, Single, Single, Single)

    Declaration
    public static RRect fromLTRBXY(float left, float top, float right, float bottom, float radiusX, float radiusY)
    Parameters
    Type Name Description
    System.Single left
    System.Single top
    System.Single right
    System.Single bottom
    System.Single radiusX
    System.Single radiusY
    Returns
    Type Description
    RRect

    fromRect(Rect)

    Declaration
    public static RRect fromRect(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    RRect

    fromRectAndCorners(Rect, Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<Single>)

    Declaration
    public static RRect fromRectAndCorners(Rect rect, float? topLeft = default(float? ), float? topRight = default(float? ), float? bottomRight = default(float? ), float? bottomLeft = default(float? ))
    Parameters
    Type Name Description
    Rect rect
    System.Nullable<System.Single> topLeft
    System.Nullable<System.Single> topRight
    System.Nullable<System.Single> bottomRight
    System.Nullable<System.Single> bottomLeft
    Returns
    Type Description
    RRect

    fromRectAndCorners(Rect, Radius, Radius, Radius, Radius)

    Declaration
    public static RRect fromRectAndCorners(Rect rect, Radius topLeft = null, Radius topRight = null, Radius bottomRight = null, Radius bottomLeft = null)
    Parameters
    Type Name Description
    Rect rect
    Radius topLeft
    Radius topRight
    Radius bottomRight
    Radius bottomLeft
    Returns
    Type Description
    RRect

    fromRectAndRadius(Rect, Single)

    Declaration
    public static RRect fromRectAndRadius(Rect rect, float radius)
    Parameters
    Type Name Description
    Rect rect
    System.Single radius
    Returns
    Type Description
    RRect

    fromRectAndRadius(Rect, Radius)

    Declaration
    public static RRect fromRectAndRadius(Rect rect, Radius radius)
    Parameters
    Type Name Description
    Rect rect
    Radius radius
    Returns
    Type Description
    RRect

    fromRectXY(Rect, Single, Single)

    Declaration
    public static RRect fromRectXY(Rect rect, float radiusX, float radiusY)
    Parameters
    Type Name Description
    Rect rect
    System.Single radiusX
    System.Single radiusY
    Returns
    Type Description
    RRect

    GetHashCode()

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

    inflate(Single)

    Declaration
    public RRect inflate(float delta)
    Parameters
    Type Name Description
    System.Single delta
    Returns
    Type Description
    RRect

    lerp(RRect, RRect, Single)

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

    shift(Offset)

    Declaration
    public RRect shift(Offset offset)
    Parameters
    Type Name Description
    Offset offset
    Returns
    Type Description
    RRect

    ToString()

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

    Operators

    Equality(RRect, RRect)

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

    Inequality(RRect, RRect)

    Declaration
    public static bool operator !=(RRect a, RRect b)
    Parameters
    Type Name Description
    RRect a
    RRect b
    Returns
    Type Description
    System.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