Struct gtk::builders::TextTagBuilder
source · [−]pub struct TextTagBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct TextTag
objects.
Implementations
sourceimpl TextTagBuilder
impl TextTagBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new TextTagBuilder
.
sourcepub fn accumulative_margin(self, accumulative_margin: bool) -> Self
pub fn accumulative_margin(self, accumulative_margin: bool) -> Self
pub fn background(self, background: &str) -> Self
pub fn background_full_height(self, background_full_height: bool) -> Self
pub fn background_full_height_set(self, background_full_height_set: bool) -> Self
sourcepub fn background_rgba(self, background_rgba: &RGBA) -> Self
pub fn background_rgba(self, background_rgba: &RGBA) -> Self
Background color as a gdk::RGBA
.
pub fn background_set(self, background_set: bool) -> Self
pub fn direction(self, direction: TextDirection) -> Self
pub fn editable(self, editable: bool) -> Self
pub fn editable_set(self, editable_set: bool) -> Self
sourcepub fn fallback(self, fallback: bool) -> Self
pub fn fallback(self, fallback: bool) -> Self
Whether font fallback is enabled.
When set to true
, other fonts will be substituted
where the current font is missing glyphs.
pub fn fallback_set(self, fallback_set: bool) -> Self
pub fn family(self, family: &str) -> Self
pub fn family_set(self, family_set: bool) -> Self
sourcepub fn font(self, font: &str) -> Self
pub fn font(self, font: &str) -> Self
Font description as string, e.g. "Sans Italic 12".
Note that the initial value of this property depends on
the internals of pango::FontDescription
.
pub fn font_desc(self, font_desc: &FontDescription) -> Self
sourcepub fn font_features(self, font_features: &str) -> Self
pub fn font_features(self, font_features: &str) -> Self
OpenType font features, as a string.
pub fn font_features_set(self, font_features_set: bool) -> Self
pub fn foreground(self, foreground: &str) -> Self
sourcepub fn foreground_rgba(self, foreground_rgba: &RGBA) -> Self
pub fn foreground_rgba(self, foreground_rgba: &RGBA) -> Self
Foreground color as a gdk::RGBA
.
pub fn foreground_set(self, foreground_set: bool) -> Self
pub fn indent(self, indent: i32) -> Self
pub fn indent_set(self, indent_set: bool) -> Self
sourcepub fn invisible(self, invisible: bool) -> Self
pub fn invisible(self, invisible: bool) -> Self
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.
pub fn invisible_set(self, invisible_set: bool) -> Self
pub fn justification(self, justification: Justification) -> Self
pub fn justification_set(self, justification_set: bool) -> Self
sourcepub fn language(self, language: &str) -> Self
pub fn language(self, language: &str) -> Self
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()
.
pub fn language_set(self, language_set: bool) -> Self
pub fn left_margin(self, left_margin: i32) -> Self
pub fn left_margin_set(self, left_margin_set: bool) -> Self
sourcepub fn letter_spacing(self, letter_spacing: i32) -> Self
pub fn letter_spacing(self, letter_spacing: i32) -> Self
Extra spacing between graphemes, in Pango units.
pub fn letter_spacing_set(self, letter_spacing_set: bool) -> Self
pub fn name(self, name: &str) -> Self
sourcepub fn paragraph_background(self, paragraph_background: &str) -> Self
pub fn paragraph_background(self, paragraph_background: &str) -> Self
The paragraph background color as a string.
sourcepub fn paragraph_background_rgba(self, paragraph_background_rgba: &RGBA) -> Self
pub fn paragraph_background_rgba(self, paragraph_background_rgba: &RGBA) -> Self
The paragraph background color as a gdk::RGBA
.
pub fn paragraph_background_set(self, paragraph_background_set: bool) -> Self
pub fn pixels_above_lines(self, pixels_above_lines: i32) -> Self
pub fn pixels_above_lines_set(self, pixels_above_lines_set: bool) -> Self
pub fn pixels_below_lines(self, pixels_below_lines: i32) -> Self
pub fn pixels_below_lines_set(self, pixels_below_lines_set: bool) -> Self
pub fn pixels_inside_wrap(self, pixels_inside_wrap: i32) -> Self
pub fn pixels_inside_wrap_set(self, pixels_inside_wrap_set: bool) -> Self
pub fn right_margin(self, right_margin: i32) -> Self
pub fn right_margin_set(self, right_margin_set: bool) -> Self
pub fn rise(self, rise: i32) -> Self
pub fn rise_set(self, rise_set: bool) -> Self
pub fn scale(self, scale: f64) -> Self
pub fn scale_set(self, scale_set: bool) -> Self
pub fn size(self, size: i32) -> Self
pub fn size_points(self, size_points: f64) -> Self
pub fn size_set(self, size_set: bool) -> Self
pub fn stretch(self, stretch: Stretch) -> Self
pub fn stretch_set(self, stretch_set: bool) -> Self
pub fn strikethrough(self, strikethrough: bool) -> Self
sourcepub fn strikethrough_rgba(self, strikethrough_rgba: &RGBA) -> Self
pub fn strikethrough_rgba(self, strikethrough_rgba: &RGBA) -> Self
This property modifies the color of strikeouts. If not set, strikeouts will use the forground color.
sourcepub fn strikethrough_rgba_set(self, strikethrough_rgba_set: bool) -> Self
pub fn strikethrough_rgba_set(self, strikethrough_rgba_set: bool) -> Self
If the property::TextTag::strikethrough-rgba
property has been set.
pub fn strikethrough_set(self, strikethrough_set: bool) -> Self
pub fn style(self, style: Style) -> Self
pub fn style_set(self, style_set: bool) -> Self
pub fn tabs(self, tabs: &TabArray) -> Self
pub fn tabs_set(self, tabs_set: bool) -> Self
pub fn underline(self, underline: Underline) -> Self
sourcepub fn underline_rgba(self, underline_rgba: &RGBA) -> Self
pub fn underline_rgba(self, underline_rgba: &RGBA) -> Self
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.
sourcepub fn underline_rgba_set(self, underline_rgba_set: bool) -> Self
pub fn underline_rgba_set(self, underline_rgba_set: bool) -> Self
If the property::TextTag::underline-rgba
property has been set.
pub fn underline_set(self, underline_set: bool) -> Self
pub fn variant(self, variant: Variant) -> Self
pub fn variant_set(self, variant_set: bool) -> Self
pub fn weight(self, weight: i32) -> Self
pub fn weight_set(self, weight_set: bool) -> Self
pub fn wrap_mode(self, wrap_mode: WrapMode) -> Self
pub fn wrap_mode_set(self, wrap_mode_set: bool) -> Self
Trait Implementations
sourceimpl Clone for TextTagBuilder
impl Clone for TextTagBuilder
sourcefn clone(&self) -> TextTagBuilder
fn clone(&self) -> TextTagBuilder
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more