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
RoundedRect(Rect, Vector, Vector, Vector, Vector)
public RoundedRect(Rect rect, Vector radiiTopLeft, Vector radiiTopRight, Vector radiiBottomRight, Vector radiiBottomLeft)
Parameters
RoundedRect(Rect, double)
public RoundedRect(Rect rect, double radius)
Parameters
RoundedRect(Rect, double, double)
public RoundedRect(Rect rect, double radiusX, double radiusY)
Parameters
RoundedRect(Rect, double, double, double, double)
public RoundedRect(Rect rect, double radiusTopLeft, double radiusTopRight, double radiusBottomRight, double radiusBottomLeft)
Parameters
rect
RectradiusTopLeft
doubleradiusTopRight
doubleradiusBottomRight
doubleradiusBottomLeft
double
RoundedRect(in Rect, in CornerRadius)
public RoundedRect(in Rect bounds, in CornerRadius radius)
Parameters
bounds
Rectradius
CornerRadius
Properties
IsRounded
public bool IsRounded { get; }
Property Value
IsUniform
public bool IsUniform { get; }
Property Value
RadiiBottomLeft
public readonly Vector RadiiBottomLeft { get; }
Property Value
RadiiBottomRight
public readonly Vector RadiiBottomRight { get; }
Property Value
RadiiTopLeft
public readonly Vector RadiiTopLeft { get; }
Property Value
RadiiTopRight
public readonly Vector RadiiTopRight { get; }
Property Value
Rect
public readonly Rect Rect { get; }
Property Value
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
PointThe 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
Returns
Equals(RoundedRect)
public bool Equals(RoundedRect other)
Parameters
other
RoundedRect
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Inflate(double, double)
public RoundedRect Inflate(double dx, double dy)
Parameters
Returns
Operators
operator ==(RoundedRect, RoundedRect)
public static bool operator ==(RoundedRect left, RoundedRect right)
Parameters
left
RoundedRectright
RoundedRect
Returns
implicit operator RoundedRect(Rect)
public static implicit operator RoundedRect(Rect r)
Parameters
r
Rect
Returns
operator !=(RoundedRect, RoundedRect)
public static bool operator !=(RoundedRect left, RoundedRect right)
Parameters
left
RoundedRectright
RoundedRect