Skip to content

IHex1bTerminalRegion

Namespace: Hex1b.Automation

Assembly: Hex1b.dll

Common interface for terminal snapshot and snapshot regions. Provides core cell access and region extraction.

csharp
public interface IHex1bTerminalRegion

Properties

Height

The height of this region.

Returns: Int32

csharp
int Height { get; }

Width

The width of this region.

Returns: Int32

csharp
int Width { get; }

Methods

GetCell(int, int)

Gets the cell at the specified position within this region.

Parameters:

  • x (Int32): X coordinate (0 to Width-1).
  • y (Int32): Y coordinate (0 to Height-1).

Returns: TerminalCell

The terminal cell, or if out of bounds.

csharp
TerminalCell GetCell(int x, int y)

GetRegion(Rect)

Gets a sub-region with localized coordinates.

Parameters:

  • bounds (Rect): The bounds of the region to extract, relative to this region.

Returns: Hex1bTerminalSnapshotRegion

A region view that translates local coordinates.

csharp
Hex1bTerminalSnapshotRegion GetRegion(Rect bounds)

Released under the MIT License.