BoxConstraints

Struct
Namespace: RazorConsole.Core.Layout
Assembly: RazorConsole.Core

Definition

public readonly struct BoxConstraints : IEquatable<BoxConstraints>

Constructors

1
NameTypeDescription
BoxConstraints(int, int, int, int)()Constructor—

Properties

5
NameTypeDescription
Appearance
HasBoundedHeightBooleanGets a value indicating whether MaxHeight is a real limit rather than UnboundedHeight.
MaxHeightInt32—
MaxWidthInt32—
MinHeightInt32—
MinWidthInt32—

Methods

8
NameTypeDescription
Constrain(LayoutSize)()LayoutSize—
Deflate(int, int, int, int)()BoxConstraints—
Equals(BoxConstraints)()Boolean—
Equals(object)()Boolean—
GetHashCode()Int32—
ResolveFillHeight(int, int)()Int32Resolves the height of a "fill height" element: the available height minus reserved when the height is bounded, otherwise contentHeight.
ToString()String—
WithUnboundedHeight()BoxConstraintsReturns the same constraints without an upper height limit.

Fields

1
NameTypeDescription
UnboundedHeightInt32Sentinel MaxHeight meaning "no vertical limit", used to measure scrollable content.

Operators

2
NameTypeDescription
operator ==(BoxConstraints, BoxConstraints)()Boolean—
operator !=(BoxConstraints, BoxConstraints)()Boolean—