Validated Rendering Context
class ValidatedRenderingContext(attrs: StyleAttributes, palette: Palette) : RenderingContext
Content copied to clipboard
A ValidatedRenderingContext has complete StyleAttributes and has been successfully validated against the palette used to construct it. It is therefore ready to render itself onto StyledDocuments.
Author
Todd L Smith
Parameters
attrs
The complete StyleAttributes.
palette
The Palette, for interpreting the foreground and background colors for text rendition.
Constructors
Link copied to clipboard
Construct a ValidatedRenderingContext from the specified StyleAttributes and Palette. The context remains valid so long as the system color mode does not change.
Types
Functions
Link copied to clipboard
fun overrideWith(other: ValidatedRenderingContext): ValidatedRenderingContext
Content copied to clipboard
Link copied to clipboard
fun renderTo( document: StyledDocument, classifiers: String, range: IntRange, replace: Boolean = true)
Content copied to clipboard
Apply the receiver to the specified range of the target StyledDocument.
Properties
Link copied to clipboard
The document attributes to use when compute a style for a StyledDocument. Its attributes are sourced from attributes.