gtk4::prelude

Trait TextTagExt

Source
pub trait TextTagExt:
    IsA<TextTag>
    + Sealed
    + 'static {
Show 225 methods // Provided methods fn changed(&self, size_changed: bool) { ... } fn priority(&self) -> i32 { ... } fn set_priority(&self, priority: i32) { ... } fn is_accumulative_margin(&self) -> bool { ... } fn set_accumulative_margin(&self, accumulative_margin: bool) { ... } fn allows_breaks(&self) -> bool { ... } fn set_allow_breaks(&self, allow_breaks: bool) { ... } fn allows_breaks_set(&self) -> bool { ... } fn set_background(&self, background: Option<&str>) { ... } fn is_background_full_height(&self) -> bool { ... } fn set_background_full_height(&self, background_full_height: bool) { ... } fn is_background_full_height_set(&self) -> bool { ... } fn background_rgba(&self) -> Option<RGBA> { ... } fn set_background_rgba(&self, background_rgba: Option<&RGBA>) { ... } fn is_background_set(&self) -> bool { ... } fn direction(&self) -> TextDirection { ... } fn set_direction(&self, direction: TextDirection) { ... } fn is_editable(&self) -> bool { ... } fn set_editable(&self, editable: bool) { ... } fn is_editable_set(&self) -> bool { ... } fn is_fallback(&self) -> bool { ... } fn set_fallback(&self, fallback: bool) { ... } fn is_fallback_set(&self) -> bool { ... } fn family(&self) -> Option<GString> { ... } fn set_family(&self, family: Option<&str>) { ... } fn is_family_set(&self) -> bool { ... } fn font(&self) -> Option<GString> { ... } fn set_font(&self, font: Option<&str>) { ... } fn font_desc(&self) -> Option<FontDescription> { ... } fn set_font_desc(&self, font_desc: Option<&FontDescription>) { ... } fn font_features(&self) -> Option<GString> { ... } fn set_font_features(&self, font_features: Option<&str>) { ... } fn is_font_features_set(&self) -> bool { ... } fn set_foreground(&self, foreground: Option<&str>) { ... } fn foreground_rgba(&self) -> Option<RGBA> { ... } fn set_foreground_rgba(&self, foreground_rgba: Option<&RGBA>) { ... } fn is_foreground_set(&self) -> bool { ... } fn indent(&self) -> i32 { ... } fn set_indent(&self, indent: i32) { ... } fn is_indent_set(&self) -> bool { ... } fn is_insert_hyphens(&self) -> bool { ... } fn set_insert_hyphens(&self, insert_hyphens: bool) { ... } fn is_insert_hyphens_set(&self) -> bool { ... } fn is_invisible(&self) -> bool { ... } fn set_invisible(&self, invisible: bool) { ... } fn is_invisible_set(&self) -> bool { ... } fn justification(&self) -> Justification { ... } fn set_justification(&self, justification: Justification) { ... } fn is_justification_set(&self) -> bool { ... } fn language(&self) -> Option<GString> { ... } fn set_language(&self, language: Option<&str>) { ... } fn is_language_set(&self) -> bool { ... } fn left_margin(&self) -> i32 { ... } fn set_left_margin(&self, left_margin: i32) { ... } fn is_left_margin_set(&self) -> bool { ... } fn letter_spacing(&self) -> i32 { ... } fn set_letter_spacing(&self, letter_spacing: i32) { ... } fn is_letter_spacing_set(&self) -> bool { ... } fn line_height(&self) -> f32 { ... } fn set_line_height(&self, line_height: f32) { ... } fn is_line_height_set(&self) -> bool { ... } fn name(&self) -> Option<GString> { ... } fn overline(&self) -> Overline { ... } fn set_overline(&self, overline: Overline) { ... } fn overline_rgba(&self) -> Option<RGBA> { ... } fn set_overline_rgba(&self, overline_rgba: Option<&RGBA>) { ... } fn is_overline_rgba_set(&self) -> bool { ... } fn is_overline_set(&self) -> bool { ... } fn set_paragraph_background(&self, paragraph_background: Option<&str>) { ... } fn paragraph_background_rgba(&self) -> Option<RGBA> { ... } fn set_paragraph_background_rgba( &self, paragraph_background_rgba: Option<&RGBA>, ) { ... } fn is_paragraph_background_set(&self) -> bool { ... } fn pixels_above_lines(&self) -> i32 { ... } fn set_pixels_above_lines(&self, pixels_above_lines: i32) { ... } fn is_pixels_above_lines_set(&self) -> bool { ... } fn pixels_below_lines(&self) -> i32 { ... } fn set_pixels_below_lines(&self, pixels_below_lines: i32) { ... } fn is_pixels_below_lines_set(&self) -> bool { ... } fn pixels_inside_wrap(&self) -> i32 { ... } fn set_pixels_inside_wrap(&self, pixels_inside_wrap: i32) { ... } fn is_pixels_inside_wrap_set(&self) -> bool { ... } fn right_margin(&self) -> i32 { ... } fn set_right_margin(&self, right_margin: i32) { ... } fn is_right_margin_set(&self) -> bool { ... } fn rise(&self) -> i32 { ... } fn set_rise(&self, rise: i32) { ... } fn is_rise_set(&self) -> bool { ... } fn scale(&self) -> f64 { ... } fn set_scale(&self, scale: f64) { ... } fn is_scale_set(&self) -> bool { ... } fn is_sentence(&self) -> bool { ... } fn set_sentence(&self, sentence: bool) { ... } fn is_sentence_set(&self) -> bool { ... } fn show_spaces(&self) -> ShowFlags { ... } fn set_show_spaces(&self, show_spaces: ShowFlags) { ... } fn shows_spaces_set(&self) -> bool { ... } fn size(&self) -> i32 { ... } fn set_size(&self, size: i32) { ... } fn size_points(&self) -> f64 { ... } fn set_size_points(&self, size_points: f64) { ... } fn is_size_set(&self) -> bool { ... } fn stretch(&self) -> Stretch { ... } fn set_stretch(&self, stretch: Stretch) { ... } fn is_stretch_set(&self) -> bool { ... } fn is_strikethrough(&self) -> bool { ... } fn set_strikethrough(&self, strikethrough: bool) { ... } fn strikethrough_rgba(&self) -> Option<RGBA> { ... } fn set_strikethrough_rgba(&self, strikethrough_rgba: Option<&RGBA>) { ... } fn is_strikethrough_rgba_set(&self) -> bool { ... } fn is_strikethrough_set(&self) -> bool { ... } fn style(&self) -> Style { ... } fn set_style(&self, style: Style) { ... } fn is_style_set(&self) -> bool { ... } fn tabs(&self) -> Option<TabArray> { ... } fn set_tabs(&self, tabs: Option<&TabArray>) { ... } fn is_tabs_set(&self) -> bool { ... } fn text_transform(&self) -> TextTransform { ... } fn set_text_transform(&self, text_transform: TextTransform) { ... } fn is_text_transform_set(&self) -> bool { ... } fn underline(&self) -> Underline { ... } fn set_underline(&self, underline: Underline) { ... } fn underline_rgba(&self) -> Option<RGBA> { ... } fn set_underline_rgba(&self, underline_rgba: Option<&RGBA>) { ... } fn is_underline_rgba_set(&self) -> bool { ... } fn is_underline_set(&self) -> bool { ... } fn variant(&self) -> Variant { ... } fn set_variant(&self, variant: Variant) { ... } fn is_variant_set(&self) -> bool { ... } fn weight(&self) -> i32 { ... } fn set_weight(&self, weight: i32) { ... } fn is_weight_set(&self) -> bool { ... } fn is_word(&self) -> bool { ... } fn set_word(&self, word: bool) { ... } fn is_word_set(&self) -> bool { ... } fn wrap_mode(&self) -> WrapMode { ... } fn set_wrap_mode(&self, wrap_mode: WrapMode) { ... } fn wraps_mode_set(&self) -> bool { ... } fn connect_accumulative_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_allow_breaks_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_allow_breaks_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_background_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_background_full_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_background_full_height_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_direction_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_editable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_editable_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_fallback_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_fallback_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_family_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_family_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_font_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_font_desc_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_font_features_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_font_features_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_foreground_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_foreground_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_foreground_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_indent_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_indent_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_insert_hyphens_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_insert_hyphens_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_invisible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_invisible_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_justification_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_justification_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_language_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_language_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_left_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_left_margin_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_letter_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_letter_spacing_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_line_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_line_height_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_overline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_overline_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_overline_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_overline_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_paragraph_background_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_paragraph_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_pixels_above_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_pixels_below_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_right_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_right_margin_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_rise_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_rise_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_scale_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_scale_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_sentence_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_sentence_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_show_spaces_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_show_spaces_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_size_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_size_points_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_size_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_stretch_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_stretch_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_strikethrough_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_strikethrough_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_strikethrough_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_style_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_style_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tabs_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_tabs_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_text_transform_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_text_transform_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_underline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_underline_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_underline_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_underline_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_variant_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_variant_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_weight_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_weight_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_word_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_word_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_wrap_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_wrap_mode_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all TextTag methods.

