BoundStyle

interface BoundStyle

An abstraction of the styles used by the workbench. Represents the binding of an abstract style name to a textual style usable by a styled document.

Author

Todd L Smith

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun darkStyle(doc: StyledDocument): Style

Apply the dark-themed variant of the receiving style to the specified StyledDocument.

Link copied to clipboard
open fun getStyle(doc: StyledDocument): Style?

Answer the active style for the receiver and the specified StyledDocument.

Link copied to clipboard
abstract fun lightStyle(doc: StyledDocument): Style

Apply the light-themed variant of the receiving style to the specified StyledDocument.

Link copied to clipboard
open fun setStyle(doc: StyledDocument): Style

Apply the appropriate variant of the receiving style to the specified StyledDocument based on the active theme.

Properties

Link copied to clipboard
abstract val styleName: String

The canonical name of the style. Should begin with octothorp (#).

Inheritors

Link copied to clipboard
Link copied to clipboard