Trait gtk4::prelude::TreeViewExt

source ·
pub trait TreeViewExt: 'static {
Show 129 methods // Required methods fn append_column(&self, column: &TreeViewColumn) -> i32; fn collapse_all(&self); fn collapse_row(&self, path: &TreePath) -> bool; fn columns_autosize(&self); fn convert_bin_window_to_tree_coords(&self, bx: i32, by: i32) -> (i32, i32); fn convert_bin_window_to_widget_coords( &self, bx: i32, by: i32 ) -> (i32, i32); fn convert_tree_to_bin_window_coords(&self, tx: i32, ty: i32) -> (i32, i32); fn convert_tree_to_widget_coords(&self, tx: i32, ty: i32) -> (i32, i32); fn convert_widget_to_bin_window_coords( &self, wx: i32, wy: i32 ) -> (i32, i32); fn convert_widget_to_tree_coords(&self, wx: i32, wy: i32) -> (i32, i32); fn create_row_drag_icon(&self, path: &TreePath) -> Option<Paintable>; fn enable_model_drag_dest( &self, formats: &ContentFormats, actions: DragAction ); fn enable_model_drag_source( &self, start_button_mask: ModifierType, formats: &ContentFormats, actions: DragAction ); fn expand_all(&self); fn expand_row(&self, path: &TreePath, open_all: bool) -> bool; fn expand_to_path(&self, path: &TreePath); fn activates_on_single_click(&self) -> bool; fn background_area( &self, path: Option<&TreePath>, column: Option<&TreeViewColumn> ) -> Rectangle; fn cell_area( &self, path: Option<&TreePath>, column: Option<&TreeViewColumn> ) -> Rectangle; fn column(&self, n: i32) -> Option<TreeViewColumn>; fn columns(&self) -> Vec<TreeViewColumn>; fn cursor(&self) -> (Option<TreePath>, Option<TreeViewColumn>); fn dest_row_at_pos( &self, drag_x: i32, drag_y: i32 ) -> Option<(Option<TreePath>, TreeViewDropPosition)>; fn drag_dest_row(&self) -> (Option<TreePath>, TreeViewDropPosition); fn enables_search(&self) -> bool; fn enables_tree_lines(&self) -> bool; fn expander_column(&self) -> Option<TreeViewColumn>; fn is_fixed_height_mode(&self) -> bool; fn grid_lines(&self) -> TreeViewGridLines; fn is_headers_clickable(&self) -> bool; fn is_headers_visible(&self) -> bool; fn hover_expands(&self) -> bool; fn is_hover_selection(&self) -> bool; fn level_indentation(&self) -> i32; fn model(&self) -> Option<TreeModel>; fn n_columns(&self) -> u32; fn path_at_pos( &self, x: i32, y: i32 ) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>; fn is_reorderable(&self) -> bool; fn is_rubber_banding(&self) -> bool; fn search_column(&self) -> i32; fn search_entry(&self) -> Option<Editable>; fn selection(&self) -> TreeSelection; fn shows_expanders(&self) -> bool; fn tooltip_column(&self) -> i32; fn tooltip_context( &self, x: i32, y: i32, keyboard_tip: bool ) -> Option<(Option<TreeModel>, TreePath, TreeIter)>; fn visible_range(&self) -> Option<(TreePath, TreePath)>; fn visible_rect(&self) -> Rectangle; fn insert_column(&self, column: &TreeViewColumn, position: i32) -> i32; fn insert_column_with_data_func<P: Fn(&TreeViewColumn, &CellRenderer, &TreeModel, &TreeIter) + 'static>( &self, position: i32, title: &str, cell: &impl IsA<CellRenderer>, func: P ) -> i32; fn is_blank_at_pos( &self, x: i32, y: i32 ) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>; fn is_rubber_banding_active(&self) -> bool; fn map_expanded_rows<P: FnMut(&TreeView, &TreePath)>(&self, func: P); fn move_column_after( &self, column: &TreeViewColumn, base_column: Option<&TreeViewColumn> ); fn remove_column(&self, column: &TreeViewColumn) -> i32; fn row_activated(&self, path: &TreePath, column: Option<&TreeViewColumn>); fn row_expanded(&self, path: &TreePath) -> bool; fn scroll_to_cell( &self, path: Option<&TreePath>, column: Option<&TreeViewColumn>, use_align: bool, row_align: f32, col_align: f32 ); fn scroll_to_point(&self, tree_x: i32, tree_y: i32); fn set_activate_on_single_click(&self, single: bool); fn set_column_drag_function( &self, func: Option<Box_<dyn Fn(&TreeView, &TreeViewColumn, &TreeViewColumn, &TreeViewColumn) -> bool + 'static>> ); fn set_cursor( &self, path: &TreePath, focus_column: Option<&TreeViewColumn>, start_editing: bool ); fn set_cursor_on_cell( &self, path: &TreePath, focus_column: Option<&TreeViewColumn>, focus_cell: Option<&impl IsA<CellRenderer>>, start_editing: bool ); fn set_drag_dest_row( &self, path: Option<&TreePath>, pos: TreeViewDropPosition ); fn set_enable_search(&self, enable_search: bool); fn set_enable_tree_lines(&self, enabled: bool); fn set_expander_column(&self, column: Option<&TreeViewColumn>); fn set_fixed_height_mode(&self, enable: bool); fn set_grid_lines(&self, grid_lines: TreeViewGridLines); fn set_headers_clickable(&self, setting: bool); fn set_headers_visible(&self, headers_visible: bool); fn set_hover_expand(&self, expand: bool); fn set_hover_selection(&self, hover: bool); fn set_level_indentation(&self, indentation: i32); fn set_model(&self, model: Option<&impl IsA<TreeModel>>); fn set_reorderable(&self, reorderable: bool); fn set_row_separator_func<P: Fn(&TreeModel, &TreeIter) -> bool + 'static>( &self, func: P ); fn set_rubber_banding(&self, enable: bool); fn set_search_column(&self, column: i32); fn set_search_entry(&self, entry: Option<&impl IsA<Editable>>); fn set_search_equal_func<P: Fn(&TreeModel, i32, &str, &TreeIter) -> bool + 'static>( &self, search_equal_func: P ); fn set_show_expanders(&self, enabled: bool); fn set_tooltip_cell( &self, tooltip: &Tooltip, path: Option<&TreePath>, column: Option<&TreeViewColumn>, cell: Option<&impl IsA<CellRenderer>> ); fn set_tooltip_column(&self, column: i32); fn set_tooltip_row(&self, tooltip: &Tooltip, path: &TreePath); fn unset_rows_drag_dest(&self); fn unset_rows_drag_source(&self); fn enable_grid_lines(&self) -> TreeViewGridLines; fn set_enable_grid_lines(&self, enable_grid_lines: TreeViewGridLines); fn connect_columns_changed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_cursor_changed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_expand_collapse_cursor_row<F: Fn(&Self, bool, bool, bool) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn emit_expand_collapse_cursor_row( &self, object: bool, p0: bool, p1: bool ) -> bool; fn connect_move_cursor<F: Fn(&Self, MovementStep, i32, bool, bool) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn emit_move_cursor( &self, step: MovementStep, direction: i32, extend: bool, modify: bool ) -> bool; fn connect_row_activated<F: Fn(&Self, &TreePath, Option<&TreeViewColumn>) + 'static>( &self, f: F ) -> SignalHandlerId; fn emit_row_activated( &self, path: &TreePath, column: Option<&TreeViewColumn> ); fn connect_row_collapsed<F: Fn(&Self, &TreeIter, &TreePath) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_row_expanded<F: Fn(&Self, &TreeIter, &TreePath) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_select_all<F: Fn(&Self) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn emit_select_all(&self) -> bool; fn connect_select_cursor_parent<F: Fn(&Self) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn emit_select_cursor_parent(&self) -> bool; fn connect_select_cursor_row<F: Fn(&Self, bool) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn emit_select_cursor_row(&self, object: bool) -> bool; fn connect_start_interactive_search<F: Fn(&Self) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn emit_start_interactive_search(&self) -> bool; fn connect_test_collapse_row<F: Fn(&Self, &TreeIter, &TreePath) -> Inhibit + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_test_expand_row<F: Fn(&Self, &TreeIter, &TreePath) -> Inhibit + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_toggle_cursor_row<F: Fn(&Self) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn emit_toggle_cursor_row(&self) -> bool; fn connect_unselect_all<F: Fn(&Self) -> bool + 'static>( &self, f: F ) -> SignalHandlerId; fn emit_unselect_all(&self) -> bool; fn connect_activate_on_single_click_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_enable_grid_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_enable_search_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_enable_tree_lines_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_expander_column_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_fixed_height_mode_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_headers_clickable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_headers_visible_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_hover_expand_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_hover_selection_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_level_indentation_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_model_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_reorderable_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_rubber_banding_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_search_column_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_show_expanders_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId; fn connect_tooltip_column_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId;
}

