[][src]Struct guion::widgets::checkbox::CheckBox

pub struct CheckBox<'w, E, State, Text> where
    E: Env,
    State: 'w,
    Text: 'w, 
{ pub trigger: fn'a(_: Link<'a, E>, _: bool), pub size: ESize<E>, pub style: Vec<StdVerb>, pub locked: bool, pub border: Option<Border>, pub text: Text, pub state: State, // some fields omitted }

Fields

trigger: fn'a(_: Link<'a, E>, _: bool)size: ESize<E>style: Vec<StdVerb>locked: boolborder: Option<Border>text: Textstate: State

Methods

impl<'w, E, State, Text> CheckBox<'w, E, State, Text> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    ESVariant<E>: StyleVariantSupport<StdVerb>,
    E::Context: AsHandlerStateful<E>,
    State: AtomState<bool> + Statize + 'w,
    State::Statur: Sized,
    Text: Caption<'w> + Statize + 'w,
    Text::Statur: Sized
[src]

pub fn toggle(l: Link<E>)[src]

impl<'w, State, E> CheckBox<'w, E, State, &'static str> where
    E: Env
[src]

pub fn new(id: E::WidgetID, state: State) -> Self[src]

impl<'w, E, State, Text> CheckBox<'w, E, State, Text> where
    E: Env,
    Text: 'w, 
[src]

pub fn with_trigger(self, fun: fn'a(_: Link<E>, _: bool)) -> Self[src]

pub fn with_text<T>(self, text: T) -> CheckBox<'w, E, State, T> where
    T: Caption<'w> + Statize,
    T::Statur: Sized
[src]

pub fn with_size(self, s: ESize<E>) -> Self[src]

Trait Implementations

impl<'w, E, State, Text> ICheckBox<'w> for CheckBox<'w, E, State, Text> where
    E: Env,
    State: AtomStateMut<bool>,
    Text: 'w, 
[src]

impl<'w, E, State, Text> Widget<'w, E> for CheckBox<'w, E, State, Text> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    ESVariant<E>: StyleVariantSupport<StdVerb>,
    E::Context: AsHandlerStateful<E>,
    State: AtomState<bool> + Statize + 'w,
    State::Statur: Sized,
    Text: Caption<'w> + Statize + 'w,
    Text::Statur: Sized
[src]

impl<'w, E, State, Text> WidgetMut<'w, E> for CheckBox<'w, E, State, Text> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    ESVariant<E>: StyleVariantSupport<StdVerb>,
    E::Context: AsHandlerStateful<E>,
    State: AtomStateMut<bool> + Statize + 'w,
    State::Statur: Sized,
    Text: Caption<'w> + Statize + 'w,
    Text::Statur: Sized
[src]

Auto Trait Implementations

impl<'w, E, State, Text> RefUnwindSafe for CheckBox<'w, E, State, Text> where
    State: RefUnwindSafe,
    Text: RefUnwindSafe,
    <<E as Env>::Backend as Backend<E>>::Size: RefUnwindSafe,
    <E as Env>::WidgetID: RefUnwindSafe

impl<'w, E, State, Text> Send for CheckBox<'w, E, State, Text> where
    State: Send,
    Text: Send,
    <<E as Env>::Backend as Backend<E>>::Size: Send,
    <E as Env>::WidgetID: Send

impl<'w, E, State, Text> Sync for CheckBox<'w, E, State, Text> where
    State: Sync,
    Text: Sync,
    <<E as Env>::Backend as Backend<E>>::Size: Sync,
    <E as Env>::WidgetID: Sync

impl<'w, E, State, Text> Unpin for CheckBox<'w, E, State, Text> where
    State: Unpin,
    Text: Unpin,
    <<E as Env>::Backend as Backend<E>>::Size: Unpin,
    <E as Env>::WidgetID: Unpin

impl<'w, E, State, Text> !UnwindSafe for CheckBox<'w, E, State, Text>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'w, E, T> AsWidget<'w, E> for T where
    E: Env,
    T: Widget<'w, E>, 
[src]

impl<'w, E, T> AsWidgetMut<'w, E> for T where
    E: Env,
    T: WidgetMut<'w, E>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.