StyleSchemeManager#
Superclasses: Object
Provides access to StyleSchemes.
Constructors#
- class StyleSchemeManager
- classmethod new() StyleSchemeManager#
Creates a new style manager.
If you do not need more than one style manager then use
get_defaultinstead.
Methods#
- class StyleSchemeManager
- append_search_path(path: str) None#
Appends
pathto the list of directories where themanagerlooks for style scheme files.See
set_search_pathfor details.- Parameters:
path – a directory or a filename.
- 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
manageris accessed.
- classmethod get_default() StyleSchemeManager#
Returns the default
StyleSchemeManagerinstance.
- get_scheme(scheme_id: str) StyleScheme | None#
Looks up style scheme by id.
- Parameters:
scheme_id – style scheme id to find.
- get_search_path() list[str]#
Returns the current search path for the
manager.See
set_search_pathfor details.
- prepend_search_path(path: str) None#
Prepends
pathto the list of directories where themanagerlooks for style scheme files.See
set_search_pathfor details.- Parameters:
path – a directory or a filename.
- set_search_path(path: list[str] | None = None) None#
Sets the list of directories where the
managerlooks for style scheme files.If
pathisNone, the search path is reset to default.Since GtkSourceView 5.16 this function will allow you to provide paths in the form of “resource:///” URIs to embedded
GResources. They must contain the path of a directory within theGResource.- Parameters:
path – a
None-terminated array of strings orNone.