StyleScheme

open class StyleScheme(pointer: <Error class: unknown class><<Error class: unknown class>>)

Controls the appearance of class@View.

#GtkSourceStyleScheme contains all the text styles to be used in class@View and class@Buffer. For instance, it contains text styles for syntax highlighting, it may contain foreground and background color for non-highlighted text, color for the line numbers, current line highlighting, bracket matching, etc.

Style schemes are stored in XML files. The format of a scheme file is documented in the ./style-reference.html.

The two style schemes with IDs "classic" and "tango" follow more closely the GTK theme (for example for the background color).

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val description: String?

Style scheme description, a translatable string to present to the user.

Link copied to clipboard
open val filename: String?

Style scheme filename or null.

Link copied to clipboard
val gtksourceStyleSchemePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val id: String

Style scheme id, a unique string used to identify the style scheme in class@StyleSchemeManager.

Link copied to clipboard
open val name: String

Style scheme name, a translatable string to present to the user.

Functions

Link copied to clipboard
open fun getAuthors(): List<String>?
Link copied to clipboard
open fun getDescription(): String?
Link copied to clipboard
open fun getFilename(): String?
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun getMetadata(name: String): String?

Gets a metadata property from the style scheme.

Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun getStyle(styleId: String): Style?