Skip to content

MenuSeparatorNode ​

Namespace: Hex1b

Assembly: Hex1b.dll

Render node for MenuSeparatorWidget. Normally non-focusable visual divider, but can accept focus as a fallback when there are no other focusable items in the menu (to allow navigation out).

csharp
public sealed class MenuSeparatorNode : Hex1bNode

Inheritance ​

Object → Hex1bNode → MenuSeparatorNode

Properties ​

IsFallbackFocusable ​

When true, this separator acts as a fallback focus target to allow navigation out of a menu that has no other focusable items.

Returns: Boolean

csharp
public bool IsFallbackFocusable { get; set; }

IsFocusable ​

Returns true if this node can receive focus.

Returns: Boolean

csharp
public override bool IsFocusable { get; }

RenderWidth ​

The width to render (set by parent MenuNode during layout).

Returns: Int32

csharp
public int RenderWidth { get; set; }

SourceWidget ​

The source widget that was reconciled into this node.

Returns: MenuSeparatorWidget

csharp
public MenuSeparatorWidget? SourceWidget { get; set; }

Methods ​

ConfigureDefaultBindings(InputBindingsBuilder) ​

Configures the default input bindings for this node type. Override in derived classes to add default key bindings. These bindings can be inspected and modified by the user's callback.

Parameters:

csharp
public override void ConfigureDefaultBindings(InputBindingsBuilder bindings)

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.