GtkSource.StyleSchemeManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
[ |
r |
List of the ids of the available style schemes |
|
[ |
r/w |
List of directories and files where the style schemes are located |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GtkSource.StyleSchemeManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_default()¶
- Returns:
a
GtkSource.StyleSchemeManager
. Return value is owned byGtkSource.View
library and must not be unref’ed.- Return type:
Returns the default
GtkSource.StyleSchemeManager
instance.
- classmethod new()¶
- Returns:
a new
GtkSource.StyleSchemeManager
.- Return type:
Creates a new style manager. If you do not need more than one style manager then use
GtkSource.StyleSchemeManager.get_default
() instead.
- append_search_path(path)¶
- Parameters:
path (
str
) – a directory or a filename.
Appends path to the list of directories where the self looks for style scheme files. See
GtkSource.StyleSchemeManager.set_search_path
() for details.
- force_rescan()¶
Mark any currently cached information about the available style scehems as invalid. All the available style schemes will be reloaded next time the self is accessed.
- get_scheme(scheme_id)¶
- Parameters:
scheme_id (
str
) – style scheme id to find.- Returns:
a
GtkSource.StyleScheme
object. Returned value is owned by self and must not be unref’ed.- Return type:
Looks up style scheme by id.
- get_scheme_ids()¶
- Returns:
a
None
-terminated array of strings containing the ids of the available style schemes orNone
if no style scheme is available. The array is sorted alphabetically according to the scheme name. The array is owned by the self and must not be modified.- Return type:
Returns the ids of the available style schemes.
- get_search_path()¶
- Returns:
a
None
-terminated array of string containing the search path. The array is owned by the self and must not be modified.- Return type:
[
str
]
Returns the current search path for the self. See
GtkSource.StyleSchemeManager.set_search_path
() for details.
- prepend_search_path(path)¶
- Parameters:
path (
str
) – a directory or a filename.
Prepends path to the list of directories where the self looks for style scheme files. See
GtkSource.StyleSchemeManager.set_search_path
() for details.
Property Details¶
- GtkSource.StyleSchemeManager.props.scheme_ids¶
-
List of the ids of the available style schemes