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 new() -> Self
pub fn new() -> Self
Create a new SingleSelectionBuilder
.
sourcepub fn build(self) -> SingleSelection
pub fn build(self) -> SingleSelection
Build the SingleSelection
.
pub fn autoselect(self, autoselect: bool) -> Self
pub fn can_unselect(self, can_unselect: bool) -> Self
pub fn model(self, model: &impl IsA<ListModel>) -> Self
pub fn selected(self, selected: u32) -> Self
Trait Implementations§
source§impl Clone for SingleSelectionBuilder
impl Clone for SingleSelectionBuilder
source§fn clone(&self) -> SingleSelectionBuilder
fn clone(&self) -> SingleSelectionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for SingleSelectionBuilder
impl Default for SingleSelectionBuilder
source§fn default() -> SingleSelectionBuilder
fn default() -> SingleSelectionBuilder
Returns the “default value” for a type. Read more