:right-sidebar: True StyleSchemeManager =================================================================== .. currentmodule:: gi.repository.GtkSource .. class:: StyleSchemeManager(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Provides access to :obj:`~gi.repository.GtkSource.StyleScheme`\s. Constructors ------------ .. rst-class:: interim-class .. class:: StyleSchemeManager :no-index: .. classmethod:: new() -> ~gi.repository.GtkSource.StyleSchemeManager Creates a new style manager. If you do not need more than one style manager then use :obj:`~gi.repository.StyleSchemeManager.get_default` instead. Methods ------- .. rst-class:: interim-class .. class:: StyleSchemeManager :no-index: .. method:: append_search_path(path: str) -> None Appends ``path`` to the list of directories where the ``manager`` looks for style scheme files. See :obj:`~gi.repository.StyleSchemeManager.set_search_path` for details. :param path: a directory or a filename. .. method:: force_rescan() -> None Mark any currently cached information about the available style schems as invalid. All the available style schemes will be reloaded next time the ``manager`` is accessed. .. classmethod:: get_default() -> ~gi.repository.GtkSource.StyleSchemeManager Returns the default :obj:`~gi.repository.GtkSource.StyleSchemeManager` instance. .. method:: get_scheme(scheme_id: str) -> ~gi.repository.GtkSource.StyleScheme | None Looks up style scheme by id. :param scheme_id: style scheme id to find. .. method:: get_scheme_ids() -> list[str] | None Returns the ids of the available style schemes. .. method:: get_search_path() -> list[str] Returns the current search path for the ``manager``\. See :obj:`~gi.repository.StyleSchemeManager.set_search_path` for details. .. method:: prepend_search_path(path: str) -> None Prepends ``path`` to the list of directories where the ``manager`` looks for style scheme files. See :obj:`~gi.repository.StyleSchemeManager.set_search_path` for details. :param path: a directory or a filename. .. method:: set_search_path(path: list[str] | None = None) -> None Sets the list of directories where the ``manager`` looks for style scheme files. If ``path`` is :const:`None`, the search path is reset to default. :param path: a :const:`None`-terminated array of strings or :const:`None`. Properties ---------- .. rst-class:: interim-class .. class:: StyleSchemeManager :no-index: .. attribute:: props.scheme_ids :type: list[str] The type of the None singleton. .. attribute:: props.search_path :type: list[str] The type of the None singleton.