pub trait TextBufferExt: IsA<TextBuffer> + Sealed + 'static {
Show 81 methods
// Provided methods
fn add_mark(&self, mark: &impl IsA<TextMark>, where_: &TextIter) { ... }
fn add_selection_clipboard(&self, clipboard: &Clipboard) { ... }
fn apply_tag(
&self,
tag: &impl IsA<TextTag>,
start: &TextIter,
end: &TextIter
) { ... }
fn apply_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter) { ... }
fn backspace(
&self,
iter: &mut TextIter,
interactive: bool,
default_editable: bool
) -> bool { ... }
fn begin_user_action(&self) { ... }
fn copy_clipboard(&self, clipboard: &Clipboard) { ... }
fn create_child_anchor(
&self,
iter: &mut TextIter
) -> Option<TextChildAnchor> { ... }
fn create_mark(
&self,
mark_name: Option<&str>,
where_: &TextIter,
left_gravity: bool
) -> Option<TextMark> { ... }
fn cut_clipboard(&self, clipboard: &Clipboard, default_editable: bool) { ... }
fn delete(&self, start: &mut TextIter, end: &mut TextIter) { ... }
fn delete_interactive(
&self,
start_iter: &mut TextIter,
end_iter: &mut TextIter,
default_editable: bool
) -> bool { ... }
fn delete_mark(&self, mark: &impl IsA<TextMark>) { ... }
fn delete_mark_by_name(&self, name: &str) { ... }
fn delete_selection(
&self,
interactive: bool,
default_editable: bool
) -> bool { ... }
fn deserialize(
&self,
content_buffer: &impl IsA<TextBuffer>,
format: &Atom,
iter: &mut TextIter,
data: &[u8]
) -> Result<(), Error> { ... }
fn deserialize_get_can_create_tags(&self, format: &Atom) -> bool { ... }
fn deserialize_set_can_create_tags(
&self,
format: &Atom,
can_create_tags: bool
) { ... }
fn end_user_action(&self) { ... }
fn bounds(&self) -> (TextIter, TextIter) { ... }
fn char_count(&self) -> i32 { ... }
fn copy_target_list(&self) -> Option<TargetList> { ... }
fn deserialize_formats(&self) -> Vec<Atom> { ... }
fn end_iter(&self) -> TextIter { ... }
fn has_selection(&self) -> bool { ... }
fn get_insert(&self) -> Option<TextMark> { ... }
fn iter_at_child_anchor(
&self,
anchor: &impl IsA<TextChildAnchor>
) -> TextIter { ... }
fn iter_at_line(&self, line_number: i32) -> TextIter { ... }
fn iter_at_line_index(&self, line_number: i32, byte_index: i32) -> TextIter { ... }
fn iter_at_line_offset(
&self,
line_number: i32,
char_offset: i32
) -> TextIter { ... }
fn iter_at_mark(&self, mark: &impl IsA<TextMark>) -> TextIter { ... }
fn iter_at_offset(&self, char_offset: i32) -> TextIter { ... }
fn line_count(&self) -> i32 { ... }
fn mark(&self, name: &str) -> Option<TextMark> { ... }
fn is_modified(&self) -> bool { ... }
fn paste_target_list(&self) -> Option<TargetList> { ... }
fn selection_bound(&self) -> Option<TextMark> { ... }
fn selection_bounds(&self) -> Option<(TextIter, TextIter)> { ... }
fn serialize_formats(&self) -> Vec<Atom> { ... }
fn slice(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool
) -> Option<GString> { ... }
fn start_iter(&self) -> TextIter { ... }
fn tag_table(&self) -> Option<TextTagTable> { ... }
fn text(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool
) -> Option<GString> { ... }
fn insert(&self, iter: &mut TextIter, text: &str) { ... }
fn insert_at_cursor(&self, text: &str) { ... }
fn insert_child_anchor(
&self,
iter: &mut TextIter,
anchor: &impl IsA<TextChildAnchor>
) { ... }
fn insert_interactive(
&self,
iter: &mut TextIter,
text: &str,
default_editable: bool
) -> bool { ... }
fn insert_interactive_at_cursor(
&self,
text: &str,
default_editable: bool
) -> bool { ... }
fn insert_markup(&self, iter: &mut TextIter, markup: &str) { ... }
fn insert_pixbuf(&self, iter: &mut TextIter, pixbuf: &Pixbuf) { ... }
fn insert_range(
&self,
iter: &mut TextIter,
start: &TextIter,
end: &TextIter
) { ... }
fn insert_range_interactive(
&self,
iter: &mut TextIter,
start: &TextIter,
end: &TextIter,
default_editable: bool
) -> bool { ... }
fn move_mark(&self, mark: &impl IsA<TextMark>, where_: &TextIter) { ... }
fn move_mark_by_name(&self, name: &str, where_: &TextIter) { ... }
fn paste_clipboard(
&self,
clipboard: &Clipboard,
override_location: Option<&TextIter>,
default_editable: bool
) { ... }
fn place_cursor(&self, where_: &TextIter) { ... }
fn register_deserialize_tagset(&self, tagset_name: Option<&str>) -> Atom { ... }
fn register_serialize_tagset(&self, tagset_name: Option<&str>) -> Atom { ... }
fn remove_all_tags(&self, start: &TextIter, end: &TextIter) { ... }
fn remove_selection_clipboard(&self, clipboard: &Clipboard) { ... }
fn remove_tag(
&self,
tag: &impl IsA<TextTag>,
start: &TextIter,
end: &TextIter
) { ... }
fn remove_tag_by_name(&self, name: &str, start: &TextIter, end: &TextIter) { ... }
fn select_range(&self, ins: &TextIter, bound: &TextIter) { ... }
fn serialize(
&self,
content_buffer: &impl IsA<TextBuffer>,
format: &Atom,
start: &TextIter,
end: &TextIter
) -> Vec<u8> { ... }
fn set_modified(&self, setting: bool) { ... }
fn set_text(&self, text: &str) { ... }
fn unregister_deserialize_format(&self, format: &Atom) { ... }
fn unregister_serialize_format(&self, format: &Atom) { ... }
fn cursor_position(&self) -> i32 { ... }
fn connect_begin_user_action<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
fn connect_end_user_action<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_mark_deleted<F: Fn(&Self, &TextMark) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_mark_set<F: Fn(&Self, &TextIter, &TextMark) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_modified_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_paste_done<F: Fn(&Self, &Clipboard) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_copy_target_list_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_cursor_position_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_has_selection_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_paste_target_list_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}