Required Methods§

source

fn append_column(&self, column: &TreeViewColumn) -> i32

source

fn collapse_all(&self)

source

fn collapse_row(&self, path: &TreePath) -> bool

source

fn columns_autosize(&self)

source

fn convert_bin_window_to_tree_coords(&self, bx: i32, by: i32) -> (i32, i32)

source

fn convert_bin_window_to_widget_coords(&self, bx: i32, by: i32) -> (i32, i32)

source

fn convert_tree_to_bin_window_coords(&self, tx: i32, ty: i32) -> (i32, i32)

source

fn convert_tree_to_widget_coords(&self, tx: i32, ty: i32) -> (i32, i32)

source

fn convert_widget_to_bin_window_coords(&self, wx: i32, wy: i32) -> (i32, i32)

source

fn convert_widget_to_tree_coords(&self, wx: i32, wy: i32) -> (i32, i32)

source

fn create_row_drag_icon(&self, path: &TreePath) -> Option<Paintable>

source

fn enable_model_drag_dest(&self, formats: &ContentFormats, actions: DragAction)

source

fn enable_model_drag_source( &self, start_button_mask: ModifierType, formats: &ContentFormats, actions: DragAction )

source

fn expand_all(&self)

source

fn expand_row(&self, path: &TreePath, open_all: bool) -> bool

