Top | ![]() |
![]() |
![]() |
![]() |
GtkSourceStyleSchemeGtkSourceStyleScheme — Object controlling apperance of GtkSourceView |
const gchar * | gtk_source_style_scheme_get_id () |
const gchar * | gtk_source_style_scheme_get_name () |
const gchar * | gtk_source_style_scheme_get_description () |
const gchar * const * | gtk_source_style_scheme_get_authors () |
const gchar * | gtk_source_style_scheme_get_filename () |
GtkSourceStyle * | gtk_source_style_scheme_get_style () |
gchar * | description | Read |
gchar * | filename | Read |
gchar * | id | Read / Write / Construct Only |
gchar * | name | Read |
GtkSourceStyleScheme contains all the text styles to be used in GtkSourceView and GtkSourceBuffer. For instance, it contains text styles for syntax highlighting, it may contain foreground and background color for non-highlighted text, color for the line numbers, etc.
Style schemes are stored in XML files. The format of a scheme file is the documented in the
style scheme reference.const gchar *
gtk_source_style_scheme_get_id (GtkSourceStyleScheme *scheme
);
Since 2.0
const gchar *
gtk_source_style_scheme_get_name (GtkSourceStyleScheme *scheme
);
Since 2.0
const gchar *
gtk_source_style_scheme_get_description
(GtkSourceStyleScheme *scheme
);
Since 2.0
const gchar * const *
gtk_source_style_scheme_get_authors (GtkSourceStyleScheme *scheme
);
a NULL
-terminated array containing the scheme
authors or
NULL
if no author is specified by the style
scheme.
Since 2.0
const gchar *
gtk_source_style_scheme_get_filename (GtkSourceStyleScheme *scheme
);
scheme
file name if the scheme was created parsing a
style scheme file or NULL in the other cases.
Since 2.0
GtkSourceStyle * gtk_source_style_scheme_get_style (GtkSourceStyleScheme *scheme
,const gchar *style_id
);
style which corresponds to style_id
in the scheme
,
or NULL
when no style with this name found. It is owned by scheme
and may not be unref'ed.
Since 2.0
“description”
property “description” gchar *
Style scheme description.
Flags: Read
Default value: NULL
“filename”
property “filename” gchar *
Style scheme filename or NULL.
Flags: Read
Default value: NULL
“id”
property “id” gchar *
Style scheme id, a unique string used to identify the style scheme in GtkSourceStyleSchemeManager.
Flags: Read / Write / Construct Only
Default value: NULL