Skip to content

SixelNode ​

Namespace: Hex1b.Nodes

Assembly: Hex1b.dll

Renders Sixel graphics when the effective presentation supports them, otherwise renders a fallback node.

csharp
[Experimental("HEX1B_SIXEL", UrlFormat = "https://github.com/hex1b/hex1b/blob/main/docs/experimental/sixel.md")]
public sealed class SixelNode : Hex1bNode

Inheritance ​

Object → Hex1bNode → SixelNode

Properties ​

Fallback ​

Gets or sets the fallback node rendered when Sixel is unavailable.

Returns: Hex1bNode

csharp
public Hex1bNode? Fallback { get; set; }

ImageData ​

Gets or sets validated pre-encoded Sixel data.

Returns: String

csharp
public string ImageData { get; set; }

RequestedHeight ​

Gets or sets the requested height in terminal cells.

Returns: Nullable<Int32>

csharp
public int? RequestedHeight { get; set; }

RequestedWidth ​

Gets or sets the requested width in terminal cells.

Returns: Nullable<Int32>

csharp
public int? RequestedWidth { 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 bounds)

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)

OnTerminalCapabilitiesChanged() ​

Called when terminal capabilities change.

csharp
protected override void OnTerminalCapabilitiesChanged()

Render(Hex1bRenderContext) ​

Renders the node to the given context.

Parameters:

csharp
public override void Render(Hex1bRenderContext context)

Released under the MIT License.