Skip to main content

CheckboxBuilder

Struct CheckboxBuilder 

Source
pub struct CheckboxBuilder { /* private fields */ }
Expand description

Configuration handle returned by checkbox.

Implementations§

Source§

impl CheckboxBuilder

Source

pub fn modifier(&self, value: Modifier) -> Self

Configure modifier before this component executes.

Source

pub fn modifier_optional(&self, value: Option<Modifier>) -> Self

Configure modifier before this component executes.

Source

pub fn focus_requester(&self, value: FocusRequester) -> Self

Configure focus_requester before this component executes.

Source

pub fn focus_requester_optional(&self, value: Option<FocusRequester>) -> Self

Configure focus_requester before this component executes.

Source

pub fn on_toggle<F>(&self, value: F) -> Self
where F: Fn(bool) + Send + Sync + 'static,

Configure on_toggle before this component executes.

Source

pub fn on_toggle_shared( &self, value: impl Into<CallbackWith<bool, ()>> + Send + Sync + 'static, ) -> Self

Configure on_toggle before this component executes.

Source

pub fn on_toggle_optional(&self, value: Option<CallbackWith<bool, ()>>) -> Self

Configure on_toggle before this component executes.

Source

pub fn checked(&self, value: bool) -> Self

Configure checked before this component executes.

Source

pub fn checked_optional(&self, value: Option<bool>) -> Self

Configure checked before this component executes.

Source

pub fn indeterminate(&self, value: bool) -> Self

Configure indeterminate before this component executes.

Source

pub fn indeterminate_optional(&self, value: Option<bool>) -> Self

Configure indeterminate before this component executes.

Source

pub fn is_error(&self, value: bool) -> Self

Configure is_error before this component executes.

Source

pub fn is_error_optional(&self, value: Option<bool>) -> Self

Configure is_error before this component executes.

Source

pub fn presentation_state(&self, value: InteractionVisualState) -> Self

Configure presentation_state before this component executes.

Source

pub fn presentation_state_optional( &self, value: Option<InteractionVisualState>, ) -> Self

Configure presentation_state before this component executes.

Source

pub fn size(&self, value: Dp) -> Self

Configure size before this component executes.

Source

pub fn size_optional(&self, value: Option<Dp>) -> Self

Configure size before this component executes.

Source

pub fn color(&self, value: Color) -> Self

Configure color before this component executes.

Source

pub fn color_optional(&self, value: Option<Color>) -> Self

Configure color before this component executes.

Source

pub fn checked_color(&self, value: Color) -> Self

Configure checked_color before this component executes.

Source

pub fn checked_color_optional(&self, value: Option<Color>) -> Self

Configure checked_color before this component executes.

Source

pub fn checkmark_color(&self, value: Color) -> Self

Configure checkmark_color before this component executes.

Source

pub fn checkmark_color_optional(&self, value: Option<Color>) -> Self

Configure checkmark_color before this component executes.

Source

pub fn checkmark_stroke_width(&self, value: f32) -> Self

Configure checkmark_stroke_width before this component executes.

Source

pub fn checkmark_stroke_width_optional(&self, value: Option<f32>) -> Self

Configure checkmark_stroke_width before this component executes.

Source

pub fn shape(&self, value: Shape) -> Self

Configure shape before this component executes.

Source

pub fn shape_optional(&self, value: Option<Shape>) -> Self

Configure shape before this component executes.

Source

pub fn disabled(&self, value: bool) -> Self

Configure disabled before this component executes.

Source

pub fn disabled_optional(&self, value: Option<bool>) -> Self

Configure disabled before this component executes.

Source

pub fn disabled_color(&self, value: Color) -> Self

Configure disabled_color before this component executes.

Source

pub fn disabled_color_optional(&self, value: Option<Color>) -> Self

Configure disabled_color before this component executes.

Source

pub fn disabled_checkmark_color(&self, value: Color) -> Self

Configure disabled_checkmark_color before this component executes.

Source

pub fn disabled_checkmark_color_optional(&self, value: Option<Color>) -> Self

Configure disabled_checkmark_color before this component executes.

Source

pub fn accessibility_label(&self, value: impl Into<String>) -> Self

Configure accessibility_label before this component executes.

Source

pub fn accessibility_label_optional(&self, value: Option<String>) -> Self

Configure accessibility_label before this component executes.

Source

pub fn accessibility_description(&self, value: impl Into<String>) -> Self

Configure accessibility_description before this component executes.

Source

pub fn accessibility_description_optional(&self, value: Option<String>) -> Self

Configure accessibility_description before this component executes.

Source

pub fn controller(&self, value: State<CheckboxController>) -> Self

Configure controller before this component executes.

Source

pub fn controller_optional( &self, value: Option<State<CheckboxController>>, ) -> Self

Configure controller before this component executes.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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>

Convert 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)

Convert &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)

Convert &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 T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts 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>

Converts 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)

Converts &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)

Converts &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<T> for T

§

fn downcast(&self) -> &T

§

impl<T> DowncastSend for T
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

§

const WITNESS: W = W::MAKE

A constant of the type witness
§

impl<T> Identity for T
where T: ?Sized,

§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> SendSync for T
where T: Send + Sync + 'static,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Upcast<T> for T

§

fn upcast(&self) -> Option<&T>

§

impl<T> WasmNotSend for T
where T: Send,

§

impl<T> WasmNotSendSync for T
where T: WasmNotSend + WasmNotSync,

§

impl<T> WasmNotSync for T
where T: Sync,

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more