Trait gtk::TextBufferExt
[−]
[src]
pub trait TextBufferExt { fn add_mark(&self, mark: &TextMark, where_: &TextIter); fn add_selection_clipboard(&self, clipboard: &Clipboard); fn apply_tag(&self, tag: &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<'a, P: Into<Option<&'a str>>>(
&self,
mark_name: P,
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: &TextMark); fn delete_mark_by_name(&self, name: &str); fn delete_selection(
&self,
interactive: bool,
default_editable: bool
) -> bool; 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 get_bounds(&self) -> (TextIter, TextIter); fn get_char_count(&self) -> i32; fn get_copy_target_list(&self) -> Option<TargetList>; fn get_end_iter(&self) -> TextIter; fn get_has_selection(&self) -> bool; fn get_insert(&self) -> Option<TextMark>; fn get_iter_at_child_anchor(&self, anchor: &TextChildAnchor) -> TextIter; fn get_iter_at_line(&self, line_number: i32) -> TextIter; fn get_iter_at_line_index(
&self,
line_number: i32,
byte_index: i32
) -> TextIter; fn get_iter_at_line_offset(
&self,
line_number: i32,
char_offset: i32
) -> TextIter; fn get_iter_at_mark(&self, mark: &TextMark) -> TextIter; fn get_iter_at_offset(&self, char_offset: i32) -> TextIter; fn get_line_count(&self) -> i32; fn get_mark(&self, name: &str) -> Option<TextMark>; fn get_modified(&self) -> bool; fn get_paste_target_list(&self) -> Option<TargetList>; fn get_selection_bound(&self) -> Option<TextMark>; fn get_selection_bounds(&self) -> Option<(TextIter, TextIter)>; fn get_slice(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool
) -> Option<String>; fn get_start_iter(&self) -> TextIter; fn get_tag_table(&self) -> Option<TextTagTable>; fn get_text(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool
) -> Option<String>; fn insert_child_anchor(&self, iter: &mut TextIter, anchor: &TextChildAnchor); 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: &TextMark, where_: &TextIter); fn move_mark_by_name(&self, name: &str, where_: &TextIter); fn paste_clipboard<'a, P: Into<Option<&'a TextIter>>>(
&self,
clipboard: &Clipboard,
override_location: P,
default_editable: bool
); fn place_cursor(&self, where_: &TextIter); fn register_deserialize_tagset<'a, P: Into<Option<&'a str>>>(
&self,
tagset_name: P
) -> Atom; fn register_serialize_tagset<'a, P: Into<Option<&'a str>>>(
&self,
tagset_name: P
) -> Atom; fn remove_all_tags(&self, start: &TextIter, end: &TextIter); fn remove_selection_clipboard(&self, clipboard: &Clipboard); fn remove_tag(&self, tag: &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 set_modified(&self, setting: bool); fn unregister_deserialize_format(&self, format: &Atom); fn unregister_serialize_format(&self, format: &Atom); fn get_property_cursor_position(&self) -> i32; fn set_property_text(&self, text: Option<&str>); fn connect_apply_tag<F: Fn(&Self, &TextTag, &TextIter, &TextIter) + 'static>(
&self,
f: F
) -> u64; fn connect_begin_user_action<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_delete_range<F: Fn(&Self, &TextIter, &TextIter) + 'static>(
&self,
f: F
) -> u64; fn connect_end_user_action<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_insert_child_anchor<F: Fn(&Self, &TextIter, &TextChildAnchor) + 'static>(
&self,
f: F
) -> u64; fn connect_insert_pixbuf<F: Fn(&Self, &TextIter, &Pixbuf) + 'static>(
&self,
f: F
) -> u64; fn connect_mark_deleted<F: Fn(&Self, &TextMark) + 'static>(
&self,
f: F
) -> u64; fn connect_mark_set<F: Fn(&Self, &TextIter, &TextMark) + 'static>(
&self,
f: F
) -> u64; fn connect_modified_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64; fn connect_paste_done<F: Fn(&Self, &Clipboard) + 'static>(
&self,
f: F
) -> u64; fn connect_remove_tag<F: Fn(&Self, &TextTag, &TextIter, &TextIter) + 'static>(
&self,
f: F
) -> u64; }
Required Methods
fn add_mark(&self, mark: &TextMark, where_: &TextIter)
fn add_selection_clipboard(&self, clipboard: &Clipboard)
fn apply_tag(&self, tag: &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
&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<'a, P: Into<Option<&'a str>>>(
&self,
mark_name: P,
where_: &TextIter,
left_gravity: bool
) -> Option<TextMark>
&self,
mark_name: P,
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
&self,
start_iter: &mut TextIter,
end_iter: &mut TextIter,
default_editable: bool
) -> bool
fn delete_mark(&self, mark: &TextMark)
fn delete_mark_by_name(&self, name: &str)
fn delete_selection(&self, interactive: bool, default_editable: bool) -> bool
fn end_user_action(&self)
fn get_bounds(&self) -> (TextIter, TextIter)
fn get_char_count(&self) -> i32
fn get_copy_target_list(&self) -> Option<TargetList>
fn get_end_iter(&self) -> TextIter
fn get_has_selection(&self) -> bool
fn get_insert(&self) -> Option<TextMark>
fn get_iter_at_child_anchor(&self, anchor: &TextChildAnchor) -> TextIter
fn get_iter_at_line(&self, line_number: i32) -> TextIter
fn get_iter_at_line_index(&self, line_number: i32, byte_index: i32) -> TextIter
fn get_iter_at_line_offset(
&self,
line_number: i32,
char_offset: i32
) -> TextIter
&self,
line_number: i32,
char_offset: i32
) -> TextIter
fn get_iter_at_mark(&self, mark: &TextMark) -> TextIter
fn get_iter_at_offset(&self, char_offset: i32) -> TextIter
fn get_line_count(&self) -> i32
fn get_mark(&self, name: &str) -> Option<TextMark>
fn get_modified(&self) -> bool
fn get_paste_target_list(&self) -> Option<TargetList>
fn get_selection_bound(&self) -> Option<TextMark>
fn get_selection_bounds(&self) -> Option<(TextIter, TextIter)>
fn get_slice(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool
) -> Option<String>
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool
) -> Option<String>
fn get_start_iter(&self) -> TextIter
fn get_tag_table(&self) -> Option<TextTagTable>
fn get_text(
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool
) -> Option<String>
&self,
start: &TextIter,
end: &TextIter,
include_hidden_chars: bool
) -> Option<String>
fn insert_child_anchor(&self, iter: &mut TextIter, anchor: &TextChildAnchor)
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
&self,
iter: &mut TextIter,
start: &TextIter,
end: &TextIter,
default_editable: bool
) -> bool
fn move_mark(&self, mark: &TextMark, where_: &TextIter)
fn move_mark_by_name(&self, name: &str, where_: &TextIter)
fn paste_clipboard<'a, P: Into<Option<&'a TextIter>>>(
&self,
clipboard: &Clipboard,
override_location: P,
default_editable: bool
)
&self,
clipboard: &Clipboard,
override_location: P,
default_editable: bool
)
fn place_cursor(&self, where_: &TextIter)
fn remove_selection_clipboard(&self, clipboard: &Clipboard)
fn remove_tag(&self, tag: &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 set_modified(&self, setting: bool)
fn unregister_deserialize_format(&self, format: &Atom)
fn unregister_serialize_format(&self, format: &Atom)
fn get_property_cursor_position(&self) -> i32
fn set_property_text(&self, text: Option<&str>)
fn connect_apply_tag<F: Fn(&Self, &TextTag, &TextIter, &TextIter) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_begin_user_action<F: Fn(&Self) + 'static>(&self, f: F) -> u64
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64
fn connect_delete_range<F: Fn(&Self, &TextIter, &TextIter) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_end_user_action<F: Fn(&Self) + 'static>(&self, f: F) -> u64
fn connect_insert_child_anchor<F: Fn(&Self, &TextIter, &TextChildAnchor) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_insert_pixbuf<F: Fn(&Self, &TextIter, &Pixbuf) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_mark_deleted<F: Fn(&Self, &TextMark) + 'static>(&self, f: F) -> u64
fn connect_mark_set<F: Fn(&Self, &TextIter, &TextMark) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_modified_changed<F: Fn(&Self) + 'static>(&self, f: F) -> u64
fn connect_paste_done<F: Fn(&Self, &Clipboard) + 'static>(&self, f: F) -> u64
fn connect_remove_tag<F: Fn(&Self, &TextTag, &TextIter, &TextIter) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
Implementors
impl<O: IsA<TextBuffer> + IsA<Object>> TextBufferExt for O