Trait gtk4::subclass::selection_model::SelectionModelImpl
source · [−]pub trait SelectionModelImpl: ListModelImpl {
fn selection_in_range(
&self,
model: &Self::Type,
position: u32,
n_items: u32
) -> Bitset { ... }
fn is_selected(&self, model: &Self::Type, position: u32) -> bool { ... }
fn select_all(&self, model: &Self::Type) -> bool { ... }
fn select_item(
&self,
model: &Self::Type,
position: u32,
unselect_rest: bool
) -> bool { ... }
fn select_range(
&self,
model: &Self::Type,
position: u32,
n_items: u32,
unselect_rest: bool
) -> bool { ... }
fn set_selection(
&self,
model: &Self::Type,
selected: &Bitset,
mask: &Bitset
) -> bool { ... }
fn unselect_all(&self, model: &Self::Type) -> bool { ... }
fn unselect_item(&self, model: &Self::Type, position: u32) -> bool { ... }
fn unselect_range(
&self,
model: &Self::Type,
position: u32,
n_items: u32
) -> bool { ... }
}
Provided Methods
source
fn is_selected(&self, model: &Self::Type, position: u32) -> bool
source
fn select_all(&self, model: &Self::Type) -> bool
sourcefn select_range(
fn select_range(
&self,
model: &Self::Type,
position: u32,
n_items: u32,
unselect_rest: bool
) -> bool
source
fn unselect_all(&self, model: &Self::Type) -> bool
source