GtkSource.StyleData

Fields

Name

Type

Access

Description

background_color

Gdk.RGBA

r/w

Equivalent to Gtk.TextTag :background-rgba.

bold

int

r/w

For Gtk.TextTag :weight.

foreground_color

Gdk.RGBA

r/w

Equivalent to Gtk.TextTag :foreground-rgba.

italic

int

r/w

For Gtk.TextTag :style.

paragraph_background_color

Gdk.RGBA

r/w

Equivalent to Gtk.TextTag :paragraph-background-rgba.

scale

float

r/w

Equivalent to Gtk.TextTag :scale.

strikethrough

int

r/w

Equivalent to Gtk.TextTag :strikethrough.

underline

Pango.Underline

r/w

Equivalent to Gtk.TextTag :underline.

underline_color

Gdk.RGBA

r/w

Equivalent to Gtk.TextTag :underline-rgba.

use_background_color

int

r/w

Whether background_color can be taken into account.

use_bold

int

r/w

Whether bold can be taken into account.

use_foreground_color

int

r/w

Whether foreground_color can be taken into account.

use_italic

int

r/w

Whether italic can be taken into account.

use_paragraph_background_color

int

r/w

Whether paragraph_background_color can be taken into account.

use_scale

int

r/w

Whether scale can be taken into account.

use_strikethrough

int

r/w

Whether strikethrough can be taken into account.

use_underline

int

r/w

Whether underline can be taken into account.

use_underline_color

int

r/w

Whether underline_color can be taken into account.

Methods

None

Details

class GtkSource.StyleData

The data of a GtkSource.Style object.

Before using the value of a certain field, check the boolean value of the corresponding “use_” field.

New in version 300.0.