ThemePanelNode
Namespace: Hex1b.Nodes
Assembly: Hex1b.dll
A node that applies theme customizations to its child subtree. ThemePanel is not focusable - focus passes through to the child.
public sealed class ThemePanelNode : Hex1bNodeInheritance
Object → Hex1bNode → ThemePanelNode
Properties
Child
The child node to render with the customized theme.
Returns: Hex1bNode
public Hex1bNode? Child { get; set; }ThemeMutator
The function that transforms the theme for this panel's subtree. Receives the current theme and returns the theme to use for children.
Returns: Func<Hex1bTheme, Hex1bTheme>
public Func<Hex1bTheme, Hex1bTheme>? ThemeMutator { 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:
bounds(Rect):
protected override void ArrangeCore(Rect bounds)GetChildren()
Gets the direct children of this container for input routing.
Returns: IEnumerable<Hex1bNode>
public override IEnumerable<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)