GtkSourceView Reference Manual | ||||
---|---|---|---|---|
#include <gtksourceview/gtksourcetagstyle.h> GtkSourceTagStyle; enum GtkSourceTagStyleMask; #define GTK_TYPE_SOURCE_TAG_STYLE GType gtk_source_tag_style_get_type (void); GtkSourceTagStyle* gtk_source_tag_style_new (void); GtkSourceTagStyle* gtk_source_tag_style_copy (const GtkSourceTagStyle *style); void gtk_source_tag_style_free (GtkSourceTagStyle *style);
typedef struct { /* readonly */ gboolean is_default; guint mask; GdkColor foreground; GdkColor background; gboolean italic; gboolean bold; gboolean underline; gboolean strikethrough; /* Reserved for future expansion */ guint8 reserved[16]; } GtkSourceTagStyle;
typedef enum { GTK_SOURCE_TAG_STYLE_USE_BACKGROUND = 1 << 0, /*< nick=use_background >*/ GTK_SOURCE_TAG_STYLE_USE_FOREGROUND = 1 << 1 /*< nick=use_foreground >*/ } GtkSourceTagStyleMask;
GType gtk_source_tag_style_get_type (void);
Retrieves the GType object which is associated with the GtkSourceTagStyle class.
Returns : | the GType associated with GtkSourceTagStyle. |
GtkSourceTagStyle* gtk_source_tag_style_new (void);
Creates a new tag style object.
Returns : | a new GtkSourceTagStyle. |
GtkSourceTagStyle* gtk_source_tag_style_copy (const GtkSourceTagStyle *style);
Makes a copy of the given style
.
style : |
a GtkSourceTagStyle. |
Returns : | a new GtkSourceTagStyle. |
void gtk_source_tag_style_free (GtkSourceTagStyle *style);
Frees the resources allocated by the given style
.
style : |
a GtkSourceTagStyle. |