GtkSource.Style¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Background color |
||
r/w/co |
Whether background color is set |
||
r/w/co |
Bold |
||
r/w/co |
Whether bold attribute is set |
||
r/w/co |
Foreground color |
||
r/w/co |
Whether foreground color is set |
||
r/w/co |
Italic |
||
r/w/co |
Whether italic attribute is set |
||
r/w/co |
Line background color |
||
r/w/co |
Whether line background color is set |
||
r/w/co |
Pango Underline |
||
r/w/co |
Text scale factor |
||
r/w/co |
Whether scale attribute is set |
||
r/w/co |
Strikethrough |
||
r/w/co |
Whether strikethrough attribute is set |
||
d/r/w/co |
Underline |
||
r/w/co |
Underline color |
||
r/w/co |
Whether underline color attribute is set |
||
r/w/co |
Whether underline attribute is set |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GtkSource.Style(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- apply(tag)¶
- Parameters:
tag (
Gtk.TextTag
) – aGtk.TextTag
to apply styles to.
This function modifies the
Gtk.TextTag
properties that are related to theGtkSource.Style
properties. OtherGtk.TextTag
properties are left untouched.If self is non-
None
, applies self to tag.If self is
None
, the related *-set properties ofGtk.TextTag
are set toFalse
.New in version 3.22.
- copy()¶
- Returns:
copy of self, call
GObject.Object.unref
() when you are done with it.- Return type:
Creates a copy of self, that is a new
GtkSource.Style
instance which has the same attributes set.New in version 2.0.
Property Details¶
- GtkSource.Style.props.background¶
- Name:
background
- Type:
- Default Value:
- Flags:
Background color
- GtkSource.Style.props.background_set¶
- Name:
background-set
- Type:
- Default Value:
- Flags:
Whether background color is set
- GtkSource.Style.props.bold¶
- Name:
bold
- Type:
- Default Value:
- Flags:
Bold
- GtkSource.Style.props.bold_set¶
- Name:
bold-set
- Type:
- Default Value:
- Flags:
Whether bold attribute is set
- GtkSource.Style.props.foreground¶
- Name:
foreground
- Type:
- Default Value:
- Flags:
Foreground color
- GtkSource.Style.props.foreground_set¶
- Name:
foreground-set
- Type:
- Default Value:
- Flags:
Whether foreground color is set
- GtkSource.Style.props.italic¶
- Name:
italic
- Type:
- Default Value:
- Flags:
Italic
- GtkSource.Style.props.italic_set¶
- Name:
italic-set
- Type:
- Default Value:
- Flags:
Whether italic attribute is set
- GtkSource.Style.props.line_background¶
- Name:
line-background
- Type:
- Default Value:
- Flags:
Line background color
- GtkSource.Style.props.line_background_set¶
- Name:
line-background-set
- Type:
- Default Value:
- Flags:
Whether line background color is set
- GtkSource.Style.props.pango_underline¶
- Name:
pango-underline
- Type:
- Default Value:
- Flags:
Pango Underline
- GtkSource.Style.props.scale¶
- Name:
scale
- Type:
- Default Value:
- Flags:
Text scale factor
- GtkSource.Style.props.scale_set¶
- Name:
scale-set
- Type:
- Default Value:
- Flags:
Whether scale attribute is set
- GtkSource.Style.props.strikethrough¶
- Name:
strikethrough
- Type:
- Default Value:
- Flags:
Strikethrough
- GtkSource.Style.props.strikethrough_set¶
- Name:
strikethrough-set
- Type:
- Default Value:
- Flags:
Whether strikethrough attribute is set
- GtkSource.Style.props.underline¶
- Name:
underline
- Type:
- Default Value:
- Flags:
Underline
Deprecated since version 3.18: Use pango-underline.
- GtkSource.Style.props.underline_color¶
- Name:
underline-color
- Type:
- Default Value:
- Flags:
Underline color
- GtkSource.Style.props.underline_color_set¶
- Name:
underline-color-set
- Type:
- Default Value:
- Flags:
Whether underline color attribute is set