BoxConstraints
StructNamespace:
RazorConsole.Core.LayoutAssembly:
RazorConsole.CoreDefinition
public readonly struct BoxConstraints : IEquatable<BoxConstraints>Constructors
1| Name | Type | Description |
|---|---|---|
BoxConstraints(int, int, int, int)() | Constructor | — |
Properties
5Methods
8| Name | Type | Description |
|---|---|---|
Constrain(LayoutSize)() | LayoutSize | — |
Deflate(int, int, int, int)() | BoxConstraints | — |
Equals(BoxConstraints)() | Boolean | — |
Equals(object)() | Boolean | — |
GetHashCode() | Int32 | — |
ResolveFillHeight(int, int)() | Int32 | Resolves the height of a "fill height" element: the available height minus reserved when the height is bounded, otherwise contentHeight. |
ToString() | String | — |
WithUnboundedHeight() | BoxConstraints | Returns the same constraints without an upper height limit. |
Fields
1| Name | Type | Description |
|---|---|---|
UnboundedHeight | Int32 | Sentinel MaxHeight meaning "no vertical limit", used to measure scrollable content. |