Struct gtk4::TextTagBuilder [−][src]
pub struct TextTagBuilder { /* fields omitted */ }
Expand description
A builder-pattern type to construct TextTag
objects.
Implementations
Create a new TextTagBuilder
.
Whether breaks are allowed.
Background color as a string.
Whether the background color fills the entire line height or only the height of the tagged characters.
Background color as a gdk::RGBA
.
Text direction, e.g. right-to-left or left-to-right.
Whether font fallback is enabled.
When set to true
, other fonts will be substituted
where the current font is missing glyphs.
Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
Font description as string, e.g. "Sans Italic 12".
Note that the initial value of this property depends on
the internals of pango::FontDescription
.
Font description as a pango::FontDescription
.
OpenType font features, as a string.
Foreground color as a string.
Foreground color as a gdk::RGBA
.
Whether to insert hyphens at breaks.
Whether this text is hidden.
Note that there may still be problems with the support for invisible text, in particular when navigating programmatically inside a buffer containing invisible segments.
Left, right, or center justification.
The language this text is in, as an ISO code.
Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.
Note that the initial value of this property depends
on the current locale, see also default_language()
.
Width of the left margin in pixels.
Extra spacing between graphemes, in Pango units.
The name used to refer to the tag.
None
for anonymous tags.
This property modifies the color of overlines.
If not set, overlines will use the foreground color.
The paragraph background color as a string.
The paragraph background color as a gdk::RGBA
.
Pixels of blank space above paragraphs.
Pixels of blank space below paragraphs.
Pixels of blank space between wrapped lines in a paragraph.
Width of the right margin, in pixels.
Offset of text above the baseline, in Pango units.
Negative values go below the baseline.
Font size as a scale factor relative to the default font size.
This properly adapts to theme changes, etc. so is recommended.
Pango predefines some scales such as PANGO_SCALE_X_LARGE
.
How to render invisible characters.
Font size in points.
Font stretch as a pango::Stretch
, e.g. pango::Stretch::Condensed
.
Whether to strike through the text.
This property modifies the color of strikeouts.
If not set, strikeouts will use the foreground color.
If the strikethrough-rgba
property has been set.
Font style as a pango::Style
, e.g. pango::Style::Italic
.
This property modifies the color of underlines.
If not set, underlines will use the foreground color.
If property::TextTag::underline
is set to pango::Underline::Error
,
an alternate color may be applied instead of the foreground. Setting
this property will always override those defaults.
If the underline-rgba
property has been set.
Font variant as a pango::Variant
, e.g. pango::Variant::SmallCaps
.
Whether to wrap lines never, at word boundaries, or at character boundaries.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for TextTagBuilder
impl !Send for TextTagBuilder
impl !Sync for TextTagBuilder
impl Unpin for TextTagBuilder
impl UnwindSafe for TextTagBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more