Table of Contents

Struct Rect

Namespace
Xui.Runtime.Software.Raster
Assembly
Xui.Runtime.Software.dll
public struct Rect
Inherited Members

Fields

Bottom

public uint Bottom

Field Value

uint

Empty

public static readonly Rect Empty

Field Value

Rect

Left

public uint Left

Field Value

uint

Right

public uint Right

Field Value

uint

Top

public uint Top

Field Value

uint

Properties

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Methods

AlignOutward(Rect, int)

Returns a new rectangle expanded outward and aligned to a SIMD boundary. This is used for conservative region initialization where vectorization is preferred.

public static Rect AlignOutward(Rect rect, int simdWidth)

Parameters

rect Rect
simdWidth int

The number of pixels per vector (e.g., Vector<T>.Count).

Returns

Rect

IntersectWith(in Rect)

public void IntersectWith(in Rect other)

Parameters

other Rect

UnionWith(in Rect)

public void UnionWith(in Rect other)

Parameters

other Rect