|  |  |  | GtkSourceView 2 Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
| GtkSourceStyleSchemeGtkSourceStyleScheme — Object controlling apperance of GtkSourceView | 
#include <gtksourceview/gtksourcestylescheme.h>
                    GtkSourceStyleScheme;
const gchar *       gtk_source_style_scheme_get_id      (GtkSourceStyleScheme *scheme);
const gchar *       gtk_source_style_scheme_get_name    (GtkSourceStyleScheme *scheme);
const gchar *       gtk_source_style_scheme_get_description
                                                        (GtkSourceStyleScheme *scheme);
const gchar * const * gtk_source_style_scheme_get_authors
                                                        (GtkSourceStyleScheme *scheme);
const gchar *       gtk_source_style_scheme_get_filename
                                                        (GtkSourceStyleScheme *scheme);
GtkSourceStyle *    gtk_source_style_scheme_get_style   (GtkSourceStyleScheme *scheme,
                                                         const gchar *style_id);
"description" gchar* : Read "filename" gchar* : Read "id" gchar* : Read / Write / Construct Only "name" gchar* : 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);
| 
 | a GtkSourceStyleScheme. | 
| Returns : | schemeid. | 
Since 2.0
const gchar *       gtk_source_style_scheme_get_name    (GtkSourceStyleScheme *scheme);
| 
 | a GtkSourceStyleScheme. | 
| Returns : | schemename. | 
Since 2.0
const gchar *       gtk_source_style_scheme_get_description
                                                        (GtkSourceStyleScheme *scheme);
| 
 | a GtkSourceStyleScheme. | 
| Returns : | schemedescription (if defined) or NULL. | 
Since 2.0
const gchar * const * gtk_source_style_scheme_get_authors
                                                        (GtkSourceStyleScheme *scheme);
| 
 | a GtkSourceStyleScheme. | 
| Returns : | a NULL-terminated array containing theschemeauthors orNULLif no author is specified by the style
scheme. | 
Since 2.0
const gchar *       gtk_source_style_scheme_get_filename
                                                        (GtkSourceStyleScheme *scheme);
| 
 | a GtkSourceStyleScheme. | 
| Returns : | schemefile 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);
| 
 | a GtkSourceStyleScheme. | 
| 
 | id of the style to retrieve. | 
| Returns : | style which corresponds to style_idin thescheme,
orNULLwhen no style with this name found. It is owned byschemeand may not be unref'ed. | 
Since 2.0
"description" property"description" gchar* : Read
Style scheme description.
Default value: NULL
"id" property"id" gchar* : Read / Write / Construct Only
Style scheme id, a unique string used to identify the style scheme in GtkSourceStyleSchemeManager.
Default value: NULL
"name" property"name" gchar* : Read
Style scheme name, a translatable string to present to user.
Default value: NULL