StatePanelNode
Namespace: Hex1b.Nodes
Assembly: Hex1b.dll
A layout-invisible identity anchor node. Uses a state object's reference identity as its lookup key, enabling identity-based reconciliation instead of positional. Layout, arrangement, rendering, and focus are all passed through to the single child.
public sealed class StatePanelNode : Hex1bNodeInheritance
Object → Hex1bNode → StatePanelNode
Properties
Child
The single child node.
Returns: Hex1bNode
public Hex1bNode? Child { get; set; }StateKey
The state object whose reference identity anchors this node.
Returns: Object
public object StateKey { 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:
rect(Rect):
protected override void ArrangeCore(Rect rect)GetChildren()
Gets the direct children of this node for structural tree traversal. Container nodes should override this to return their children.
Returns: IReadOnlyList<Hex1bNode>
public override IReadOnlyList<Hex1bNode> GetChildren()GetFocusableNodes()
Gets all focusable nodes in this subtree (including this node if focusable).
Returns: IEnumerable<Hex1bNode>
public override IEnumerable<Hex1bNode> GetFocusableNodes()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)Remarks
StatePanelNode provides generic state storage via . Subsystems (e.g. animation) layer on top by storing their own state objects, without StatePanelNode knowing about them directly.