pub struct SegmentedButtonBuilder { /* private fields */ }Expand description
Configuration handle returned by segmented_button.
Implementations§
Source§impl SegmentedButtonBuilder
impl SegmentedButtonBuilder
Sourcepub fn selection_mode(&self, value: SegmentedButtonSelectionMode) -> Self
pub fn selection_mode(&self, value: SegmentedButtonSelectionMode) -> Self
Configure selection_mode before this component executes.
Sourcepub fn selection_mode_optional(
&self,
value: Option<SegmentedButtonSelectionMode>,
) -> Self
pub fn selection_mode_optional( &self, value: Option<SegmentedButtonSelectionMode>, ) -> Self
Configure selection_mode before this component executes.
Sourcepub fn selected_optional(&self, value: Option<bool>) -> Self
pub fn selected_optional(&self, value: Option<bool>) -> Self
Configure selected before this component executes.
Sourcepub fn enabled_optional(&self, value: Option<bool>) -> Self
pub fn enabled_optional(&self, value: Option<bool>) -> Self
Configure enabled before this component executes.
Sourcepub fn label(&self, value: impl Into<String>) -> Self
pub fn label(&self, value: impl Into<String>) -> Self
Configure label before this component executes.
Sourcepub fn label_optional(&self, value: Option<String>) -> Self
pub fn label_optional(&self, value: Option<String>) -> Self
Configure label before this component executes.
Sourcepub fn icon(&self, value: impl Into<Painter>) -> Self
pub fn icon(&self, value: impl Into<Painter>) -> Self
Configure icon before this component executes.
Sourcepub fn icon_optional(&self, value: Option<Painter>) -> Self
pub fn icon_optional(&self, value: Option<Painter>) -> Self
Configure icon before this component executes.
Sourcepub fn selected_icon(&self, value: impl Into<Painter>) -> Self
pub fn selected_icon(&self, value: impl Into<Painter>) -> Self
Configure selected_icon before this component executes.
Sourcepub fn selected_icon_optional(&self, value: Option<Painter>) -> Self
pub fn selected_icon_optional(&self, value: Option<Painter>) -> Self
Configure selected_icon before this component executes.
Sourcepub fn show_selected_icon(&self, value: bool) -> Self
pub fn show_selected_icon(&self, value: bool) -> Self
Configure show_selected_icon before this component executes.
Sourcepub fn show_selected_icon_optional(&self, value: Option<bool>) -> Self
pub fn show_selected_icon_optional(&self, value: Option<bool>) -> Self
Configure show_selected_icon before this component executes.
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn shape_optional(&self, value: Option<Shape>) -> Self
pub fn shape_optional(&self, value: Option<Shape>) -> Self
Configure shape before this component executes.
Sourcepub fn colors(&self, value: SegmentedButtonColors) -> Self
pub fn colors(&self, value: SegmentedButtonColors) -> Self
Configure colors before this component executes.
Sourcepub fn colors_optional(&self, value: Option<SegmentedButtonColors>) -> Self
pub fn colors_optional(&self, value: Option<SegmentedButtonColors>) -> Self
Configure colors before this component executes.
Sourcepub fn border_width(&self, value: Dp) -> Self
pub fn border_width(&self, value: Dp) -> Self
Configure border_width before this component executes.
Sourcepub fn border_width_optional(&self, value: Option<Dp>) -> Self
pub fn border_width_optional(&self, value: Option<Dp>) -> Self
Configure border_width before this component executes.
Sourcepub fn min_height(&self, value: Dp) -> Self
pub fn min_height(&self, value: Dp) -> Self
Configure min_height before this component executes.
Sourcepub fn min_height_optional(&self, value: Option<Dp>) -> Self
pub fn min_height_optional(&self, value: Option<Dp>) -> Self
Configure min_height before this component executes.
Sourcepub fn content_padding(&self, value: Padding) -> Self
pub fn content_padding(&self, value: Padding) -> Self
Configure content_padding before this component executes.
Sourcepub fn content_padding_optional(&self, value: Option<Padding>) -> Self
pub fn content_padding_optional(&self, value: Option<Padding>) -> Self
Configure content_padding before this component executes.
Configure on_click before this component executes.
Sourcepub fn on_click_optional(&self, value: Option<Callback>) -> Self
pub fn on_click_optional(&self, value: Option<Callback>) -> Self
Configure on_click before this component executes.
Sourcepub fn accessibility_label(&self, value: impl Into<String>) -> Self
pub fn accessibility_label(&self, value: impl Into<String>) -> Self
Configure accessibility_label before this component executes.
Sourcepub fn accessibility_label_optional(&self, value: Option<String>) -> Self
pub fn accessibility_label_optional(&self, value: Option<String>) -> Self
Configure accessibility_label before this component executes.
Sourcepub fn accessibility_description(&self, value: impl Into<String>) -> Self
pub fn accessibility_description(&self, value: impl Into<String>) -> Self
Configure accessibility_description before this component executes.
Sourcepub fn accessibility_description_optional(&self, value: Option<String>) -> Self
pub fn accessibility_description_optional(&self, value: Option<String>) -> Self
Configure accessibility_description before this component executes.
Auto Trait Implementations§
impl Freeze for SegmentedButtonBuilder
impl RefUnwindSafe for SegmentedButtonBuilder
impl Send for SegmentedButtonBuilder
impl Sync for SegmentedButtonBuilder
impl Unpin for SegmentedButtonBuilder
impl UnsafeUnpin for SegmentedButtonBuilder
impl UnwindSafe for SegmentedButtonBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.