[][src]Trait gtk::TextTagExt

pub trait TextTagExt: 'static {
    fn changed(&self, size_changed: bool);
fn event<P: IsA<Object>>(
        &self,
        event_object: &P,
        event: &Event,
        iter: &TextIter
    ) -> bool;
fn get_priority(&self) -> i32;
fn set_priority(&self, priority: i32);
fn get_property_accumulative_margin(&self) -> bool;
fn set_property_accumulative_margin(&self, accumulative_margin: bool);
fn set_property_background(&self, background: Option<&str>);
fn get_property_background_full_height(&self) -> bool;
fn set_property_background_full_height(&self, background_full_height: bool);
fn get_property_background_full_height_set(&self) -> bool;
fn set_property_background_full_height_set(
        &self,
        background_full_height_set: bool
    );
fn get_property_background_rgba(&self) -> Option<RGBA>;
fn set_property_background_rgba(&self, background_rgba: Option<&RGBA>);
fn get_property_background_set(&self) -> bool;
fn set_property_background_set(&self, background_set: bool);
fn get_property_direction(&self) -> TextDirection;
fn set_property_direction(&self, direction: TextDirection);
fn get_property_editable(&self) -> bool;
fn set_property_editable(&self, editable: bool);
fn get_property_editable_set(&self) -> bool;
fn set_property_editable_set(&self, editable_set: bool);
fn get_property_fallback(&self) -> bool;
fn set_property_fallback(&self, fallback: bool);
fn get_property_fallback_set(&self) -> bool;
fn set_property_fallback_set(&self, fallback_set: bool);
fn get_property_family(&self) -> Option<GString>;
fn set_property_family(&self, family: Option<&str>);
fn get_property_family_set(&self) -> bool;
fn set_property_family_set(&self, family_set: bool);
fn get_property_font(&self) -> Option<GString>;
fn set_property_font(&self, font: Option<&str>);
fn get_property_font_desc(&self) -> Option<FontDescription>;
fn set_property_font_desc(&self, font_desc: Option<&FontDescription>);
fn get_property_font_features(&self) -> Option<GString>;
fn set_property_font_features(&self, font_features: Option<&str>);
fn get_property_font_features_set(&self) -> bool;
fn set_property_font_features_set(&self, font_features_set: bool);
fn set_property_foreground(&self, foreground: Option<&str>);
fn get_property_foreground_rgba(&self) -> Option<RGBA>;
fn set_property_foreground_rgba(&self, foreground_rgba: Option<&RGBA>);
fn get_property_foreground_set(&self) -> bool;
fn set_property_foreground_set(&self, foreground_set: bool);
fn get_property_indent(&self) -> i32;
fn set_property_indent(&self, indent: i32);
fn get_property_indent_set(&self) -> bool;
fn set_property_indent_set(&self, indent_set: bool);
fn get_property_invisible(&self) -> bool;
fn set_property_invisible(&self, invisible: bool);
fn get_property_invisible_set(&self) -> bool;
fn set_property_invisible_set(&self, invisible_set: bool);
fn get_property_justification(&self) -> Justification;
fn set_property_justification(&self, justification: Justification);
fn get_property_justification_set(&self) -> bool;
fn set_property_justification_set(&self, justification_set: bool);
fn get_property_language(&self) -> Option<GString>;
fn set_property_language(&self, language: Option<&str>);
fn get_property_language_set(&self) -> bool;
fn set_property_language_set(&self, language_set: bool);
fn get_property_left_margin(&self) -> i32;
fn set_property_left_margin(&self, left_margin: i32);
fn get_property_left_margin_set(&self) -> bool;
fn set_property_left_margin_set(&self, left_margin_set: bool);
fn get_property_letter_spacing(&self) -> i32;
fn set_property_letter_spacing(&self, letter_spacing: i32);
fn get_property_letter_spacing_set(&self) -> bool;
fn set_property_letter_spacing_set(&self, letter_spacing_set: bool);
fn get_property_name(&self) -> Option<GString>;
fn set_property_paragraph_background(
        &self,
        paragraph_background: Option<&str>
    );
fn get_property_paragraph_background_rgba(&self) -> Option<RGBA>;
fn set_property_paragraph_background_rgba(
        &self,
        paragraph_background_rgba: Option<&RGBA>
    );
fn get_property_paragraph_background_set(&self) -> bool;
fn set_property_paragraph_background_set(
        &self,
        paragraph_background_set: bool
    );