§Implementors

TextTag

Provided Methods§

Source

fn changed(&self, size_changed: bool)

Emits the tag-changed signal on the TextTagTable where the tag is included.

The signal is already emitted when setting a TextTag property. This function is useful for a TextTag subclass.

§size_changed

whether the change affects the TextView layout

Source

fn priority(&self) -> i32

Get the tag priority.

§Returns

The tag’s priority.

Source

fn set_priority(&self, priority: i32)

Sets the priority of a TextTag.

Valid priorities start at 0 and go to one less than TextTagTable::size(). Each tag in a table has a unique priority; setting the priority of one tag shifts the priorities of all the other tags in the table to maintain a unique priority for each tag.

Higher priority tags “win” if two tags both set the same text attribute. When adding a tag to a tag table, it will be assigned the highest priority in the table by default; so normally the precedence of a set of tags is the order in which they were added to the table, or created with TextBufferExtManual::create_tag(), which adds the tag to the buffer’s table automatically.

§priority

the new priority

Source

fn is_accumulative_margin(&self) -> bool

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

Source

fn set_accumulative_margin(&self, accumulative_margin: bool)

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

Source

fn allows_breaks(&self) -> bool

Whether breaks are allowed.

Source

fn set_allow_breaks(&self, allow_breaks: bool)