source

fn expand_to_path(&self, path: &TreePath)

source

fn activates_on_single_click(&self) -> bool

source

fn background_area( &self, path: Option<&TreePath>, column: Option<&TreeViewColumn> ) -> Rectangle

source

fn cell_area( &self, path: Option<&TreePath>, column: Option<&TreeViewColumn> ) -> Rectangle

source

fn column(&self, n: i32) -> Option<TreeViewColumn>

source

fn columns(&self) -> Vec<TreeViewColumn>

source

fn cursor(&self) -> (Option<TreePath>, Option<TreeViewColumn>)

source

fn dest_row_at_pos( &self, drag_x: i32, drag_y: i32 ) -> Option<(Option<TreePath>, TreeViewDropPosition)>

source

fn drag_dest_row(&self) -> (Option<TreePath>, TreeViewDropPosition)

source

fn enables_tree_lines(&self) -> bool

source

fn expander_column(&self) -> Option<TreeViewColumn>

source

fn is_fixed_height_mode(&self) -> bool

source

fn grid_lines(&self) -> TreeViewGridLines

source

fn is_headers_clickable(&self) -> bool

source

fn is_headers_visible(&self) -> bool

source

fn hover_expands(&self) -> bool

source

fn is_hover_selection(&self) -> bool

source

fn level_indentation(&self) -> i32

source

fn model(&self) -> Option<TreeModel>

source

fn n_columns(&self) -> u32

source

fn path_at_pos( &self, x: i32, y: i32 ) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>

source

fn is_reorderable(&self) -> bool

source

fn is_rubber_banding(&self) -> bool

source

fn search_column(&self) -> i32

source

fn search_entry(&self) -> Option<Editable>

source

fn selection(&self) -> TreeSelection

source

fn shows_expanders(&self) -> bool

source

fn tooltip_column(&self) -> i32

source

fn tooltip_context( &self, x: i32, y: i32, keyboard_tip: bool ) -> Option<(Option<TreeModel>, TreePath, TreeIter)>

source

fn visible_range(&self) -> Option<(TreePath, TreePath)>

source

fn visible_rect(&self) -> Rectangle

source

fn insert_column(&self, column: &TreeViewColumn, position: i32) -> i32

source

fn insert_column_with_data_func<P: Fn(&TreeViewColumn, &CellRenderer, &TreeModel, &TreeIter) + 'static>( &self, position: i32, title: &str, cell: &impl IsA<CellRenderer>, func: P ) -> i32

source

fn is_blank_at_pos( &self, x: i32, y: i32 ) -> Option<(Option<TreePath>, Option<TreeViewColumn>, i32, i32)>

source

fn is_rubber_banding_active(&self) -> bool

source

fn map_expanded_rows<P: FnMut(&TreeView, &TreePath)>(&self, func: P)

