Table of Contents

Struct LtrbRect

Namespace
Avalonia.Platform
Assembly
Avalonia.Base.dll

This struct is essentially the same thing as MilRectD Unlike our "normal" Rect which is more human-readable and human-usable this struct is optimized for actual processing that doesn't really care about Width and Height but pretty much always only cares about Right and Bottom edge coordinates

Not having to constantly convert between Width/Height and Right/Bottom for no actual reason saves us some perf

This structure is intended to be mostly internal, but it's exposed as a PrivateApi type so it can be passed to the drawing backend when needed

[PrivateApi]
public struct LtrbRect
Inherited Members

Fields

Bottom

public double Bottom

Field Value

double

Left

public double Left

Field Value

double

Right

public double Right

Field Value

double

Top

public double Top

Field Value

double

Methods

Equals(LtrbRect)

public bool Equals(LtrbRect other)

Parameters

other LtrbRect

Returns

bool

Equals(ref LtrbRect)

public bool Equals(ref LtrbRect other)

Parameters

other LtrbRect

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(LtrbRect, LtrbRect)

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

Parameters

left LtrbRect
right LtrbRect

Returns

bool

operator !=(LtrbRect, LtrbRect)

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

Parameters

left LtrbRect
right LtrbRect

Returns

bool