Trait gtk::TreeSelectionExt
source · [−]pub trait TreeSelectionExt: 'static {
Show 20 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 set_mode(&self, type_: SelectionMode)
sourcefn set_select_function(
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
sourcefn connect_property_mode_notify<F: Fn(&Self) + 'static>(