gtksource.style_scheme

Module for [StyleScheme] class

Types 3

Controls the appearance of gtksource.view.View.

#GtkSourceStyleScheme contains all the text styles to be used in gtksource.view.View and gtksource.buffer.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 scheme reference.

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

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
StyleScheme self() nothrowReturns `this`, for use in `with` statements.
StyleSchemeGidBuilder builder() static nothrowGet builder for [gtksource.style_scheme.StyleScheme] Returns: New builder object
string description() @property nothrowGet `description` property. Returns: Style scheme description, a translatable string to present to the user.
string filename() @property nothrowGet `filename` property. Returns: Style scheme filename or null.
string id() @property nothrowGet `id` property. Returns: Style scheme id, a unique string used to identify the style scheme in [gtksource.style_scheme_manager.StyleSchemeManager].
string name() @property nothrowGet `name` property. Returns: Style scheme name, a translatable string to present to the user.
string[] getAuthors() nothrow
string getDescription() nothrow
string getFilename() nothrow
string getId() nothrow
string getMetadata(string name) nothrowGets a metadata property from the style scheme.
string getName() nothrow
gtksource.style.Style getStyle(string styleId) nothrow
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gtksource.style_scheme.StyleScheme

Methods
T id(string propval) nothrowSet `id` property. Params: propval = Style scheme id, a unique string used to identify the style scheme in [gtksource.style_scheme_manager.StyleSchemeManager]. Returns: Builder instance for fluent ...
Methods
StyleScheme build() nothrowCreate object from builder. Returns: New object