Skip to content

TabItemNode ​

Namespace: Hex1b.Nodes

Assembly: Hex1b.dll

Node representing a single tab item in a TabBar. Used internally by TabBarNode to render individual tabs.

csharp
public sealed class TabItemNode : Hex1bNode

Inheritance ​

Object → Hex1bNode → TabItemNode

Properties ​

Icon ​

Optional icon displayed before the title.

Returns: String

csharp
public string? Icon { get; set; }

IsDisabled ​

Whether this tab is disabled.

Returns: Boolean

csharp
public bool IsDisabled { get; set; }

IsSelected ​

Whether this tab is currently selected.

Returns: Boolean

csharp
public bool IsSelected { get; set; }

TabIndex ​

The index of this tab in the tab bar.

Returns: Int32

csharp
public int TabIndex { get; set; }

Title ​

The tab title text.

Returns: String

csharp
public string Title { get; set; }

Methods ​

MeasureCore(Constraints) ​

Override this method to implement measuring logic for this node.

Parameters:

Returns: Size

csharp
protected override Size MeasureCore(Constraints constraints)

Render(Hex1bRenderContext) ​

Renders the node to the given context.

Parameters:

csharp
public override void Render(Hex1bRenderContext context)

Released under the MIT License.