Struct gtk::TextTagBuilder[][src]

pub struct TextTagBuilder { /* fields omitted */ }
Expand description

A builder-pattern type to construct TextTag objects.

Implementations

Create a new TextTagBuilder.

Build the TextTag.

Whether the margins accumulate or override each other.

When set to true the margins of this tag are added to the margins of any other non-accumulative margins present. When set to false the margins override one another (the default).

Background color as a gdk::RGBA.

Whether font fallback is enabled.

When set to true, other fonts will be substituted where the current font is missing glyphs.

Font description as string, e.g. "Sans Italic 12".

Note that the initial value of this property depends on the internals of pango::FontDescription.

OpenType font features, as a string.

Foreground color as a gdk::RGBA.

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.

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().

Extra spacing between graphemes, in Pango units.

The paragraph background color as a string.

The paragraph background color as a gdk::RGBA.

This property modifies the color of strikeouts. If not set, strikeouts will use the forground color.

If the property::TextTag::strikethrough-rgba property has been set.

This property modifies the color of underlines. If not set, underlines will use the forground 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 property::TextTag::underline-rgba property has been set.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.