Skip to content

LoggerPanelNode ​

Namespace: Hex1b

Assembly: Hex1b.dll

Render node for LoggerPanelWidget. Manages follow state for the log table.

csharp
public sealed class LoggerPanelNode : Hex1bNode

Inheritance ​

Object → Hex1bNode → LoggerPanelNode

Properties ​

ContentChild ​

The reconciled content child node (the inner table).

Returns: Hex1bNode

csharp
public Hex1bNode? ContentChild { get; set; }

IsFocusable ​

Returns true if this node can receive focus.

Returns: Boolean

csharp
public override bool IsFocusable { get; }

IsFocused ​

Gets or sets whether this node is currently focused. Only meaningful for focusable nodes (where IsFocusable is true).

Returns: Boolean

csharp
public override bool IsFocused { get; set; }

IsFollowing ​

When true, the table auto-scrolls to the latest log entry. Defaults to true. Set to false when the user scrolls up.

Returns: Boolean

csharp
public bool IsFollowing { 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: IEnumerable<Hex1bNode>

csharp
public override IEnumerable<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.