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).
public sealed class MenuSeparatorNode : Hex1bNodeInheritance
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
public bool IsFallbackFocusable { get; set; }IsFocusable
Returns true if this node can receive focus.
Returns: Boolean
public override bool IsFocusable { get; }RenderWidth
The width to render (set by parent MenuNode during layout).
Returns: Int32
public int RenderWidth { get; set; }SourceWidget
The source widget that was reconciled into this node.
Returns: MenuSeparatorWidget
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:
bindings(InputBindingsBuilder): The builder to add bindings to.
public override void ConfigureDefaultBindings(InputBindingsBuilder bindings)MeasureCore(Constraints)
Override this method to implement measuring logic for this node.
Parameters:
constraints(Constraints):
Returns: Size
protected override Size MeasureCore(Constraints constraints)Render(Hex1bRenderContext)
Renders the node to the given context.
Parameters:
context(Hex1bRenderContext):
public override void Render(Hex1bRenderContext context)