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
BoundsRectangleThe final positioned rectangle for the portal content.
ActualPlacementPortalPlacementThe actual placement used (may differ from requested if flipped).
WasClampedboolTrue 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
Bounds
The final positioned rectangle for the portal content.
public Rectangle Bounds { get; init; }
Property Value
WasClamped
True if the bounds were clamped to fit within screen bounds.
public bool WasClamped { get; init; }