Style
-
class Style(**properties: Any)
Superclasses: Object
Represents a style.
The GtkSourceStyle
structure is used to describe text attributes
which are set when given style is used.
Methods
-
class Style
-
apply(tag: TextTag) → None
This function modifies the TextTag
properties that are related to the
Style
properties. Other TextTag
properties are left untouched.
If style
is non-None
, applies style
to tag
.
If style
is None
, the related *-set properties of TextTag
are set to
False
.
- Parameters:
tag – a TextTag
to apply styles to.
Properties
-
class Style
-
props.background: str
The type of the None singleton.
-
props.background_set: bool
The type of the None singleton.
-
props.bold: bool
The type of the None singleton.
-
props.bold_set: bool
The type of the None singleton.
-
props.foreground: str
The type of the None singleton.
-
props.foreground_set: bool
The type of the None singleton.
-
props.italic: bool
The type of the None singleton.
-
props.italic_set: bool
The type of the None singleton.
-
props.line_background: str
The type of the None singleton.
-
props.line_background_set: bool
The type of the None singleton.
-
props.pango_underline: Underline
The type of the None singleton.
-
props.scale: str
The type of the None singleton.
-
props.scale_set: bool
The type of the None singleton.
-
props.strikethrough: bool
The type of the None singleton.
-
props.strikethrough_set: bool
The type of the None singleton.
-
props.underline_color: str
The type of the None singleton.
-
props.underline_color_set: bool
The type of the None singleton.
-
props.underline_set: bool
The type of the None singleton.
-
props.weight: Weight
The type of the None singleton.
-
props.weight_set: bool
The type of the None singleton.