Whether breaks are allowed.

Source

fn allows_breaks_set(&self) -> bool

Whether the allow-breaks property is set.

Source

fn set_background(&self, background: Option<&str>)

Background color as a string.

Source

fn is_background_full_height(&self) -> bool

Whether the background color fills the entire line height or only the height of the tagged characters.

Source

fn set_background_full_height(&self, background_full_height: bool)

Whether the background color fills the entire line height or only the height of the tagged characters.

Source

fn is_background_full_height_set(&self) -> bool

Whether the background-full-height property is set.

Source

fn background_rgba(&self) -> Option<RGBA>

Background color as a gdk::RGBA.

Source

fn set_background_rgba(&self, background_rgba: Option<&RGBA>)

Background color as a gdk::RGBA.

Source

fn is_background_set(&self) -> bool

Whether the background property is set.

Source

fn direction(&self) -> TextDirection

Text direction, e.g. right-to-left or left-to-right.

Source

fn set_direction(&self, direction: TextDirection)

Text direction, e.g. right-to-left or left-to-right.

Source

fn is_editable(&self) -> bool

Whether the text can be modified by the user.

Source

fn set_editable(&self, editable: bool)

Whether the text can be modified by the user.

Source

fn is_editable_set(&self) -> bool

Whether the editable property is set.

Source

fn is_fallback(&self) -> bool

Whether font fallback is enabled.

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

Source

fn set_fallback(&self, fallback: bool)

Whether font fallback is enabled.

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

Source

fn is_fallback_set(&self) -> bool

Whether the fallback property is set.

Source

fn family(&self) -> Option<GString>

Name of the font family, e.g. Sans, Helvetica, Times, Monospace.

Source

fn set_family(&self, family: Option<&str>)

Name of the font family, e.g. Sans, Helvetica, Times, Monospace.

Source

fn is_family_set(&self) -> bool

Whether the family property is set.

Source

fn font(&self) -> Option<GString>

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

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

Source

fn set_font(&self, font: Option<&str>)

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

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

Source

fn font_desc(&self) -> Option<FontDescription>

Font description as a pango::FontDescription.

Source

