Trait gtk4::prelude::TextBufferExtManual
source · pub trait TextBufferExtManual: Sealed + IsA<TextBuffer> + 'static {
// Provided methods
fn create_tag(
&self,
tag_name: Option<&str>,
properties: &[(&str, &dyn ToValue)]
) -> Option<TextTag> { ... }
fn insert_with_tags(
&self,
iter: &mut TextIter,
text: &str,
tags: &[&TextTag]
) { ... }
fn insert_with_tags_by_name(
&self,
iter: &mut TextIter,
text: &str,
tags_names: &[&str]
) { ... }
fn connect_insert_text<F: Fn(&Self, &mut TextIter, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Trait containing manually implemented methods of
TextBuffer
.
Provided Methods§
sourcefn create_tag(
&self,
tag_name: Option<&str>,
properties: &[(&str, &dyn ToValue)]
) -> Option<TextTag>
fn create_tag( &self, tag_name: Option<&str>, properties: &[(&str, &dyn ToValue)] ) -> Option<TextTag>
§Panics
If the properties don’t exists or are not writeable.
fn connect_insert_text<F: Fn(&Self, &mut TextIter, &str) + 'static>( &self, f: F ) -> SignalHandlerId
Object Safety§
This trait is not object safe.