GutterConfig

data class GutterConfig(val type: GutterType? = null, val lineMarker: (EditorSession, Int) -> GutterMarker?? = null, val lineMarkerChange: (ViewUpdate) -> Boolean? = null, val lineMarkerClick: (EditorSession, Int) -> Boolean? = null, val renderEmptyElements: Boolean = false, val initialSpacer: (EditorSession) -> GutterMarker? = null, val updateSpacer: (GutterMarker, ViewUpdate) -> GutterMarker? = null)

Configuration for a gutter column.

Constructors

Link copied to clipboard
constructor(type: GutterType? = null, lineMarker: (EditorSession, Int) -> GutterMarker?? = null, lineMarkerChange: (ViewUpdate) -> Boolean? = null, lineMarkerClick: (EditorSession, Int) -> Boolean? = null, renderEmptyElements: Boolean = false, initialSpacer: (EditorSession) -> GutterMarker? = null, updateSpacer: (GutterMarker, ViewUpdate) -> GutterMarker? = null)

Properties

Link copied to clipboard

Initial marker for the gutter (shown before any lines).

Link copied to clipboard

Called for each visible line to get the marker, or null.

Link copied to clipboard

Returns true when the gutter markers need to be recalculated.

Link copied to clipboard

Called when the gutter is clicked for a given line. Receives the session and the line-start position. Returns true if the click was handled.

Link copied to clipboard

Padding on the right of gutter content.

Link copied to clipboard

Identifies this gutter column's type.

Link copied to clipboard

Marker shown when the gutter is active (cursor on line).