Skip to content

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.

csharp
public sealed class EffectPanelNode : Hex1bNode

Inheritance ​

Object → Hex1bNode → EffectPanelNode

Properties ​

Child ​

Gets or sets the child node to render.

Returns: Hex1bNode

csharp
public Hex1bNode? Child { get; set; }

Effect ​

Gets or sets the effect callback that post-processes the child's rendered surface.

Returns: Action<Surface>

csharp
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:

csharp
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>

csharp
public override IReadOnlyList<Hex1bNode> GetChildren()

GetFocusableNodes() ​

Gets all focusable nodes in this subtree (including this node if focusable).

Returns: IEnumerable<Hex1bNode>

csharp
public override IEnumerable<Hex1bNode> GetFocusableNodes()

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.