fn set_font_desc(&self, font_desc: Option<&FontDescription>)

Font description as a pango::FontDescription.

Source

fn font_features(&self) -> Option<GString>

OpenType font features, as a string.

Source

fn set_font_features(&self, font_features: Option<&str>)

OpenType font features, as a string.

Source

fn is_font_features_set(&self) -> bool

Whether the font-features property is set.

Source

fn set_foreground(&self, foreground: Option<&str>)

Foreground color as a string.

Source

fn foreground_rgba(&self) -> Option<RGBA>

Foreground color as a gdk::RGBA.

Source

fn set_foreground_rgba(&self, foreground_rgba: Option<&RGBA>)

Foreground color as a gdk::RGBA.

Source

fn is_foreground_set(&self) -> bool

Whether the foreground property is set.

Source

fn indent(&self) -> i32

Amount to indent the paragraph, in pixels.

A negative value of indent will produce a hanging indentation. That is, the first line will have the full width, and subsequent lines will be indented by the absolute value of indent.

Source

fn set_indent(&self, indent: i32)

Amount to indent the paragraph, in pixels.

A negative value of indent will produce a hanging indentation. That is, the first line will have the full width, and subsequent lines will be indented by the absolute value of indent.

Source

fn is_indent_set(&self) -> bool

Whether the indent property is set.

Source

fn is_insert_hyphens(&self) -> bool

Whether to insert hyphens at breaks.

Source

fn set_insert_hyphens(&self, insert_hyphens: bool)

Whether to insert hyphens at breaks.

Source

fn is_insert_hyphens_set(&self) -> bool

Whether the insert-hyphens property is set.

Source

fn is_invisible(&self) -> bool

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.

Source

fn set_invisible(&self, invisible: bool)

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.

Source

fn is_invisible_set(&self) -> bool

Whether the invisible property is set.

Source

fn justification(&self) -> Justification

Left, right, or center justification.

Source

fn set_justification(&self, justification: Justification)

Left, right, or center justification.

Source

fn is_justification_set(&self) -> bool

Whether the justification property is set.

Source

fn language(&self) -> Option<GString>

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

Source

fn set_language(&self, language: Option<&str>)

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

Source

fn is_language_set(&self) -> bool

Whether the language property is set.

Source

fn left_margin(&self) -> i32

Width of the left margin in pixels.

Source

fn set_left_margin(&self, left_margin: i32)

Width of the left margin in pixels.

Source

fn is_left_margin_set(&self) -> bool

Whether the left-margin property is set.

Source

fn letter_spacing(&self) -> i32

Extra spacing between graphemes, in Pango units.

Source

fn set_letter_spacing(&self, letter_spacing: i32)

Extra spacing between graphemes, in Pango units.

Source

fn is_letter_spacing_set(&self) -> bool

Whether the letter-spacing property is set.

Source

fn line_height(&self) -> f32

Available on crate feature v4_6 only.

Factor to scale line height by.

Source

fn set_line_height(&self, line_height: f32)

Available on crate feature v4_6 only.

Factor to scale line height by.

Source

fn is_line_height_set(&self) -> bool

Available on crate feature v4_6 only.

Whether the line-height property is set.

Source

fn name(&self) -> Option<GString>

The name used to refer to the tag.

None for anonymous tags.

Source

fn overline(&self) -> Overline

Style of overline for this text.

Source

fn set_overline(&self, overline: Overline)

Style of overline for this text.

Source

fn overline_rgba(&self) -> Option<RGBA>

This property modifies the color of overlines.

If not set, overlines will use the foreground color.

Source

fn set_overline_rgba(&self, overline_rgba: Option<&RGBA>)

This property modifies the color of overlines.

If not set, overlines will use the foreground color.

Source

fn is_overline_rgba_set(&self) -> bool

Whether the overline-rgba property is set.

Source

fn is_overline_set(&self) -> bool

Whether the overline property is set.

Source

fn set_paragraph_background(&self, paragraph_background: Option<&str>)

The paragraph background color as a string.

Source

fn paragraph_background_rgba(&self) -> Option<RGBA>

The paragraph background color as a gdk::RGBA.

Source

fn set_paragraph_background_rgba( &self, paragraph_background_rgba: Option<&RGBA>, )

The paragraph background color as a gdk::RGBA.

