Trait gtk4::prelude::TextViewExt

source ·
pub trait TextViewExt: IsA<TextView> + Sealed + 'static {
Show 123 methods // Provided methods fn add_child_at_anchor( &self, child: &impl IsA<Widget>, anchor: &impl IsA<TextChildAnchor> ) { ... } fn add_overlay(&self, child: &impl IsA<Widget>, xpos: i32, ypos: i32) { ... } fn backward_display_line(&self, iter: &mut TextIter) -> bool { ... } fn backward_display_line_start(&self, iter: &mut TextIter) -> bool { ... } fn buffer_to_window_coords( &self, win: TextWindowType, buffer_x: i32, buffer_y: i32 ) -> (i32, i32) { ... } fn forward_display_line(&self, iter: &mut TextIter) -> bool { ... } fn forward_display_line_end(&self, iter: &mut TextIter) -> bool { ... } fn accepts_tab(&self) -> bool { ... } fn bottom_margin(&self) -> i32 { ... } fn buffer(&self) -> TextBuffer { ... } fn cursor_locations( &self, iter: Option<&TextIter> ) -> (Rectangle, Rectangle) { ... } fn is_cursor_visible(&self) -> bool { ... } fn is_editable(&self) -> bool { ... } fn extra_menu(&self) -> MenuModel { ... } fn gutter(&self, win: TextWindowType) -> Option<Widget> { ... } fn indent(&self) -> i32 { ... } fn input_hints(&self) -> InputHints { ... } fn input_purpose(&self) -> InputPurpose { ... } fn iter_at_location(&self, x: i32, y: i32) -> Option<TextIter> { ... } fn iter_at_position(&self, x: i32, y: i32) -> Option<(TextIter, i32)> { ... } fn iter_location(&self, iter: &TextIter) -> Rectangle { ... } fn justification(&self) -> Justification { ... } fn left_margin(&self) -> i32 { ... } fn line_at_y(&self, y: i32) -> (TextIter, i32) { ... } fn line_yrange(&self, iter: &TextIter) -> (i32, i32) { ... } fn ltr_context(&self) -> Context { ... } fn is_monospace(&self) -> bool { ... } fn overwrites(&self) -> bool { ... } fn pixels_above_lines(&self) -> i32 { ... } fn pixels_below_lines(&self) -> i32 { ... } fn pixels_inside_wrap(&self) -> i32 { ... } fn right_margin(&self) -> i32 { ... } fn rtl_context(&self) -> Context { ... } fn tabs(&self) -> Option<TabArray> { ... } fn top_margin(&self) -> i32 { ... } fn visible_rect(&self) -> Rectangle { ... } fn wrap_mode(&self) -> WrapMode { ... } fn im_context_filter_keypress(&self, event: impl AsRef<Event>) -> bool { ... } fn move_mark_onscreen(&self, mark: &impl IsA<TextMark>) -> bool { ... } fn move_overlay(&self, child: &impl IsA<Widget>, xpos: i32, ypos: i32) { ... } fn move_visually(&self, iter: &mut TextIter, count: i32) -> bool { ... } fn place_cursor_onscreen(&self) -> bool { ... } fn remove(&self, child: &impl IsA<Widget>) { ... } fn reset_cursor_blink(&self) { ... } fn reset_im_context(&self) { ... } fn scroll_mark_onscreen(&self, mark: &impl IsA<TextMark>) { ... } fn scroll_to_iter( &self, iter: &mut TextIter, within_margin: f64, use_align: bool, xalign: f64, yalign: f64 ) -> bool { ... } fn scroll_to_mark( &self, mark: &impl IsA<TextMark>, within_margin: f64, use_align: bool, xalign: f64, yalign: f64 ) { ... } fn set_accepts_tab(&self, accepts_tab: bool) { ... } fn set_bottom_margin(&self, bottom_margin: i32) { ... } fn set_buffer(&self, buffer: Option<&impl IsA<TextBuffer>>) { ... } fn set_cursor_visible(&self, setting: bool) { ... } fn set_editable(&self, setting: bool) { ... } fn set_extra_menu(&self, model: Option<&impl IsA<MenuModel>>) { ... } fn set_gutter(&self, win: TextWindowType, widget: Option<&impl IsA<Widget>>) { ... } fn set_indent(&self, indent: i32) { ... } fn set_input_hints(&self, hints: InputHints) { ... } fn set_input_purpose(&self, purpose: InputPurpose) { ... } fn set_justification(&self, justification: Justification) { ... } fn set_left_margin(&self, left_margin: i32) { ... } fn set_monospace(&self, monospace: bool) { ... } fn set_overwrite(&self, overwrite: bool) { ... } fn set_pixels_above_lines(&self, pixels_above_lines: i32) { ... } fn set_pixels_below_lines(&self, pixels_below_lines: i32) { ... } fn set_pixels_inside_wrap(&self, pixels_inside_wrap: i32) { ... } fn set_right_margin(&self, right_margin: i32) { ... } fn set_tabs(&self, tabs: &TabArray) { ... } fn set_top_margin(&self, top_margin: i32) { ... } fn set_wrap_mode(&self, wrap_mode: WrapMode) { ... } fn starts_display_line(&self, iter: &TextIter) -> bool { ... } fn window_to_buffer_coords( &self, win: TextWindowType, window_x: i32, window_y: i32 ) -> (i32, i32) { ... } fn im_module(&self) -> Option<GString> { ... } fn set_im_module(&self, im_module: Option<&str>) { ... } fn connect_backspace<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn emit_backspace(&self) { ... } fn connect_copy_clipboard<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_copy_clipboard(&self) { ... } fn connect_cut_clipboard<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_cut_clipboard(&self) { ... } fn connect_delete_from_cursor<F: Fn(&Self, DeleteType, i32) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_delete_from_cursor(&self, type_: DeleteType, count: i32) { ... } fn connect_extend_selection<F: Fn(&Self, TextExtendSelection, &TextIter, &TextIter, &TextIter) -> Propagation + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_insert_at_cursor<F: Fn(&Self, &str) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_insert_at_cursor(&self, string: &str) { ... } fn connect_insert_emoji<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_insert_emoji(&self) { ... } fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_move_cursor( &self, step: MovementStep, count: i32, extend_selection: bool ) { ... } fn connect_move_viewport<F: Fn(&Self, ScrollStep, i32) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_move_viewport(&self, step: ScrollStep, count: i32) { ... } fn connect_paste_clipboard<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_paste_clipboard(&self) { ... } fn connect_preedit_changed<F: Fn(&Self, &str) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_preedit_changed(&self, preedit: &str) { ... } fn connect_select_all<F: Fn(&Self, bool) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_select_all(&self, select: bool) { ... } fn connect_set_anchor<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_set_anchor(&self) { ... } fn connect_toggle_cursor_visible<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_toggle_cursor_visible(&self) { ... } fn connect_toggle_overwrite<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn emit_toggle_overwrite(&self) { ... } fn connect_accepts_tab_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_bottom_margin_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_buffer_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_cursor_visible_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_editable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_extra_menu_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_im_module_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_indent_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_input_hints_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_input_purpose_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_justification_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_left_margin_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_monospace_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_overwrite_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_pixels_above_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_pixels_below_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_right_margin_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_tabs_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_top_margin_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... } fn connect_wrap_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn add_child_at_anchor( &self, child: &impl IsA<Widget>, anchor: &impl IsA<TextChildAnchor> )

