pub struct TextIter(/* private fields */);
Implementations§
Source§impl TextIter
impl TextIter
pub fn assign(&mut self, other: &TextIter)
pub fn backward_char(&mut self) -> bool
pub fn backward_chars(&mut self, count: i32) -> bool
pub fn backward_cursor_position(&mut self) -> bool
pub fn backward_cursor_positions(&mut self, count: i32) -> bool
pub fn backward_find_char<P: FnMut(char) -> bool>( &mut self, pred: P, limit: Option<&TextIter>, ) -> bool
pub fn backward_line(&mut self) -> bool
pub fn backward_lines(&mut self, count: i32) -> bool
pub fn backward_search( &self, str: &str, flags: TextSearchFlags, limit: Option<&TextIter>, ) -> Option<(TextIter, TextIter)>
pub fn backward_sentence_start(&mut self) -> bool
pub fn backward_sentence_starts(&mut self, count: i32) -> bool
pub fn backward_to_tag_toggle<P: IsA<TextTag>>( &mut self, tag: Option<&P>, ) -> bool
pub fn backward_visible_cursor_position(&mut self) -> bool
pub fn backward_visible_cursor_positions(&mut self, count: i32) -> bool
pub fn backward_visible_line(&mut self) -> bool
pub fn backward_visible_lines(&mut self, count: i32) -> bool
pub fn backward_visible_word_start(&mut self) -> bool
pub fn backward_visible_word_starts(&mut self, count: i32) -> bool
pub fn backward_word_start(&mut self) -> bool
pub fn backward_word_starts(&mut self, count: i32) -> bool
pub fn begins_tag<P: IsA<TextTag>>(&self, tag: Option<&P>) -> bool
👎Deprecated
pub fn can_insert(&self, default_editability: bool) -> bool
pub fn editable(&self, default_setting: bool) -> bool
pub fn ends_line(&self) -> bool
pub fn ends_sentence(&self) -> bool
pub fn ends_tag<P: IsA<TextTag>>(&self, tag: Option<&P>) -> bool
pub fn ends_word(&self) -> bool
pub fn forward_char(&mut self) -> bool
pub fn forward_chars(&mut self, count: i32) -> bool
pub fn forward_cursor_position(&mut self) -> bool
pub fn forward_cursor_positions(&mut self, count: i32) -> bool
pub fn forward_find_char<P: FnMut(char) -> bool>( &mut self, pred: P, limit: Option<&TextIter>, ) -> bool
pub fn forward_line(&mut self) -> bool
pub fn forward_lines(&mut self, count: i32) -> bool
pub fn forward_search( &self, str: &str, flags: TextSearchFlags, limit: Option<&TextIter>, ) -> Option<(TextIter, TextIter)>
pub fn forward_sentence_end(&mut self) -> bool
pub fn forward_sentence_ends(&mut self, count: i32) -> bool
pub fn forward_to_end(&mut self)
pub fn forward_to_line_end(&mut self) -> bool
pub fn forward_to_tag_toggle<P: IsA<TextTag>>( &mut self, tag: Option<&P>, ) -> bool
pub fn forward_visible_cursor_position(&mut self) -> bool
pub fn forward_visible_cursor_positions(&mut self, count: i32) -> bool
pub fn forward_visible_line(&mut self) -> bool
pub fn forward_visible_lines(&mut self, count: i32) -> bool
pub fn forward_visible_word_end(&mut self) -> bool
pub fn forward_visible_word_ends(&mut self, count: i32) -> bool
pub fn forward_word_end(&mut self) -> bool
pub fn forward_word_ends(&mut self, count: i32) -> bool
pub fn get_buffer(&self) -> Option<TextBuffer>
pub fn get_bytes_in_line(&self) -> i32
pub fn get_char(&self) -> Option<char>
pub fn get_chars_in_line(&self) -> i32
pub fn get_child_anchor(&self) -> Option<TextChildAnchor>
pub fn get_language(&self) -> Option<Language>
pub fn get_line(&self) -> i32
pub fn get_line_index(&self) -> i32
pub fn get_line_offset(&self) -> i32
pub fn get_marks(&self) -> Vec<TextMark>
pub fn get_offset(&self) -> i32
pub fn get_pixbuf(&self) -> Option<Pixbuf>
pub fn get_slice(&self, end: &TextIter) -> Option<GString>
pub fn get_text(&self, end: &TextIter) -> Option<GString>
pub fn get_visible_line_index(&self) -> i32
pub fn get_visible_line_offset(&self) -> i32
pub fn get_visible_slice(&self, end: &TextIter) -> Option<GString>
pub fn get_visible_text(&self, end: &TextIter) -> Option<GString>
pub fn has_tag<P: IsA<TextTag>>(&self, tag: &P) -> bool
pub fn in_range(&self, start: &TextIter, end: &TextIter) -> bool
pub fn inside_sentence(&self) -> bool
pub fn inside_word(&self) -> bool
pub fn is_cursor_position(&self) -> bool
pub fn is_end(&self) -> bool
pub fn is_start(&self) -> bool
pub fn order(&mut self, second: &mut TextIter)
pub fn set_line(&mut self, line_number: i32)
pub fn set_line_index(&mut self, byte_on_line: i32)
pub fn set_line_offset(&mut self, char_on_line: i32)
pub fn set_offset(&mut self, char_offset: i32)
pub fn set_visible_line_index(&mut self, byte_on_line: i32)
pub fn set_visible_line_offset(&mut self, char_on_line: i32)
pub fn starts_line(&self) -> bool
pub fn starts_sentence(&self) -> bool
pub fn starts_tag<P: IsA<TextTag>>(&self, tag: Option<&P>) -> bool
pub fn starts_word(&self) -> bool
pub fn toggles_tag<P: IsA<TextTag>>(&self, tag: Option<&P>) -> bool
Source§impl TextIter
impl TextIter
pub fn get_attributes(&self, values: &TextAttributes) -> bool
Trait Implementations§
Source§impl Ord for TextIter
impl Ord for TextIter
Source§impl PartialOrd for TextIter
impl PartialOrd for TextIter
Source§impl StaticType for TextIter
impl StaticType for TextIter
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for TextIter
Auto Trait Implementations§
impl Freeze for TextIter
impl RefUnwindSafe for TextIter
impl !Send for TextIter
impl !Sync for TextIter
impl Unpin for TextIter
impl UnwindSafe for TextIter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more