Source

fn is_paragraph_background_set(&self) -> bool

Whether the paragraph-background property is set.

Source

fn pixels_above_lines(&self) -> i32

Pixels of blank space above paragraphs.

Source

fn set_pixels_above_lines(&self, pixels_above_lines: i32)

Pixels of blank space above paragraphs.

Source

fn is_pixels_above_lines_set(&self) -> bool

Whether the pixels-above-lines property is set.

Source

fn pixels_below_lines(&self) -> i32

Pixels of blank space below paragraphs.

Source

fn set_pixels_below_lines(&self, pixels_below_lines: i32)

Pixels of blank space below paragraphs.

Source

fn is_pixels_below_lines_set(&self) -> bool

Whether the pixels-below-lines property is set.

Source

fn pixels_inside_wrap(&self) -> i32

Pixels of blank space between wrapped lines in a paragraph.

Source

fn set_pixels_inside_wrap(&self, pixels_inside_wrap: i32)

Pixels of blank space between wrapped lines in a paragraph.

Source

fn is_pixels_inside_wrap_set(&self) -> bool

Whether the pixels-inside-wrap property is set.

Source

fn right_margin(&self) -> i32

Width of the right margin, in pixels.

Source

fn set_right_margin(&self, right_margin: i32)

Width of the right margin, in pixels.

Source

fn is_right_margin_set(&self) -> bool

Whether the right-margin property is set.

Source

fn rise(&self) -> i32

Offset of text above the baseline, in Pango units.

Negative values go below the baseline.

Source

fn set_rise(&self, rise: i32)

Offset of text above the baseline, in Pango units.

Negative values go below the baseline.

Source

fn is_rise_set(&self) -> bool

Whether the rise property is set.

Source

fn scale(&self) -> f64

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.

Source

fn set_scale(&self, scale: f64)

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.

Source

fn is_scale_set(&self) -> bool

Whether the scale property is set.

Source

fn is_sentence(&self) -> bool

Available on crate feature v4_6 only.

Whether this tag represents a single sentence.

This affects cursor movement.

Source

fn set_sentence(&self, sentence: bool)

Available on crate feature v4_6 only.

Whether this tag represents a single sentence.

This affects cursor movement.

Source

fn is_sentence_set(&self) -> bool

Available on crate feature v4_6 only.

Whether the sentence property is set.

Source

fn show_spaces(&self) -> ShowFlags

How to render invisible characters.

Source

fn set_show_spaces(&self, show_spaces: ShowFlags)

How to render invisible characters.

Source

fn shows_spaces_set(&self) -> bool

Whether the show-spaces property is set.

Source

fn size(&self) -> i32

Font size in Pango units.

Source

fn set_size(&self, size: i32)

Font size in Pango units.

Source

fn size_points(&self) -> f64

Font size in points.

Source

fn set_size_points(&self, size_points: f64)

Font size in points.

Source

fn is_size_set(&self) -> bool

Whether the size property is set.

Source

fn stretch(&self) -> Stretch

Font stretch as a pango::Stretch, e.g. pango::Stretch::Condensed.

Source

fn set_stretch(&self, stretch: Stretch)

Font stretch as a pango::Stretch, e.g. pango::Stretch::Condensed.

Source

fn is_stretch_set(&self) -> bool

Whether the stretch property is set.

Source

fn is_strikethrough(&self) -> bool

Whether to strike through the text.

Source

fn set_strikethrough(&self, strikethrough: bool)

Whether to strike through the text.

Source

fn strikethrough_rgba(&self) -> Option<RGBA>

This property modifies the color of strikeouts.

If not set, strikeouts will use the foreground color.

Source

fn set_strikethrough_rgba(&self, strikethrough_rgba: Option<&RGBA>)

This property modifies the color of strikeouts.

If not set, strikeouts will use the foreground color.

Source

fn is_strikethrough_rgba_set(&self) -> bool

If the strikethrough-rgba property has been set.

Source

fn is_strikethrough_set(&self) -> bool

Whether the strikethrough property is set.

Source

fn style(&self) -> Style

Font style as a pango::Style, e.g. pango::Style::Italic.

Source

fn set_style(&self, style: Style)

Font style as a pango::Style, e.g. pango::Style::Italic.

