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
.