[][src]Trait gtk::TreeSelectionExt

pub trait TreeSelectionExt: 'static {
    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

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

Loading content...

Implementors

impl<O: IsA<TreeSelection>> TreeSelectionExt for O[src]

Loading content...