fn get_property_pixels_above_lines(&self) -> i32;
fn set_property_pixels_above_lines(&self, pixels_above_lines: i32);
fn get_property_pixels_above_lines_set(&self) -> bool;
fn set_property_pixels_above_lines_set(&self, pixels_above_lines_set: bool);
fn get_property_pixels_below_lines(&self) -> i32;
fn set_property_pixels_below_lines(&self, pixels_below_lines: i32);
fn get_property_pixels_below_lines_set(&self) -> bool;
fn set_property_pixels_below_lines_set(&self, pixels_below_lines_set: bool);
fn get_property_pixels_inside_wrap(&self) -> i32;
fn set_property_pixels_inside_wrap(&self, pixels_inside_wrap: i32);
fn get_property_pixels_inside_wrap_set(&self) -> bool;
fn set_property_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool);
fn get_property_right_margin(&self) -> i32;
fn set_property_right_margin(&self, right_margin: i32);
fn get_property_right_margin_set(&self) -> bool;
fn set_property_right_margin_set(&self, right_margin_set: bool);
fn get_property_rise(&self) -> i32;
fn set_property_rise(&self, rise: i32);
fn get_property_rise_set(&self) -> bool;
fn set_property_rise_set(&self, rise_set: bool);
fn get_property_scale(&self) -> f64;
fn set_property_scale(&self, scale: f64);
fn get_property_scale_set(&self) -> bool;
fn set_property_scale_set(&self, scale_set: bool);
fn get_property_size(&self) -> i32;
fn set_property_size(&self, size: i32);
fn get_property_size_points(&self) -> f64;
fn set_property_size_points(&self, size_points: f64);
fn get_property_size_set(&self) -> bool;
fn set_property_size_set(&self, size_set: bool);
fn get_property_stretch(&self) -> Stretch;
fn set_property_stretch(&self, stretch: Stretch);
fn get_property_stretch_set(&self) -> bool;
fn set_property_stretch_set(&self, stretch_set: bool);
fn get_property_strikethrough(&self) -> bool;
fn set_property_strikethrough(&self, strikethrough: bool);
fn get_property_strikethrough_rgba(&self) -> Option<RGBA>;
fn set_property_strikethrough_rgba(&self, strikethrough_rgba: Option<&RGBA>);
fn get_property_strikethrough_rgba_set(&self) -> bool;
fn set_property_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool);
fn get_property_strikethrough_set(&self) -> bool;
fn set_property_strikethrough_set(&self, strikethrough_set: bool);
fn get_property_style(&self) -> Style;
fn set_property_style(&self, style: Style);
fn get_property_style_set(&self) -> bool;
fn set_property_style_set(&self, style_set: bool);
fn get_property_tabs(&self) -> Option<TabArray>;
fn set_property_tabs(&self, tabs: Option<&TabArray>);
fn get_property_tabs_set(&self) -> bool;
fn set_property_tabs_set(&self, tabs_set: bool);
fn get_property_underline(&self) -> Underline;
fn set_property_underline(&self, underline: Underline);
fn get_property_underline_rgba(&self) -> Option<RGBA>;
fn set_property_underline_rgba(&self, underline_rgba: Option<&RGBA>);
fn get_property_underline_rgba_set(&self) -> bool;
fn set_property_underline_rgba_set(&self, underline_rgba_set: bool);
fn get_property_underline_set(&self) -> bool;
fn set_property_underline_set(&self, underline_set: bool);
fn get_property_variant(&self) -> Variant;
fn set_property_variant(&self, variant: Variant);
fn get_property_variant_set(&self) -> bool;
fn set_property_variant_set(&self, variant_set: bool);
fn get_property_weight(&self) -> i32;
fn set_property_weight(&self, weight: i32);
fn get_property_weight_set(&self) -> bool;
fn set_property_weight_set(&self, weight_set: bool);
fn get_property_wrap_mode(&self) -> WrapMode;
fn set_property_wrap_mode(&self, wrap_mode: WrapMode);
fn get_property_wrap_mode_set(&self) -> bool;
fn set_property_wrap_mode_set(&self, wrap_mode_set: bool);
fn connect_event<F: Fn(&Self, &Object, &Event, &TextIter) -> Inhibit + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_accumulative_margin_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_background_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_background_full_height_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_background_full_height_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_background_rgba_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_background_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_direction_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_editable_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_editable_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_fallback_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_fallback_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_family_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_family_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_font_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_font_desc_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_font_features_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_font_features_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_foreground_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_foreground_rgba_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_foreground_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_indent_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_indent_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_invisible_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_invisible_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_justification_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_justification_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_language_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_language_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_left_margin_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_left_margin_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_letter_spacing_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_letter_spacing_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_paragraph_background_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_paragraph_background_rgba_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_paragraph_background_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixels_above_lines_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixels_above_lines_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixels_below_lines_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixels_below_lines_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_pixels_inside_wrap_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_right_margin_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_right_margin_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_rise_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_rise_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_scale_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_scale_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_size_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_size_points_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_size_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_stretch_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_stretch_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_strikethrough_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_strikethrough_rgba_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_strikethrough_rgba_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_strikethrough_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_style_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_style_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_tabs_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_tabs_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_underline_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_underline_rgba_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_underline_rgba_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_underline_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_variant_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_variant_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_weight_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_weight_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_wrap_mode_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_wrap_mode_set_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all TextTag methods.

