| GtkSourceView 2 Reference Manual | ||||
|---|---|---|---|---|
#include <gtksourceview/gtksourcestyle.h>
GtkSourceStyle;
GtkSourceStyle* gtk_source_style_copy (const GtkSourceStyle *style);
"background"gchararray : Read / Write / Construct Only "background-set"gboolean : Read / Write / Construct Only "bold"gboolean : Read / Write / Construct Only "bold-set"gboolean : Read / Write / Construct Only "foreground"gchararray : Read / Write / Construct Only "foreground-set"gboolean : Read / Write / Construct Only "italic"gboolean : Read / Write / Construct Only "italic-set"gboolean : Read / Write / Construct Only "line-background"gchararray : Read / Write / Construct Only "line-background-set"gboolean : Read / Write / Construct Only "strikethrough"gboolean : Read / Write / Construct Only "strikethrough-set"gboolean : Read / Write / Construct Only "underline"gboolean : Read / Write / Construct Only "underline-set"gboolean : Read / Write / Construct Only
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_copy (const GtkSourceStyle *style);
Creates a copy of style, that is a new GtkSourceStyle instance which
has the same attributes set.
|
a GtkSourceStyle structure to copy. |
Returns : |
copy of style, call g_object_unref() |
Since 2.0
background" property"background"gchararray : Read / Write / Construct Only
Background color.
Default value: NULL
background-set" property"background-set"gboolean : Read / Write / Construct Only
Whether background color is set.
Default value: FALSE
bold-set" property"bold-set"gboolean : Read / Write / Construct Only
Whether bold attribute is set.
Default value: FALSE
foreground" property"foreground"gchararray : Read / Write / Construct Only
Foreground color.
Default value: NULL
foreground-set" property"foreground-set"gboolean : Read / Write / Construct Only
Whether foreground color is set.
Default value: FALSE
italic" property"italic"gboolean : Read / Write / Construct Only
Italic.
Default value: FALSE
italic-set" property"italic-set"gboolean : Read / Write / Construct Only
Whether italic attribute is set.
Default value: FALSE
line-background" property"line-background"gchararray : Read / Write / Construct Only
Line background color.
Default value: NULL
line-background-set" property"line-background-set"gboolean : Read / Write / Construct Only
Whether line background color is set.
Default value: FALSE
strikethrough" property"strikethrough"gboolean : Read / Write / Construct Only
Strikethrough.
Default value: FALSE
strikethrough-set" property"strikethrough-set"gboolean : Read / Write / Construct Only
Whether strikethrough attribute is set.
Default value: FALSE
underline" property"underline"gboolean : Read / Write / Construct Only
Underline.
Default value: FALSE