source

fn add_overlay(&self, child: &impl IsA<Widget>, xpos: i32, ypos: i32)

source

fn backward_display_line(&self, iter: &mut TextIter) -> bool

source

fn backward_display_line_start(&self, iter: &mut TextIter) -> bool

source

fn buffer_to_window_coords( &self, win: TextWindowType, buffer_x: i32, buffer_y: i32 ) -> (i32, i32)

source

fn forward_display_line(&self, iter: &mut TextIter) -> bool

source

fn forward_display_line_end(&self, iter: &mut TextIter) -> bool

source

fn accepts_tab(&self) -> bool

source

fn bottom_margin(&self) -> i32

source

fn buffer(&self) -> TextBuffer

source

fn cursor_locations(&self, iter: Option<&TextIter>) -> (Rectangle, Rectangle)

source

fn is_cursor_visible(&self) -> bool

source

fn is_editable(&self) -> bool

source

fn extra_menu(&self) -> MenuModel

source

fn gutter(&self, win: TextWindowType) -> Option<Widget>

source

fn indent(&self) -> i32

source

fn input_hints(&self) -> InputHints

source

fn input_purpose(&self) -> InputPurpose

source

fn iter_at_location(&self, x: i32, y: i32) -> Option<TextIter>

source

fn iter_at_position(&self, x: i32, y: i32) -> Option<(TextIter, i32)>

source

fn iter_location(&self, iter: &TextIter) -> Rectangle

source

fn justification(&self) -> Justification

source

fn left_margin(&self) -> i32

source

