Trait TextViewExt

Source
pub trait TextViewExt: 'static {
Show 124 methods // Required methods fn add_child_at_anchor<P: IsA<Widget>, Q: IsA<TextChildAnchor>>( &self, child: &P, anchor: &Q, ); fn add_child_in_window<P: IsA<Widget>>( &self, child: &P, which_window: TextWindowType, 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 get_accepts_tab(&self) -> bool; fn get_border_window_size(&self, type_: TextWindowType) -> i32; fn get_bottom_margin(&self) -> i32; fn get_buffer(&self) -> Option<TextBuffer>; fn get_cursor_locations( &self, iter: Option<&TextIter>, ) -> (Rectangle, Rectangle); fn get_cursor_visible(&self) -> bool; fn get_default_attributes(&self) -> TextAttributes; fn get_editable(&self) -> bool; fn get_indent(&self) -> i32; fn get_input_hints(&self) -> InputHints; fn get_input_purpose(&self) -> InputPurpose; fn get_iter_at_location(&self, x: i32, y: i32) -> Option<TextIter>; fn get_iter_at_position(&self, x: i32, y: i32) -> Option<(TextIter, i32)>; fn get_iter_location(&self, iter: &TextIter) -> Rectangle; fn get_justification(&self) -> Justification; fn get_left_margin(&self) -> i32; fn get_line_at_y(&self, y: i32) -> (TextIter, i32); fn get_line_yrange(&self, iter: &TextIter) -> (i32, i32); fn get_monospace(&self) -> bool; fn get_overwrite(&self) -> bool; fn get_pixels_above_lines(&self) -> i32; fn get_pixels_below_lines(&self) -> i32; fn get_pixels_inside_wrap(&self) -> i32; fn get_right_margin(&self) -> i32; fn get_tabs(&self) -> Option<TabArray>; fn get_top_margin(&self) -> i32; fn get_visible_rect(&self) -> Rectangle; fn get_window(&self, win: TextWindowType) -> Option<Window>; fn get_window_type<P: IsA<Window>>(&self, window: &P) -> TextWindowType; fn get_wrap_mode(&self) -> WrapMode; fn im_context_filter_keypress(&self, event: &EventKey) -> bool; fn move_child<P: IsA<Widget>>(&self, child: &P, xpos: i32, ypos: i32); fn move_mark_onscreen<P: IsA<TextMark>>(&self, mark: &P) -> bool; fn move_visually(&self, iter: &mut TextIter, count: i32) -> bool; fn place_cursor_onscreen(&self) -> bool; fn reset_cursor_blink(&self); fn reset_im_context(&self); fn scroll_mark_onscreen<P: IsA<TextMark>>(&self, mark: &P); fn scroll_to_iter( &self, iter: &mut TextIter, within_margin: f64, use_align: bool, xalign: f64, yalign: f64, ) -> bool; fn scroll_to_mark<P: IsA<TextMark>>( &self, mark: &P, within_margin: f64, use_align: bool, xalign: f64, yalign: f64, ); fn set_accepts_tab(&self, accepts_tab: bool); fn set_border_window_size(&self, type_: TextWindowType, size: i32); fn set_bottom_margin(&self, bottom_margin: i32); fn set_buffer<P: IsA<TextBuffer>>(&self, buffer: Option<&P>); fn set_cursor_visible(&self, setting: bool); fn set_editable(&self, setting: bool); 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 get_property_im_module(&self) -> Option<GString>; fn set_property_im_module(&self, im_module: Option<&str>); fn get_property_monospace(&self) -> bool; fn set_property_monospace(&self, monospace: bool); fn get_property_populate_all(&self) -> bool; fn set_property_populate_all(&self, populate_all: bool); 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) -> Inhibit + '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_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_populate_popup<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId; 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_property_accepts_tab_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_bottom_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_buffer_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_cursor_visible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_editable_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_im_module_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_indent_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_input_hints_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_input_purpose_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_justification_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_left_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_monospace_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_overwrite_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_pixels_above_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_pixels_below_lines_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_pixels_inside_wrap_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_populate_all_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_right_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_tabs_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_top_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_wrap_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

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

Source

fn add_child_in_window<P: IsA<Widget>>( &self, child: &P, which_window: TextWindowType, 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 get_accepts_tab(&self) -> bool

Source

fn get_border_window_size(&self, type_: TextWindowType) -> i32

Source

fn get_bottom_margin(&self) -> i32

Source

fn get_buffer(&self) -> Option<TextBuffer>

Source

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

Source

fn get_cursor_visible(&self) -> bool

Source

fn get_default_attributes(&self) -> TextAttributes

Source

fn get_editable(&self) -> bool

Source

fn get_indent(&self) -> i32

Source

fn get_input_hints(&self) -> InputHints

Source

fn get_input_purpose(&self) -> InputPurpose

Source

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

Source

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

Source

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

Source

fn get_justification(&self) -> Justification

Source

fn get_left_margin(&self) -> i32

Source

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

Source

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

Source

fn get_monospace(&self) -> bool

Source

fn get_overwrite(&self) -> bool

Source

fn get_pixels_above_lines(&self) -> i32

Source

fn get_pixels_below_lines(&self) -> i32

Source

fn get_pixels_inside_wrap(&self) -> i32

Source

fn get_right_margin(&self) -> i32

Source

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

Source

fn get_top_margin(&self) -> i32

Source

fn get_visible_rect(&self) -> Rectangle

Source

fn get_window(&self, win: TextWindowType) -> Option<Window>

Source

fn get_window_type<P: IsA<Window>>(&self, window: &P) -> TextWindowType

Source

fn get_wrap_mode(&self) -> WrapMode

Source

fn im_context_filter_keypress(&self, event: &EventKey) -> bool

Source

fn move_child<P: IsA<Widget>>(&self, child: &P, xpos: i32, ypos: i32)

Source

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

Source

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

Source

fn place_cursor_onscreen(&self) -> bool

Source

fn reset_im_context(&self)

Source

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

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<P: IsA<TextMark>>( &self, mark: &P, within_margin: f64, use_align: bool, xalign: f64, yalign: f64, )

Source

fn set_accepts_tab(&self, accepts_tab: bool)

Source

fn set_border_window_size(&self, type_: TextWindowType, size: i32)

Source

fn set_bottom_margin(&self, bottom_margin: i32)

Source

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

Source

fn set_cursor_visible(&self, setting: bool)

Source

fn set_editable(&self, setting: bool)

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 get_property_im_module(&self) -> Option<GString>

Source

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

Source

fn get_property_monospace(&self) -> bool

Source

fn set_property_monospace(&self, monospace: bool)

Source

fn get_property_populate_all(&self) -> bool

Source

fn set_property_populate_all(&self, populate_all: bool)

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) -> Inhibit + '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_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_populate_popup<F: Fn(&Self, &Widget) + 'static>( &self, f: F, ) -> SignalHandlerId

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_property_accepts_tab_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§