:right-sidebar: True StyleScheme =================================================================== .. currentmodule:: gi.repository.GtkSource .. class:: StyleScheme(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: StyleScheme(**properties) Methods ------- .. rst-class:: interim-class .. class:: StyleScheme :no-index: .. method:: get_authors() -> list[str] | None .. method:: get_description() -> str | None .. method:: get_filename() -> str | None .. method:: get_id() -> str .. method:: get_metadata(name: str) -> str | None Gets a metadata property from the style scheme. .. versionadded:: 5.4 :param name: metadata property name. .. method:: get_name() -> str .. method:: get_style(style_id: str) -> ~gi.repository.GtkSource.Style | None :param style_id: id of the style to retrieve. Properties ---------- .. rst-class:: interim-class .. class:: StyleScheme :no-index: .. attribute:: props.description :type: str Style scheme description, a translatable string to present to the user. .. attribute:: props.filename :type: str Style scheme filename or :const:`None`. .. attribute:: props.id :type: str Style scheme id, a unique string used to identify the style scheme in :obj:`~gi.repository.GtkSource.StyleSchemeManager`. .. attribute:: props.name :type: str Style scheme name, a translatable string to present to the user.