fn line_at_y(&self, y: i32) -> (TextIter, i32)

source

fn line_yrange(&self, iter: &TextIter) -> (i32, i32)

source

fn ltr_context(&self) -> Context

Available on crate feature v4_4 only.
source

fn is_monospace(&self) -> bool

source

fn overwrites(&self) -> bool

source

fn pixels_above_lines(&self) -> i32

source

fn pixels_below_lines(&self) -> i32

source

fn pixels_inside_wrap(&self) -> i32

source

fn right_margin(&self) -> i32

source

fn rtl_context(&self) -> Context

Available on crate feature v4_4 only.
source

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

source

fn top_margin(&self) -> i32

source

fn visible_rect(&self) -> Rectangle

source

fn wrap_mode(&self) -> WrapMode

source

fn im_context_filter_keypress(&self, event: impl AsRef<Event>) -> bool

source

fn move_mark_onscreen(&self, mark: &impl IsA<TextMark>) -> bool

source

fn move_overlay(&self, child: &impl IsA<Widget>, xpos: i32, ypos: i32)

source

fn move_visually(&self, iter: &mut TextIter, count: i32) -> bool

source

fn place_cursor_onscreen(&self) -> bool

source

fn remove(&self, child: &impl IsA<Widget>)

source

fn reset_im_context(&self)

source

fn scroll_mark_onscreen(&self, mark: &impl IsA<TextMark>)

source

fn scroll_to_iter( &self, iter: &mut TextIter, within_margin: f64, use_align: bool, xalign: f64, yalign: f64 ) -> bool

source

fn scroll_to_mark( &self, mark: &impl IsA<TextMark>, within_margin: f64, use_align: bool, xalign: f64, yalign: f64 )

source

fn set_accepts_tab(&self, accepts_tab: bool)

source

fn set_bottom_margin(&self, bottom_margin: i32)

source

fn set_buffer(&self, buffer: Option<&impl IsA<TextBuffer>>)

source

fn set_cursor_visible(&self, setting: bool)

source

fn set_editable(&self, setting: bool)

source

fn set_extra_menu(&self, model: Option<&impl IsA<MenuModel>>)

source

fn set_gutter(&self, win: TextWindowType, widget: Option<&impl IsA<Widget>>)

source

fn set_indent(&self, indent: i32)

source

fn set_input_hints(&self, hints: InputHints)

source

fn set_input_purpose(&self, purpose: InputPurpose)

source

fn set_justification(&self, justification: Justification)

source

fn set_left_margin(&self, left_margin: i32)

source

fn set_monospace(&self, monospace: bool)

source

fn set_overwrite(&self, overwrite: bool)

source

fn set_pixels_above_lines(&self, pixels_above_lines: i32)

source

fn set_pixels_below_lines(&self, pixels_below_lines: i32)

source

fn set_pixels_inside_wrap(&self, pixels_inside_wrap: i32)

source

fn set_right_margin(&self, right_margin: i32)

source

fn set_tabs(&self, tabs: &TabArray)

source

fn set_top_margin(&self, top_margin: i32)

source

fn set_wrap_mode(&self, wrap_mode: WrapMode)

source

fn starts_display_line(&self, iter: &TextIter) -> bool

source

fn window_to_buffer_coords( &self, win: TextWindowType, window_x: i32, window_y: i32 ) -> (i32, i32)

source

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

source

fn set_im_module(&self, im_module: Option<&str>)

source

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

source

fn emit_backspace(&self)

source

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

source

fn emit_copy_clipboard(&self)

source

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

source

fn emit_cut_clipboard(&self)

source

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

source

fn emit_delete_from_cursor(&self, type_: DeleteType, count: i32)

source

fn connect_extend_selection<F: Fn(&Self, TextExtendSelection, &TextIter, &TextIter, &TextIter) -> Propagation + 'static>( &self, f: F ) -> SignalHandlerId

source

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

source

fn emit_insert_at_cursor(&self, string: &str)

source

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

source

fn emit_insert_emoji(&self)

source

fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn emit_move_cursor( &self, step: MovementStep, count: i32, extend_selection: bool )

source

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

source

fn emit_move_viewport(&self, step: ScrollStep, count: i32)

source

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

source

fn emit_paste_clipboard(&self)

source

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

source

fn emit_preedit_changed(&self, preedit: &str)

source

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

source

fn emit_select_all(&self, select: bool)

source

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

source

fn emit_set_anchor(&self)

source

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

source

fn emit_toggle_cursor_visible(&self)

source

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

source

fn emit_toggle_overwrite(&self)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§