Table of Contents

Struct PortalPositionResult

Namespace
SharpConsoleUI.Layout
Assembly
SharpConsoleUI.dll

The calculated portal position after applying placement and clamping logic.

public readonly record struct PortalPositionResult : IEquatable<PortalPositionResult>
Implements
Inherited Members
Extension Methods

Constructors

PortalPositionResult(Rectangle, PortalPlacement, bool)

The calculated portal position after applying placement and clamping logic.

public PortalPositionResult(Rectangle Bounds, PortalPlacement ActualPlacement, bool WasClamped)

Parameters

Bounds Rectangle

The final positioned rectangle for the portal content.

ActualPlacement PortalPlacement

The actual placement used (may differ from requested if flipped).

WasClamped bool

True if the bounds were clamped to fit within screen bounds.

Properties

ActualPlacement

The actual placement used (may differ from requested if flipped).

public PortalPlacement ActualPlacement { get; init; }

Property Value

PortalPlacement

Bounds

The final positioned rectangle for the portal content.

public Rectangle Bounds { get; init; }

Property Value

Rectangle

WasClamped

True if the bounds were clamped to fit within screen bounds.

public bool WasClamped { get; init; }

Property Value

bool