ICellSurfaceSettable Interface
Definition
Section titled “Definition”Adds a method to change the backing cells of a surface.
public interface ICellSurfaceSettableMethods
Section titled “Methods”SetSurface(ICellSurface, Rectangle)
Section titled “SetSurface(ICellSurface, Rectangle)”Remaps the cells of this surface to a view of the surface.
void SetSurface(ICellSurface surface, Rectangle view = default)Parameters
Section titled “Parameters”surface ICellSurface
The target surface to map cells from.
view SadRogue.Primitives.Rectangle
A view rectangle of the target surface.
SetSurface(ColoredGlyphBase[], int, int, int, int)
Section titled “SetSurface(ColoredGlyphBase[], int, int, int, int)”Changes the cells of the surface to the provided array.
void SetSurface(ColoredGlyphBase[] cells, int width, int height, int bufferWidth, int bufferHeight)Parameters
Section titled “Parameters”cells ColoredGlyphBase[]
The cells to replace in this surface.
width int
The viewable width of the surface.
height int
The viewable height of the surface.
bufferWidth int
The maximum width of the surface.
bufferHeight int
The maximum height of the surface.