Trait ViewExt

Source
pub trait ViewExt: 'static {
Show 71 methods // Required methods fn get_auto_indent(&self) -> bool; fn get_background_pattern(&self) -> BackgroundPatternType; fn get_completion(&self) -> Option<Completion>; fn get_draw_spaces(&self) -> DrawSpacesFlags; fn get_gutter(&self, window_type: TextWindowType) -> Option<Gutter>; fn get_highlight_current_line(&self) -> bool; fn get_indent_on_tab(&self) -> bool; fn get_indent_width(&self) -> i32; fn get_insert_spaces_instead_of_tabs(&self) -> bool; fn get_right_margin_position(&self) -> u32; fn get_show_line_marks(&self) -> bool; fn get_show_line_numbers(&self) -> bool; fn get_show_right_margin(&self) -> bool; fn get_smart_backspace(&self) -> bool; fn get_smart_home_end(&self) -> SmartHomeEndType; fn get_space_drawer(&self) -> Option<SpaceDrawer>; fn get_tab_width(&self) -> u32; fn get_visual_column(&self, iter: &TextIter) -> u32; fn indent_lines(&self, start: &mut TextIter, end: &mut TextIter); fn set_auto_indent(&self, enable: bool); fn set_background_pattern(&self, background_pattern: BackgroundPatternType); fn set_draw_spaces(&self, flags: DrawSpacesFlags); fn set_highlight_current_line(&self, highlight: bool); fn set_indent_on_tab(&self, enable: bool); fn set_indent_width(&self, width: i32); fn set_insert_spaces_instead_of_tabs(&self, enable: bool); fn set_mark_attributes<P: IsA<MarkAttributes>>( &self, category: &str, attributes: &P, priority: i32, ); fn set_right_margin_position(&self, pos: u32); fn set_show_line_marks(&self, show: bool); fn set_show_line_numbers(&self, show: bool); fn set_show_right_margin(&self, show: bool); fn set_smart_backspace(&self, smart_backspace: bool); fn set_smart_home_end(&self, smart_home_end: SmartHomeEndType); fn set_tab_width(&self, width: u32); fn unindent_lines(&self, start: &mut TextIter, end: &mut TextIter); fn connect_change_case<F: Fn(&Self, ChangeCaseType) + 'static>( &self, f: F, ) -> SignalHandlerId; fn emit_change_case(&self, case_type: ChangeCaseType); fn connect_change_number<F: Fn(&Self, i32) + 'static>( &self, f: F, ) -> SignalHandlerId; fn emit_change_number(&self, count: i32); fn connect_join_lines<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn emit_join_lines(&self); fn connect_line_mark_activated<F: Fn(&Self, &TextIter, &Event) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_move_lines<F: Fn(&Self, bool, i32) + 'static>( &self, f: F, ) -> SignalHandlerId; fn emit_move_lines(&self, copy: bool, count: i32); fn connect_move_to_matching_bracket<F: Fn(&Self, bool) + 'static>( &self, f: F, ) -> SignalHandlerId; fn emit_move_to_matching_bracket(&self, extend_selection: bool); fn connect_move_words<F: Fn(&Self, i32) + 'static>( &self, f: F, ) -> SignalHandlerId; fn emit_move_words(&self, count: i32); fn connect_redo<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn emit_redo(&self); fn connect_show_completion<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn emit_show_completion(&self); fn connect_smart_home_end<F: Fn(&Self, &TextIter, i32) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_undo<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn emit_undo(&self); fn connect_property_auto_indent_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_background_pattern_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_completion_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_draw_spaces_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_highlight_current_line_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_indent_on_tab_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_indent_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_insert_spaces_instead_of_tabs_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_right_margin_position_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_show_line_marks_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_show_line_numbers_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_show_right_margin_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_smart_backspace_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_smart_home_end_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_space_drawer_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_tab_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_auto_indent(&self) -> bool

Source

fn get_background_pattern(&self) -> BackgroundPatternType

Source

fn get_completion(&self) -> Option<Completion>

Source

fn get_draw_spaces(&self) -> DrawSpacesFlags

Source

fn get_gutter(&self, window_type: TextWindowType) -> Option<Gutter>

Source

fn get_highlight_current_line(&self) -> bool

Source

fn get_indent_on_tab(&self) -> bool

Source

fn get_indent_width(&self) -> i32

Source

fn get_insert_spaces_instead_of_tabs(&self) -> bool

Source

fn get_right_margin_position(&self) -> u32

Source

fn get_show_line_marks(&self) -> bool

Source

fn get_show_line_numbers(&self) -> bool

Source

fn get_show_right_margin(&self) -> bool

Source

fn get_smart_backspace(&self) -> bool

Source

fn get_smart_home_end(&self) -> SmartHomeEndType

Source

fn get_space_drawer(&self) -> Option<SpaceDrawer>

Source

fn get_tab_width(&self) -> u32

Source

fn get_visual_column(&self, iter: &TextIter) -> u32

Source

fn indent_lines(&self, start: &mut TextIter, end: &mut TextIter)

Source

fn set_auto_indent(&self, enable: bool)

Source

fn set_background_pattern(&self, background_pattern: BackgroundPatternType)

Source

fn set_draw_spaces(&self, flags: DrawSpacesFlags)

Source

fn set_highlight_current_line(&self, highlight: bool)

Source

fn set_indent_on_tab(&self, enable: bool)

Source

fn set_indent_width(&self, width: i32)

Source

fn set_insert_spaces_instead_of_tabs(&self, enable: bool)

Source

fn set_mark_attributes<P: IsA<MarkAttributes>>( &self, category: &str, attributes: &P, priority: i32, )

Source

fn set_right_margin_position(&self, pos: u32)

Source

fn set_show_line_marks(&self, show: bool)

Source

fn set_show_line_numbers(&self, show: bool)

Source

fn set_show_right_margin(&self, show: bool)

Source

fn set_smart_backspace(&self, smart_backspace: bool)

Source

fn set_smart_home_end(&self, smart_home_end: SmartHomeEndType)

Source

fn set_tab_width(&self, width: u32)

Source

fn unindent_lines(&self, start: &mut TextIter, end: &mut TextIter)

Source

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

Source

fn emit_change_case(&self, case_type: ChangeCaseType)

Source

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

Source

fn emit_change_number(&self, count: i32)

Source

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

Source

fn emit_join_lines(&self)

Source

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

Source

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

Source

fn emit_move_lines(&self, copy: bool, count: i32)

Source

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

Source

fn emit_move_to_matching_bracket(&self, extend_selection: bool)

Source

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

Source

fn emit_move_words(&self, count: i32)

Source

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

Source

fn emit_redo(&self)

Source

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

Source

fn emit_show_completion(&self)

Source

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

Source

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

Source

fn emit_undo(&self)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_property_tab_width_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§

Source§

impl<O: IsA<View>> ViewExt for O