pub struct CheckboxBuilder { /* private fields */ }Expand description
Configuration handle returned by checkbox.
Implementations§
Source§impl CheckboxBuilder
impl CheckboxBuilder
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 focus_requester(&self, value: FocusRequester) -> Self
pub fn focus_requester(&self, value: FocusRequester) -> Self
Configure focus_requester before this component executes.
Sourcepub fn focus_requester_optional(&self, value: Option<FocusRequester>) -> Self
pub fn focus_requester_optional(&self, value: Option<FocusRequester>) -> Self
Configure focus_requester before this component executes.
Sourcepub fn on_toggle<F>(&self, value: F) -> Self
pub fn on_toggle<F>(&self, value: F) -> Self
Configure on_toggle before this component executes.
Configure on_toggle before this component executes.
Sourcepub fn on_toggle_optional(&self, value: Option<CallbackWith<bool, ()>>) -> Self
pub fn on_toggle_optional(&self, value: Option<CallbackWith<bool, ()>>) -> Self
Configure on_toggle before this component executes.
Sourcepub fn checked_optional(&self, value: Option<bool>) -> Self
pub fn checked_optional(&self, value: Option<bool>) -> Self
Configure checked before this component executes.
Sourcepub fn indeterminate(&self, value: bool) -> Self
pub fn indeterminate(&self, value: bool) -> Self
Configure indeterminate before this component executes.
Sourcepub fn indeterminate_optional(&self, value: Option<bool>) -> Self
pub fn indeterminate_optional(&self, value: Option<bool>) -> Self
Configure indeterminate before this component executes.
Sourcepub fn is_error_optional(&self, value: Option<bool>) -> Self
pub fn is_error_optional(&self, value: Option<bool>) -> Self
Configure is_error before this component executes.
Sourcepub fn presentation_state(&self, value: InteractionVisualState) -> Self
pub fn presentation_state(&self, value: InteractionVisualState) -> Self
Configure presentation_state before this component executes.
Sourcepub fn presentation_state_optional(
&self,
value: Option<InteractionVisualState>,
) -> Self
pub fn presentation_state_optional( &self, value: Option<InteractionVisualState>, ) -> Self
Configure presentation_state before this component executes.
Sourcepub fn size_optional(&self, value: Option<Dp>) -> Self
pub fn size_optional(&self, value: Option<Dp>) -> Self
Configure size before this component executes.
Sourcepub fn color_optional(&self, value: Option<Color>) -> Self
pub fn color_optional(&self, value: Option<Color>) -> Self
Configure color before this component executes.
Sourcepub fn checked_color(&self, value: Color) -> Self
pub fn checked_color(&self, value: Color) -> Self
Configure checked_color before this component executes.
Sourcepub fn checked_color_optional(&self, value: Option<Color>) -> Self
pub fn checked_color_optional(&self, value: Option<Color>) -> Self
Configure checked_color before this component executes.
Sourcepub fn checkmark_color(&self, value: Color) -> Self
pub fn checkmark_color(&self, value: Color) -> Self
Configure checkmark_color before this component executes.
Sourcepub fn checkmark_color_optional(&self, value: Option<Color>) -> Self
pub fn checkmark_color_optional(&self, value: Option<Color>) -> Self
Configure checkmark_color before this component executes.
Sourcepub fn checkmark_stroke_width(&self, value: f32) -> Self
pub fn checkmark_stroke_width(&self, value: f32) -> Self
Configure checkmark_stroke_width before this component executes.
Sourcepub fn checkmark_stroke_width_optional(&self, value: Option<f32>) -> Self
pub fn checkmark_stroke_width_optional(&self, value: Option<f32>) -> Self
Configure checkmark_stroke_width 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 disabled_optional(&self, value: Option<bool>) -> Self
pub fn disabled_optional(&self, value: Option<bool>) -> Self
Configure disabled before this component executes.
Sourcepub fn disabled_color(&self, value: Color) -> Self
pub fn disabled_color(&self, value: Color) -> Self
Configure disabled_color before this component executes.
Sourcepub fn disabled_color_optional(&self, value: Option<Color>) -> Self
pub fn disabled_color_optional(&self, value: Option<Color>) -> Self
Configure disabled_color before this component executes.
Sourcepub fn disabled_checkmark_color(&self, value: Color) -> Self
pub fn disabled_checkmark_color(&self, value: Color) -> Self
Configure disabled_checkmark_color before this component executes.
Sourcepub fn disabled_checkmark_color_optional(&self, value: Option<Color>) -> Self
pub fn disabled_checkmark_color_optional(&self, value: Option<Color>) -> Self
Configure disabled_checkmark_color 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.
Sourcepub fn controller(&self, value: State<CheckboxController>) -> Self
pub fn controller(&self, value: State<CheckboxController>) -> Self
Configure controller before this component executes.
Sourcepub fn controller_optional(
&self,
value: Option<State<CheckboxController>>,
) -> Self
pub fn controller_optional( &self, value: Option<State<CheckboxController>>, ) -> Self
Configure controller before this component executes.
Auto Trait Implementations§
impl Freeze for CheckboxBuilder
impl RefUnwindSafe for CheckboxBuilder
impl Send for CheckboxBuilder
impl Sync for CheckboxBuilder
impl Unpin for CheckboxBuilder
impl UnsafeUnpin for CheckboxBuilder
impl UnwindSafe for CheckboxBuilder
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.