Struct gtk4::builders::SingleSelectionBuilder
source · pub struct SingleSelectionBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct SingleSelection
objects.
Implementations§
source§impl SingleSelectionBuilder
impl SingleSelectionBuilder
sourcepub fn autoselect(self, autoselect: bool) -> Self
pub fn autoselect(self, autoselect: bool) -> Self
If the selection will always select an item.
sourcepub fn can_unselect(self, can_unselect: bool) -> Self
pub fn can_unselect(self, can_unselect: bool) -> Self
If unselecting the selected item is allowed.
sourcepub fn build(self) -> SingleSelection
pub fn build(self) -> SingleSelection
Build the SingleSelection
.
Auto Trait Implementations§
impl Freeze for SingleSelectionBuilder
impl RefUnwindSafe for SingleSelectionBuilder
impl !Send for SingleSelectionBuilder
impl !Sync for SingleSelectionBuilder
impl Unpin for SingleSelectionBuilder
impl UnwindSafe for SingleSelectionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more