Implementors

TextTag

Required methods

fn changed(&self, size_changed: bool)

Emits the TextTagTable::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.

Feature: v3_20

size_changed

whether the change affects the TextView layout.

fn event<P: IsA<Object>>(
    &self,
    event_object: &P,
    event: &Event,
    iter: &TextIter
) -> bool

Emits the “event” signal on the TextTag.

event_object

object that received the event, such as a widget

event

the event

iter

location where the event was received

Returns

result of signal emission (whether the event was handled)

fn get_priority(&self) -> i32

Get the tag priority.

Returns

The tag’s priority.

fn set_priority(&self, priority: i32)

Sets the priority of a TextTag. Valid priorities start at 0 and go to one less than TextTagTableExt::get_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 TextBufferExt::create_tag, which adds the tag to the buffer’s table automatically.

priority

the new priority

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

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

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

fn get_property_background_full_height(&self) -> bool

fn set_property_background_full_height(&self, background_full_height: bool)

fn get_property_background_full_height_set(&self) -> bool

fn set_property_background_full_height_set(
    &self,
    background_full_height_set: bool
)

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

Background color as a gdk::RGBA.

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

Background color as a gdk::RGBA.

fn get_property_background_set(&self) -> bool

fn set_property_background_set(&self, background_set: bool)

fn get_property_direction(&self) -> TextDirection

fn set_property_direction(&self, direction: TextDirection)

fn get_property_editable(&self) -> bool

fn set_property_editable(&self, editable: bool)

fn get_property_editable_set(&self) -> bool

fn set_property_editable_set(&self, editable_set: bool)

fn get_property_fallback(&self) -> bool

Whether font fallback is enabled.

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

Feature: v3_16

fn set_property_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.

Feature: v3_16

fn get_property_fallback_set(&self) -> bool

fn set_property_fallback_set(&self, fallback_set: bool)

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

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

fn get_property_family_set(&self) -> bool

fn set_property_family_set(&self, family_set: bool)

fn get_property_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.

fn set_property_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.

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

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

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

OpenType font features, as a string.

Feature: v3_18

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

OpenType font features, as a string.

Feature: v3_18

fn get_property_font_features_set(&self) -> bool

fn set_property_font_features_set(&self, font_features_set: bool)

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

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

Foreground color as a gdk::RGBA.

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

Foreground color as a gdk::RGBA.

fn get_property_foreground_set(&self) -> bool

fn set_property_foreground_set(&self, foreground_set: bool)

fn get_property_indent(&self) -> i32

fn set_property_indent(&self, indent: i32)

fn get_property_indent_set(&self) -> bool

fn set_property_indent_set(&self, indent_set: bool)

fn get_property_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.

fn set_property_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.

fn get_property_invisible_set(&self) -> bool

fn set_property_invisible_set(&self, invisible_set: bool)

fn get_property_justification(&self) -> Justification

fn set_property_justification(&self, justification: Justification)

fn get_property_justification_set(&self) -> bool

fn set_property_justification_set(&self, justification_set: bool)

fn get_property_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 gtk_get_default_language.

fn set_property_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 gtk_get_default_language.

fn get_property_language_set(&self) -> bool

fn set_property_language_set(&self, language_set: bool)

fn get_property_left_margin(&self) -> i32

fn set_property_left_margin(&self, left_margin: i32)

fn get_property_left_margin_set(&self) -> bool

fn set_property_left_margin_set(&self, left_margin_set: bool)

fn get_property_letter_spacing(&self) -> i32

Extra spacing between graphemes, in Pango units.

Feature: v3_16

fn set_property_letter_spacing(&self, letter_spacing: i32)

Extra spacing between graphemes, in Pango units.

Feature: v3_16

fn get_property_letter_spacing_set(&self) -> bool

fn set_property_letter_spacing_set(&self, letter_spacing_set: bool)

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

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

The paragraph background color as a string.

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

The paragraph background color as a gdk::RGBA.

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

The paragraph background color as a gdk::RGBA.

fn get_property_paragraph_background_set(&self) -> bool