Source

fn is_style_set(&self) -> bool

Whether the style property is set.

Source

fn tabs(&self) -> Option<TabArray>

Custom tabs for this text.

Source

fn set_tabs(&self, tabs: Option<&TabArray>)

Custom tabs for this text.

Source

fn is_tabs_set(&self) -> bool

Whether the tabs property is set.

Source

fn text_transform(&self) -> TextTransform

Available on crate feature v4_6 only.

How to transform the text for display.

Source

fn set_text_transform(&self, text_transform: TextTransform)

Available on crate feature v4_6 only.

How to transform the text for display.

Source

fn is_text_transform_set(&self) -> bool

Available on crate feature v4_6 only.

Whether the text-transform property is set.

Source

fn underline(&self) -> Underline

Style of underline for this text.

Source

fn set_underline(&self, underline: Underline)

Style of underline for this text.

Source

fn underline_rgba(&self) -> Option<RGBA>

This property modifies the color of underlines.

If not set, underlines will use the foreground color.

If 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.

Source

fn set_underline_rgba(&self, underline_rgba: Option<&RGBA>)

This property modifies the color of underlines.

If not set, underlines will use the foreground color.

If 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.

Source

fn is_underline_rgba_set(&self) -> bool

If the underline-rgba property has been set.

Source

fn is_underline_set(&self) -> bool

Whether the underline property is set.

Source

fn variant(&self) -> Variant

Font variant as a pango::Variant, e.g. pango::Variant::SmallCaps.

Source

fn set_variant(&self, variant: Variant)

Font variant as a pango::Variant, e.g. pango::Variant::SmallCaps.

Source

fn is_variant_set(&self) -> bool

Whether the variant property is set.

Source

fn weight(&self) -> i32

Font weight as an integer.

Source

fn set_weight(&self, weight: i32)

Font weight as an integer.

Source

fn is_weight_set(&self) -> bool

Whether the weight property is set.

Source

fn is_word(&self) -> bool

Available on crate feature v4_6 only.

Whether this tag represents a single word.

This affects line breaks and cursor movement.

Source

fn set_word(&self, word: bool)

Available on crate feature v4_6 only.

Whether this tag represents a single word.

This affects line breaks and cursor movement.

Source

fn is_word_set(&self) -> bool

Available on crate feature v4_6 only.

Whether the word property is set.

Source

fn wrap_mode(&self) -> WrapMode

Whether to wrap lines never, at word boundaries, or at character boundaries.

Source

fn set_wrap_mode(&self, wrap_mode: WrapMode)

Whether to wrap lines never, at word boundaries, or at character boundaries.

Source

fn wraps_mode_set(&self) -> bool

Whether the wrap-mode property is set.

Source

fn connect_accumulative_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_allow_breaks_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_allow_breaks_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_background_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_background_full_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_background_full_height_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_direction_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_editable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_editable_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_fallback_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_fallback_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_family_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_family_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_font_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_font_desc_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_font_features_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_font_features_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_foreground_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_foreground_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_foreground_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_indent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_indent_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_insert_hyphens_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_insert_hyphens_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_invisible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_invisible_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_justification_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_justification_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_language_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_language_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_left_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_left_margin_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_letter_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_letter_spacing_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_line_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v4_6 only.
Source

fn connect_line_height_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v4_6 only.
Source

fn connect_overline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_overline_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_overline_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_overline_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_paragraph_background_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_paragraph_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_pixels_above_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_pixels_below_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_right_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_right_margin_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_rise_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_rise_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_scale_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_scale_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_sentence_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v4_6 only.
Source

fn connect_sentence_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v4_6 only.
Source

fn connect_show_spaces_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_show_spaces_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_size_points_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_size_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_stretch_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_stretch_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_strikethrough_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_strikethrough_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_strikethrough_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_style_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_style_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_tabs_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_tabs_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_text_transform_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v4_6 only.
Source

fn connect_text_transform_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v4_6 only.
Source

fn connect_underline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_underline_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_underline_rgba_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_underline_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_variant_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_variant_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_weight_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_weight_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_word_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Available on crate feature v4_6 only.
Source

fn connect_word_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Available on crate feature v4_6 only.
Source

fn connect_wrap_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_wrap_mode_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§