[go: up one dir, main page]

SelectionModelExt

Trait SelectionModelExt 

Source
pub trait SelectionModelExt: IsA<SelectionModel> + 'static {
    // Provided methods
    fn selection(&self) -> Bitset { ... }
    fn selection_in_range(&self, position: u32, n_items: u32) -> Bitset { ... }
    fn is_selected(&self, position: u32) -> bool { ... }
    fn select_all(&self) -> bool { ... }
    fn select_item(&self, position: u32, unselect_rest: bool) -> bool { ... }
    fn select_range(
        &self,
        position: u32,
        n_items: u32,
        unselect_rest: bool,
    ) -> bool { ... }
    fn selection_changed(&self, position: u32, n_items: u32) { ... }
    fn set_selection(&self, selected: &Bitset, mask: &Bitset) -> bool { ... }
    fn unselect_all(&self) -> bool { ... }
    fn unselect_item(&self, position: u32) -> bool { ... }
    fn unselect_range(&self, position: u32, n_items: u32) -> bool { ... }
    fn connect_selection_changed<F: Fn(&Self, u32, u32) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn selection(&self) -> Bitset

Source

fn selection_in_range(&self, position: u32, n_items: u32) -> Bitset

Source

fn is_selected(&self, position: u32) -> bool

Source

fn select_all(&self) -> bool

Source

fn select_item(&self, position: u32, unselect_rest: bool) -> bool

Source

fn select_range(&self, position: u32, n_items: u32, unselect_rest: bool) -> bool

Source

fn selection_changed(&self, position: u32, n_items: u32)

Source

fn set_selection(&self, selected: &Bitset, mask: &Bitset) -> bool

Source

fn unselect_all(&self) -> bool

Source

fn unselect_item(&self, position: u32) -> bool

Source

fn unselect_range(&self, position: u32, n_items: u32) -> bool

Source

fn connect_selection_changed<F: Fn(&Self, u32, u32) + '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§