fn set_property_paragraph_background_set(&self, paragraph_background_set: bool)

fn get_property_pixels_above_lines(&self) -> i32

fn set_property_pixels_above_lines(&self, pixels_above_lines: i32)

fn get_property_pixels_above_lines_set(&self) -> bool

fn set_property_pixels_above_lines_set(&self, pixels_above_lines_set: bool)

fn get_property_pixels_below_lines(&self) -> i32

fn set_property_pixels_below_lines(&self, pixels_below_lines: i32)

fn get_property_pixels_below_lines_set(&self) -> bool

fn set_property_pixels_below_lines_set(&self, pixels_below_lines_set: bool)

fn get_property_pixels_inside_wrap(&self) -> i32

fn set_property_pixels_inside_wrap(&self, pixels_inside_wrap: i32)

fn get_property_pixels_inside_wrap_set(&self) -> bool

fn set_property_pixels_inside_wrap_set(&self, pixels_inside_wrap_set: bool)

fn get_property_right_margin(&self) -> i32

fn set_property_right_margin(&self, right_margin: i32)

fn get_property_right_margin_set(&self) -> bool

fn set_property_right_margin_set(&self, right_margin_set: bool)

fn get_property_rise(&self) -> i32

fn set_property_rise(&self, rise: i32)

fn get_property_rise_set(&self) -> bool

fn set_property_rise_set(&self, rise_set: bool)

fn get_property_scale(&self) -> f64

fn set_property_scale(&self, scale: f64)

fn get_property_scale_set(&self) -> bool

fn set_property_scale_set(&self, scale_set: bool)

fn get_property_size(&self) -> i32

fn set_property_size(&self, size: i32)

fn get_property_size_points(&self) -> f64

fn set_property_size_points(&self, size_points: f64)

fn get_property_size_set(&self) -> bool

fn set_property_size_set(&self, size_set: bool)

fn get_property_stretch(&self) -> Stretch

fn set_property_stretch(&self, stretch: Stretch)

fn get_property_stretch_set(&self) -> bool

fn set_property_stretch_set(&self, stretch_set: bool)

fn get_property_strikethrough(&self) -> bool

fn set_property_strikethrough(&self, strikethrough: bool)

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

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

Feature: v3_16

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

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

Feature: v3_16

fn get_property_strikethrough_rgba_set(&self) -> bool

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

Feature: v3_16

fn set_property_strikethrough_rgba_set(&self, strikethrough_rgba_set: bool)

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

Feature: v3_16

fn get_property_strikethrough_set(&self) -> bool

fn set_property_strikethrough_set(&self, strikethrough_set: bool)

fn get_property_style(&self) -> Style

fn set_property_style(&self, style: Style)

fn get_property_style_set(&self) -> bool

fn set_property_style_set(&self, style_set: bool)

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

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

fn get_property_tabs_set(&self) -> bool

fn set_property_tabs_set(&self, tabs_set: bool)

fn get_property_underline(&self) -> Underline

fn set_property_underline(&self, underline: Underline)

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

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

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

Feature: v3_16

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

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

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

Feature: v3_16

fn get_property_underline_rgba_set(&self) -> bool

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

Feature: v3_16

fn set_property_underline_rgba_set(&self, underline_rgba_set: bool)

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

Feature: v3_16

fn get_property_underline_set(&self) -> bool

fn set_property_underline_set(&self, underline_set: bool)

fn get_property_variant(&self) -> Variant

fn set_property_variant(&self, variant: Variant)

fn get_property_variant_set(&self) -> bool

fn set_property_variant_set(&self, variant_set: bool)

fn get_property_weight(&self) -> i32

fn set_property_weight(&self, weight: i32)

fn get_property_weight_set(&self) -> bool

fn set_property_weight_set(&self, weight_set: bool)

fn get_property_wrap_mode(&self) -> WrapMode

fn set_property_wrap_mode(&self, wrap_mode: WrapMode)

fn get_property_wrap_mode_set(&self) -> bool

fn set_property_wrap_mode_set(&self, wrap_mode_set: bool)

fn connect_event<F: Fn(&Self, &Object, &Event, &TextIter) -> Inhibit + 'static>(
    &self,
    f: F
) -> SignalHandlerId

The ::event signal is emitted when an event occurs on a region of the buffer marked with this tag.

object

the object the event was fired from (typically a TextView)

event

the event which triggered the signal

iter

a TextIter pointing at the location the event occurred

Returns

true to stop other handlers from being invoked for the event. false to propagate the event further.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading content...

Implementors

impl<O: IsA<TextTag>> TextTagExt for O[src]

Loading content...