Skip to content

Hex1bWidget

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

csharp
public abstract record Hex1bWidget : IEquatable<Hex1bWidget>

Inheritance

ObjectHex1bWidget

Implements

Properties

HeightHint

Hint for how this widget should be sized vertically within its parent. Used by VStack to distribute height among children.

Returns: Nullable<SizeHint>

csharp
public SizeHint? HeightHint { get; init; }

MetricName

A user-assigned name for this widget used as a tag value in per-node metrics. When per-node metrics are enabled, this name becomes a segment in the hierarchical metric path (e.g., root.sidebar.orders). If null, an auto-generated name based on the node type and child index is used (e.g., VStack[0]).

Returns: String

csharp
public string? MetricName { get; init; }

RedrawDelay

Delay after which this widget requests a redraw.

Returns: Nullable<TimeSpan>

csharp
public TimeSpan? RedrawDelay { get; init; }

WidthHint

Hint for how this widget should be sized horizontally within its parent. Used by HStack to distribute width among children.

Returns: Nullable<SizeHint>

csharp
public SizeHint? WidthHint { get; init; }

Released under the MIT License.