Class: GtkSource::StyleScheme

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#authorsArray<String>

nil-terminated array containing the scheme authors or nil if no author is specified by the style scheme.

Returns:

  • (Array<String>)

    a

#descriptionString

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

Returns:

  • (String)

    description

#description=(description) ⇒ String

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

Parameters:

  • description (String)

Returns:

  • (String)

    description

  • (String)

    description

#filenameString

Style scheme filename or nil.

Returns:

  • (String)

    filename

#filename=(filename) ⇒ String

Style scheme filename or nil.

Parameters:

  • filename (String)

Returns:

  • (String)

    filename

  • (String)

    filename

#get_metadata(name) ⇒ String

Gets a metadata property from the style scheme.

Parameters:

  • name (String)

    metadata property name.

Returns:

  • (String)

    value of property name stored in the metadata of scheme or nil if scheme does not contain the specified metadata property.

#get_style(style_id) ⇒ GtkSource::Style

the scheme, or nil when no style with this name found. It is owned by scheme and may not be unref'ed.

Parameters:

  • style_id (String)

    id of the style to retrieve.

Returns:

#idString

Style scheme id, a unique string used to identify the style scheme in [classStyleSchemeManager].

Returns:

  • (String)

    id

#id=(id) ⇒ String

Style scheme id, a unique string used to identify the style scheme in [classStyleSchemeManager].

Parameters:

  • id (String)

Returns:

  • (String)

    id

  • (String)

    id

#nameString

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

Returns:

  • (String)

    name

#name=(name) ⇒ String

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

Parameters:

  • name (String)

Returns:

  • (String)

    name

  • (String)

    name