Skip to content

ICellSurface Interface

An array of ColoredGlyphBase objects used to represent a 2D surface.

C#
public interface ICellSurface : IGridView<ColoredGlyphBase>, IEnumerable<ColoredGlyphBase>, IEnumerable, ISurface

A variable that tracks how many times this editor shifted the surface down.

C#
int TimesShiftedDown { get; set; }

A variable that tracks how many times this editor shifted the surface right.

C#
int TimesShiftedRight { get; set; }

A variable that tracks how many times this editor shifted the surface left.

C#
int TimesShiftedLeft { get; set; }

A variable that tracks how many times this editor shifted the surface up.

C#
int TimesShiftedUp { get; set; }

When true, the Parser is used to generate a ColoredString before printing.

C#
bool UsePrintProcessor { get; set; }

Processes the effects added to cells with CellSurfaceEditor.SetEffect*.

C#
EffectsManager Effects { get; }

Returns a rectangle that represents the entire size of the surface.

C#
Rectangle Area { get; }

The default background for glyphs on this surface.

C#
Color DefaultBackground { get; set; }

The default foreground for glyphs on this surface.

C#
Color DefaultForeground { get; set; }

The default glyph used in clearing and erasing.

C#
int DefaultGlyph { get; set; }

Indicates the surface has changed and needs to be rendered.

C#
bool IsDirty { get; set; }

Returns true when the View width or height is different from Area; otherwise false.

C#
bool IsScrollable { get; }

The visible portion of the surface.

C#
Rectangle View { get; set; }

Gets or sets the visible height of the surface in cells.

C#
int ViewHeight { get; set; }

The position of the view within the buffer.

C#
Point ViewPosition { get; set; }

Gets or sets the visible width of the surface in cells.

C#
int ViewWidth { get; set; }

Glyph indexes for a thin line.

C#
public static int[] ConnectedLineThin { get; }

Glyph indexes for a thick line.

C#
public static int[] ConnectedLineThick { get; }

Glyph indexes for a block box that looks 3d.

C#
public static int[] Connected3dBox { get; }

Glyph indexes for a thin line using a SadConsole extended font.

C#
public static int[] ConnectedLineThinExtended { get; }

Glyph indexes for an empty line 0.

C#
public static int[] ConnectedLineEmpty { get; }

Creates an array of glyphs that can be used as a connected line.

C#
public static int[] CreateLine(int singleGlyph)

singleGlyph int
The glyph to use for the connected line array.

int[]
An array of glyphs.

Returns a value that indicates a line style array is not null and contains the required number of elements.

C#
public static bool ValidateLineStyle<T>(in T[] connectedLineStyle)

connectedLineStyle T[]
The array to check based on the ICellSurface.ConnectedLineIndex enum.

bool
True when the line style is correct.

An event that is raised when IsDirty changes.

C#
event EventHandler IsDirtyChanged

EventHandler