Skip to content

SourceSurfaceLayer

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

A layer backed by an existing .

csharp
public record SourceSurfaceLayer : SurfaceLayer, IEquatable<SurfaceLayer>, IEquatable<SourceSurfaceLayer>

Inheritance

ObjectSurfaceLayerSourceSurfaceLayer

Implements

Constructors

SourceSurfaceLayer(ISurfaceSource, int, int)

A layer backed by an existing .

Parameters:

  • Source (ISurfaceSource): The surface source providing cell data.
  • OffsetX (Int32): X offset where the source's (0,0) will be placed.
  • OffsetY (Int32): Y offset where the source's (0,0) will be placed.
csharp
public SourceSurfaceLayer(ISurfaceSource Source, int OffsetX = 0, int OffsetY = 0)

Properties

OffsetX

X offset where the source's (0,0) will be placed.

Returns: Int32

csharp
public int OffsetX { get; init; }

OffsetY

Y offset where the source's (0,0) will be placed.

Returns: Int32

csharp
public int OffsetY { get; init; }

Source

The surface source providing cell data.

Returns: ISurfaceSource

csharp
public ISurfaceSource Source { get; init; }

Remarks

Use this for static content that doesn't change between frames, or for surfaces you manage externally and update as needed.

Released under the MIT License.