Skip to content

NavigatorNode ​

Namespace: Hex1b.Nodes

Assembly: Hex1b.dll

Node that renders the current screen from a NavigatorState. The navigator delegates all rendering and input to the current child.

csharp
[Experimental("HEX1B001")]
public sealed class NavigatorNode : Hex1bNode

Inheritance ​

Object → Hex1bNode → NavigatorNode

Properties ​

CurrentChild ​

The currently rendered child node (from the current route).

Returns: Hex1bNode

csharp
public Hex1bNode? CurrentChild { get; set; }

CurrentRouteId ​

Tracks the current route ID to detect navigation changes.

Returns: String

csharp
public string? CurrentRouteId { get; set; }

IsFocusable ​

Returns true if this node can receive focus.

Returns: Boolean

csharp
public override bool IsFocusable { get; }

State ​

The navigation state that manages the route stack.

Returns: NavigatorState

csharp
public NavigatorState State { get; set; }

Methods ​

ArrangeCore(Rect) ​

Override this method to implement arranging logic for this node. The base implementation saves previous bounds, marks dirty on change, and sets bounds.

Parameters:

csharp
protected override void ArrangeCore(Rect bounds)

GetChildren() ​

Gets the direct children of this container for input routing.

Returns: IEnumerable<Hex1bNode>

csharp
public override IEnumerable<Hex1bNode> GetChildren()

GetFocusableNodes() ​

Gets all focusable nodes in this subtree (including this node if focusable).

Returns: IEnumerable<Hex1bNode>

csharp
public override IEnumerable<Hex1bNode> GetFocusableNodes()

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.