source

fn move_column_after( &self, column: &TreeViewColumn, base_column: Option<&TreeViewColumn> )

source

fn remove_column(&self, column: &TreeViewColumn) -> i32

source

fn row_activated(&self, path: &TreePath, column: Option<&TreeViewColumn>)

source

fn row_expanded(&self, path: &TreePath) -> bool

source

fn scroll_to_cell( &self, path: Option<&TreePath>, column: Option<&TreeViewColumn>, use_align: bool, row_align: f32, col_align: f32 )

source

fn scroll_to_point(&self, tree_x: i32, tree_y: i32)

source

fn set_activate_on_single_click(&self, single: bool)

source

fn set_column_drag_function( &self, func: Option<Box_<dyn Fn(&TreeView, &TreeViewColumn, &TreeViewColumn, &TreeViewColumn) -> bool + 'static>> )

source

fn set_cursor( &self, path: &TreePath, focus_column: Option<&TreeViewColumn>, start_editing: bool )

source

fn set_cursor_on_cell( &self, path: &TreePath, focus_column: Option<&TreeViewColumn>, focus_cell: Option<&impl IsA<CellRenderer>>, start_editing: bool )

source

fn set_drag_dest_row(&self, path: Option<&TreePath>, pos: TreeViewDropPosition)

source

fn set_enable_tree_lines(&self, enabled: bool)

source

fn set_expander_column(&self, column: Option<&TreeViewColumn>)

source

fn set_fixed_height_mode(&self, enable: bool)

source

fn set_grid_lines(&self, grid_lines: TreeViewGridLines)

source

fn set_headers_clickable(&self, setting: bool)

source

fn set_headers_visible(&self, headers_visible: bool)

source

fn set_hover_expand(&self, expand: bool)

source

fn set_hover_selection(&self, hover: bool)

source

fn set_level_indentation(&self, indentation: i32)

source

fn set_model(&self, model: Option<&impl IsA<TreeModel>>)

source

fn set_reorderable(&self, reorderable: bool)

source

fn set_row_separator_func<P: Fn(&TreeModel, &TreeIter) -> bool + 'static>( &self, func: P )

source

fn set_rubber_banding(&self, enable: bool)

source

fn set_search_column(&self, column: i32)

source

fn set_search_entry(&self, entry: Option<&impl IsA<Editable>>)

source

fn set_search_equal_func<P: Fn(&TreeModel, i32, &str, &TreeIter) -> bool + 'static>( &self, search_equal_func: P )

source

fn set_show_expanders(&self, enabled: bool)

source

fn set_tooltip_cell( &self, tooltip: &Tooltip, path: Option<&TreePath>, column: Option<&TreeViewColumn>, cell: Option<&impl IsA<CellRenderer>> )

source

fn set_tooltip_column(&self, column: i32)

source

fn set_tooltip_row(&self, tooltip: &Tooltip, path: &TreePath)

source

fn unset_rows_drag_dest(&self)

source

fn unset_rows_drag_source(&self)

source

fn enable_grid_lines(&self) -> TreeViewGridLines

source

fn set_enable_grid_lines(&self, enable_grid_lines: TreeViewGridLines)

source

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

source

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

source

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

source

fn emit_expand_collapse_cursor_row( &self, object: bool, p0: bool, p1: bool ) -> bool

source

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

source

fn emit_move_cursor( &self, step: MovementStep, direction: i32, extend: bool, modify: bool ) -> bool

source

fn connect_row_activated<F: Fn(&Self, &TreePath, Option<&TreeViewColumn>) + 'static>( &self, f: F ) -> SignalHandlerId

source

fn emit_row_activated(&self, path: &TreePath, column: Option<&TreeViewColumn>)

source

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

source

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

source

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

source

fn emit_select_all(&self) -> bool

source

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

source

fn emit_select_cursor_parent(&self) -> bool

source

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

source

fn emit_select_cursor_row(&self, object: bool) -> bool

source

fn connect_test_collapse_row<F: Fn(&Self, &TreeIter, &TreePath) -> Inhibit + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_test_expand_row<F: Fn(&Self, &TreeIter, &TreePath) -> Inhibit + 'static>( &self, f: F ) -> SignalHandlerId

source

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

source

fn emit_toggle_cursor_row(&self) -> bool

source

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

source

fn emit_unselect_all(&self) -> bool

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

Implementors§