EffectPanelNode
Namespace: Hex1b.Nodes
Assembly: Hex1b.dll
A single-child container node that intercepts rendering to apply visual effects. Layout, arrangement, and focus are passed through to the child unchanged. During rendering, the child's output is captured to a temporary , the effect callback modifies it, then the result is composited to the parent.
public sealed class EffectPanelNode : Hex1bNodeInheritance
Object → Hex1bNode → EffectPanelNode
Properties
Child
Gets or sets the child node to render.
Returns: Hex1bNode
public Hex1bNode? Child { get; set; }Effect
Gets or sets the effect callback that post-processes the child's rendered surface.
Returns: Action<Surface>
public Action<Surface>? Effect { 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)