Table of Contents

Struct RoundedRect

Namespace
Avalonia
Assembly
Avalonia.Base.dll
public struct RoundedRect
Inherited Members

Constructors

RoundedRect(Rect)

public RoundedRect(Rect rect)

Parameters

rect Rect

RoundedRect(Rect, Vector)

public RoundedRect(Rect rect, Vector radii)

Parameters

rect Rect
radii Vector

RoundedRect(Rect, Vector, Vector, Vector, Vector)

public RoundedRect(Rect rect, Vector radiiTopLeft, Vector radiiTopRight, Vector radiiBottomRight, Vector radiiBottomLeft)

Parameters

rect Rect
radiiTopLeft Vector
radiiTopRight Vector
radiiBottomRight Vector
radiiBottomLeft Vector

RoundedRect(Rect, double)

public RoundedRect(Rect rect, double radius)

Parameters

rect Rect
radius double

RoundedRect(Rect, double, double)

public RoundedRect(Rect rect, double radiusX, double radiusY)

Parameters

rect Rect
radiusX double
radiusY double

RoundedRect(Rect, double, double, double, double)

public RoundedRect(Rect rect, double radiusTopLeft, double radiusTopRight, double radiusBottomRight, double radiusBottomLeft)

Parameters

rect Rect
radiusTopLeft double
radiusTopRight double
radiusBottomRight double
radiusBottomLeft double

RoundedRect(in Rect, in CornerRadius)

public RoundedRect(in Rect bounds, in CornerRadius radius)

Parameters

bounds Rect
radius CornerRadius

Properties

IsRounded

public bool IsRounded { get; }

Property Value

bool

IsUniform

public bool IsUniform { get; }

Property Value

bool

RadiiBottomLeft

public readonly Vector RadiiBottomLeft { get; }

Property Value

Vector

RadiiBottomRight

public readonly Vector RadiiBottomRight { get; }

Property Value

Vector

RadiiTopLeft

public readonly Vector RadiiTopLeft { get; }

Property Value

Vector

RadiiTopRight

public readonly Vector RadiiTopRight { get; }

Property Value

Vector

Rect

public readonly Rect Rect { get; }

Property Value

Rect

Methods

ContainsExclusive(Point)

Determines whether a point is in the bounds of the rounded rectangle, exclusive of the rounded rectangle's bottom/right edge.

public bool ContainsExclusive(Point p)

Parameters

p Point

The point.

Returns

bool

true if the point is in the bounds of the rounded rectangle; otherwise false.

Deflate(double, double)

public RoundedRect Deflate(double dx, double dy)

Parameters

dx double
dy double

Returns

RoundedRect

Equals(RoundedRect)

public bool Equals(RoundedRect other)

Parameters

other RoundedRect

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Inflate(double, double)

public RoundedRect Inflate(double dx, double dy)

Parameters

dx double
dy double

Returns

RoundedRect

Operators

operator ==(RoundedRect, RoundedRect)

public static bool operator ==(RoundedRect left, RoundedRect right)

Parameters

left RoundedRect
right RoundedRect

Returns

bool

implicit operator RoundedRect(Rect)

public static implicit operator RoundedRect(Rect r)

Parameters

r Rect

Returns

RoundedRect

operator !=(RoundedRect, RoundedRect)

public static bool operator !=(RoundedRect left, RoundedRect right)

Parameters

left RoundedRect
right RoundedRect

Returns

bool