Interface IGutterRenderer
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
Defines a pluggable gutter renderer for MultilineEditControl. Multiple renderers are stacked left-to-right in the gutter area.
public interface IGutterRenderer
- Extension Methods
Methods
GetWidth(int)
Returns the width in columns that this renderer needs for the given document. Called once per paint pass; the sum of all renderer widths determines the total gutter width.
int GetWidth(int totalLineCount)
Parameters
totalLineCountintThe total number of source lines in the document.
Returns
Render(in GutterRenderContext, int)
Renders a single row of the gutter.
void Render(in GutterRenderContext context, int width)
Parameters
contextGutterRenderContextThe rendering context for this row.
widthintThe column width allocated to this renderer (from GetWidth(int)).