DiagnosticStyle
data class DiagnosticStyle(val message: String, val fixes: List<DiagnosticFix>, val color: Color, val severity: DiagnosticSeverity = DiagnosticSeverity.Error, val layer: DecorationLayer = DiagnosticsLayer) : DecorationStyle(source)
The underline of one diagnostic, on layer. It carries the diagnostic's message and fixes itself, so they move with the span as the text around it is edited. By default it is on the layer a TextDiagnosticsState reads, replaces and clears as its own; one on a layer of its own is left to that layer's owner.
Constructors
Link copied to clipboard
constructor(message: String, fixes: List<DiagnosticFix>, color: Color, severity: DiagnosticSeverity = DiagnosticSeverity.Error, layer: DecorationLayer = DiagnosticsLayer)
Properties
Functions
Link copied to clipboard
open fun DrawScope.drawBackground(layoutResult: TextLayoutResult, lineWrap: LineWrap, textRange: TextRange, state: TextEditorState)
Link copied to clipboard
open override fun DrawScope.drawCustomStyle(layoutResult: TextLayoutResult, lineWrap: LineWrap, textRange: TextRange, state: TextEditorState)