Show / Hide Table of Contents

Interface ICellSurfaceSettable

Adds a method to change the backing cells of a surface.

Namespace: SadConsole
Assembly: SadConsole.dll
Syntax
public interface ICellSurfaceSettable

Methods

SetSurface(ColoredGlyphBase[], int, int, int, int)

Changes the cells of the surface to the provided array.

Declaration
void SetSurface(ColoredGlyphBase[] cells, int width, int height, int bufferWidth, int bufferHeight)
Parameters
Type Name Description
ColoredGlyphBase[] cells

The cells to replace in this surface.

int width

The viewable width of the surface.

int height

The viewable height of the surface.

int bufferWidth

The maximum width of the surface.

int bufferHeight

The maximum height of the surface.

SetSurface(ICellSurface, Rectangle)

Remaps the cells of this surface to a view of the surface.

Declaration
void SetSurface(ICellSurface surface, Rectangle view = default)
Parameters
Type Name Description
ICellSurface surface

The target surface to map cells from.

Rectangle view

A view rectangle of the target surface.

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX