IGutterProvider
Namespace: Hex1b.Documents
Assembly: Hex1b.dll
Provides a gutter column rendered to the left of the editor content area. Multiple providers can be composed — they render left-to-right in registration order.
csharp
public interface IGutterProviderMethods
GetWidth(IHex1bDocument)
Returns the width in columns this provider needs. Called during layout to compute the total gutter area.
Parameters:
document(IHex1bDocument): The document being edited.
Returns: Int32
csharp
int GetWidth(IHex1bDocument document)HandleClick(int)
Handles a click in this provider's gutter column. Returns true if the click was consumed.
Parameters:
docLine(Int32): The 1-based document line that was clicked.
Returns: Boolean
csharp
bool HandleClick(int docLine)RenderLine(Hex1bRenderContext, Hex1bTheme, int, int, int, int)
Renders the gutter content for a single visible line.
Parameters:
context(Hex1bRenderContext): The render context for writing output.theme(Hex1bTheme): The active theme.screenX(Int32): The screen X coordinate for this provider's column.screenY(Int32): The screen Y coordinate for this line.docLine(Int32): The 1-based document line number, or 0 if past end of document.width(Int32): The width allocated to this provider (from ).
csharp
void RenderLine(Hex1bRenderContext context, Hex1bTheme theme, int screenX, int screenY, int docLine, int width)