![]() |
![]() |
![]() |
GtkSourceView Reference Manual | ![]() |
---|---|---|---|---|
#include <gtksourceview/gtksourcestyle.h> GtkSourceStyle; GtkSourceStyle* gtk_source_style_new (void); GtkSourceStyle* gtk_source_style_copy (const GtkSourceStyle *style);
"background" gchararray : Read / Write "background-set" gboolean : Read / Write "bold" gboolean : Read / Write "bold-set" gboolean : Read / Write "foreground" gchararray : Read / Write "foreground-set" gboolean : Read / Write "italic" gboolean : Read / Write "italic-set" gboolean : Read / Write "strikethrough" gboolean : Read / Write "strikethrough-set" gboolean : Read / Write "underline" gboolean : Read / Write "underline-set" gboolean : Read / Write
typedef struct _GtkSourceStyle GtkSourceStyle;
The GtkSourceStyle structure is used to describe text attributes which are set when given style is used.
GtkSourceStyle* gtk_source_style_new (void);
Creates new GtkSourceStyle structure.
Example 1. Using gtk_source_style_new
GtkSourceStyle *style; style = gtk_source_style_new (); g_object_set (style, "bold", TRUE, "foreground", "green", NULL); ... g_object_unref (style);
Returns : | newly allocated GtkSourceStyle structure, call g_object_unref()
when you are done with it.
|
Since 2.0
GtkSourceStyle* gtk_source_style_copy (const GtkSourceStyle *style);
Creates a copy of style
, that is a new GtkSourceStyle instance which
has the same attributes set.
style : |
a GtkSourceStyle structure to copy. |
Returns : | copy of style , call g_object_unref() when you are done with it.
|
Since 2.0
background
" property"background" gchararray : Read / Write
Background color.
Default value: NULL
background-set
" property"background-set" gboolean : Read / Write
Whether background color is set.
Default value: FALSE
bold-set
" property"bold-set" gboolean : Read / Write
Whether bold attribute is set.
Default value: FALSE
foreground
" property"foreground" gchararray : Read / Write
Foreground color.
Default value: NULL
foreground-set
" property"foreground-set" gboolean : Read / Write
Whether foreground color is set.
Default value: FALSE
italic-set
" property"italic-set" gboolean : Read / Write
Whether italic attribute is set.
Default value: FALSE
strikethrough
" property"strikethrough" gboolean : Read / Write
Strikethrough.
Default value: FALSE
strikethrough-set
" property"strikethrough-set" gboolean : Read / Write
Whether strikethrough attribute is set.
Default value: FALSE