Trait TreeSelectionExt

Source
pub trait TreeSelectionExt: 'static {
Show 20 methods // Required methods fn count_selected_rows(&self) -> i32; fn get_mode(&self) -> SelectionMode; fn get_selected(&self) -> Option<(TreeModel, TreeIter)>; fn get_selected_rows(&self) -> (Vec<TreePath>, TreeModel); fn get_tree_view(&self) -> Option<TreeView>; fn iter_is_selected(&self, iter: &TreeIter) -> bool; fn path_is_selected(&self, path: &TreePath) -> bool; fn select_all(&self); fn select_iter(&self, iter: &TreeIter); fn select_path(&self, path: &TreePath); fn select_range(&self, start_path: &TreePath, end_path: &TreePath); fn selected_foreach<P: FnMut(&TreeModel, &TreePath, &TreeIter)>( &self, func: P, ); fn set_mode(&self, type_: SelectionMode); fn set_select_function( &self, func: Option<Box<dyn Fn(&TreeSelection, &TreeModel, &TreePath, bool) -> bool + 'static>>, ); fn unselect_all(&self); fn unselect_iter(&self, iter: &TreeIter); fn unselect_path(&self, path: &TreePath); fn unselect_range(&self, start_path: &TreePath, end_path: &TreePath); fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn count_selected_rows(&self) -> i32

Source

fn get_mode(&self) -> SelectionMode

Source

fn get_selected(&self) -> Option<(TreeModel, TreeIter)>

Source

fn get_selected_rows(&self) -> (Vec<TreePath>, TreeModel)

Source

fn get_tree_view(&self) -> Option<TreeView>

Source

fn iter_is_selected(&self, iter: &TreeIter) -> bool

Source

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

Source

fn select_all(&self)

Source

fn select_iter(&self, iter: &TreeIter)

Source

fn select_path(&self, path: &TreePath)

Source

fn select_range(&self, start_path: &TreePath, end_path: &TreePath)

Source

fn selected_foreach<P: FnMut(&TreeModel, &TreePath, &TreeIter)>(&self, func: P)

Source

fn set_mode(&self, type_: SelectionMode)

Source

fn set_select_function( &self, func: Option<Box<dyn Fn(&TreeSelection, &TreeModel, &TreePath, bool) -> bool + 'static>>, )

Source

fn unselect_all(&self)

Source

fn unselect_iter(&self, iter: &TreeIter)

Source

fn unselect_path(&self, path: &TreePath)

Source

fn unselect_range(&self, start_path: &TreePath, end_path: &TreePath)

Source

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

Source

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