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

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

Fields

trigger: for<'a> fn(_: Link<'a, E>, _: bool)size: ESize<E>style: EStyle<E>locked: booltext: Textstate: State

Implementations

impl<'w, E, State, Text> CheckBox<'w, E, State, Text> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E>,
    State: AtomState<E, bool> + 'w,
    Text: AsWidget<E>, 
[src]

pub fn set(l: Link<'_, E>, v: bool)[src]

impl<'w, State, E> CheckBox<'w, E, State, Label<'w, E, &'static str, LocalGlyphCache<E>>> where
    E: Env,
    E::WidgetID: WidgetIDAlloc
[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: for<'a> fn(_: Link<'_, E>, _: bool)) -> Self[src]

pub fn with_caption<T>(self, text: T) -> CheckBox<'w, E, State, T> where
    T: AsWidget<E>, 
[src]

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

pub fn with_style(self, style: EStyle<E>) -> Self[src]

impl<'w, E, State, T, LC> CheckBox<'w, E, State, Label<'w, E, T, LC>> where
    E: Env
[src]

pub fn with_text<TT>(
    self,
    text: TT
) -> CheckBox<'w, E, State, Label<'w, E, TT, LC>> where
    TT: Caption<E> + Validation<E> + 'w, 
[src]

Trait Implementations

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

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

impl<'w, E, State, Text> Widget<E> for CheckBox<'w, E, State, Text> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E>,
    State: AtomState<E, bool>,
    Text: AsWidget<E>, 
[src]

impl<'w, E, State, Text> WidgetMut<E> for CheckBox<'w, E, State, Text> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    E::Context: CtxStdState<E>,
    State: AtomStateMut<E, bool>,
    Text: AsWidgetMut<E>, 
[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>::Backend as Backend<E>>::Style: 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>::Backend as Backend<E>>::Style: 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>::Backend as Backend<E>>::Style: 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>::Backend as Backend<E>>::Style: 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<E, T> AsWidget<E> for T where
    E: Env,
    T: Widget<E>, 
[src]

impl<E, T> AsWidgetMut<E> for T where
    E: Env,
    T: WidgetMut<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> FromInto<U> for T where
    T: From<U> + Into<U>, 
[src]

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

impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[src]

impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[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.