GtkSourceView Reference Manual | ||||
---|---|---|---|---|
#include <gtksourceview/gtksourcestylescheme.h> GtkSourceStyleScheme; GtkSourceStyleSchemeClass; GtkSourceTagStyle* gtk_source_style_scheme_get_tag_style (GtkSourceStyleScheme *scheme, const gchar *style_name); const gchar* gtk_source_style_scheme_get_name (GtkSourceStyleScheme *scheme); GtkSourceStyleScheme* gtk_source_style_scheme_get_default (void);
typedef struct { GTypeInterface base_iface; /* signals */ void (* style_changed) (GtkSourceStyleScheme *scheme, const gchar *tag_id); /* vtable */ const gchar * (* get_name) (GtkSourceStyleScheme *scheme); GtkSourceTagStyle * (* get_tag_style) (GtkSourceStyleScheme *scheme, const gchar *style_name); GSList * (* get_style_names) (GtkSourceStyleScheme *scheme); /* Padding for future expansion */ void (*_gtk_source_reserved1) (void); void (*_gtk_source_reserved2) (void); void (*_gtk_source_reserved3) (void); void (*_gtk_source_reserved4) (void); } GtkSourceStyleSchemeClass;
GtkSourceTagStyle* gtk_source_style_scheme_get_tag_style (GtkSourceStyleScheme *scheme, const gchar *style_name);
Gets the tag associated with the given style_name
in the style scheme
.
scheme : |
a GtkSourceStyleScheme. |
style_name : |
the name of a style. |
Returns : | a GtkSourceTagStyle. |
const gchar* gtk_source_style_scheme_get_name (GtkSourceStyleScheme *scheme);
Gets the name of the given style scheme
.
scheme : |
a GtkSourceStyleScheme. |
Returns : | the name of the style scheme. |
GtkSourceStyleScheme* gtk_source_style_scheme_get_default (void);
Gets the default style scheme.
Returns : | a GtkSourceStyleScheme. |