Struct gtk4::builders::SingleSelectionBuilder
source · [−]pub struct SingleSelectionBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct SingleSelection
objects.
Implementations
sourceimpl 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
sourceimpl Clone for SingleSelectionBuilder
impl Clone for SingleSelectionBuilder
sourcefn clone(&self) -> SingleSelectionBuilder
fn clone(&self) -> SingleSelectionBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for SingleSelectionBuilder
impl Default for SingleSelectionBuilder
sourcefn default() -> SingleSelectionBuilder
fn default() -> SingleSelectionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SingleSelectionBuilder
impl !Send for SingleSelectionBuilder
impl !Sync for SingleSelectionBuilder
impl Unpin for SingleSelectionBuilder
impl UnwindSafe for SingleSelectionBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more