[−][src]Struct guion::widgets::checkbox::CheckBox
Fields
trigger: fn'a(_: Link<'a, E>, _: bool)
size: ESize<E>
style: Vec<StdVerb>
locked: bool
border: Option<Border>
text: Text
state: 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]
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,
impl<'w, State, E> CheckBox<'w, E, State, &'static str> where
E: Env,
[src]
E: Env,
impl<'w, E, State, Text> CheckBox<'w, E, State, Text> where
E: Env,
Text: 'w,
[src]
E: Env,
Text: 'w,
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]
T: Caption<'w> + Statize,
T::Statur: Sized,
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]
E: Env,
State: AtomStateMut<bool>,
Text: 'w,
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]
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,
fn child_paths(&self, _: E::WidgetPath) -> Vec<E::WidgetPath>
[src]
fn style(&self, s: &mut ESVariant<E>)
[src]
fn border(&self, b: &mut Border)
[src]
fn id(&self) -> E::WidgetID
[src]
fn render(&self, l: Link<E>, r: &mut RenderLink<E>) -> bool
[src]
fn event(&self, l: Link<E>, e: (EEvent<E>, &Bounds, u64))
[src]
fn size(&self, _: Link<E>) -> ESize<E>
[src]
fn childs(&self) -> usize
[src]
fn childs_ref<'s>(&'s self) -> Vec<Resolvable<'s, E>> where
'w: 's,
[src]
'w: 's,
fn into_childs(self: Box<Self>) -> Vec<Resolvable<'w, E>>
[src]
fn _trace_bounds(
&self,
_: Link<E>,
_: usize,
_: &Bounds,
_: bool
) -> Result<Bounds, ()>
[src]
&self,
_: Link<E>,
_: usize,
_: &Bounds,
_: bool
) -> Result<Bounds, ()>
fn focusable(&self) -> bool
[src]
fn child<'a>(&'a self, _: usize) -> Result<Resolvable<'a, E>, ()> where
'w: 'a,
[src]
'w: 'a,
fn into_child(self: Box<Self>, _: usize) -> Result<Resolvable<'w, E>, ()>
[src]
fn invalid(&self) -> bool
[src]
fn resolve<'s>(&'s self, i: E::WidgetPath) -> Result<Resolvable<'s, E>, ()> where
'w: 's,
[src]
'w: 's,
fn into_resolve(
self: Box<Self>,
i: E::WidgetPath
) -> Result<Resolvable<'w, E>, ()>
[src]
self: Box<Self>,
i: E::WidgetPath
) -> Result<Resolvable<'w, E>, ()>
fn resolve_child(&self, p: &EWPSub<E>) -> Result<usize, ()>
[src]
fn trace_bounds(
&self,
l: Link<E>,
i: E::WidgetPath,
b: &Bounds,
force: bool
) -> Result<Bounds, ()>
[src]
&self,
l: Link<E>,
i: E::WidgetPath,
b: &Bounds,
force: bool
) -> Result<Bounds, ()>
fn self_in_parent(&self, parent: E::WidgetPath) -> E::WidgetPath
[src]
fn is_subpath(&self, p: &EWPSub<E>) -> bool
[src]
fn _focus_on_mouse_down(&self) -> bool
[src]
fn _tabulate_by_tab(&self) -> bool
[src]
fn inner<'s>(&'s self) -> Option<&'s dyn Widget<'w, E>>
[src]
fn debug_type_name(&self)
[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]
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,
fn childs_mut<'s>(&'s mut self) -> Vec<ResolvableMut<'s, E>> where
'w: 's,
[src]
'w: 's,
fn into_childs_mut(self: Box<Self>) -> Vec<ResolvableMut<'w, E>>
[src]
fn child_mut<'a>(&'a mut self, _: usize) -> Result<ResolvableMut<'a, E>, ()> where
'w: 'a,
[src]
'w: 'a,
fn into_child_mut(self: Box<Self>, _: usize) -> Result<ResolvableMut<'w, E>, ()>
[src]
unsafe fn _as_trait_ref(&self, t: TypeId) -> Option<TraitObject>
[src]
unsafe fn _as_trait_mut(&mut self, t: TypeId) -> Option<TraitObject>
[src]
fn set_invalid(&mut self, v: bool)
[src]
fn resolve_mut<'s>(
&'s mut self,
i: E::WidgetPath,
invalidate: bool
) -> Result<ResolvableMut<'s, E>, ()> where
'w: 's,
[src]
&'s mut self,
i: E::WidgetPath,
invalidate: bool
) -> Result<ResolvableMut<'s, E>, ()> where
'w: 's,
fn into_resolve_mut(
self: Box<Self>,
i: E::WidgetPath,
invalidate: bool
) -> Result<ResolvableMut<'w, E>, ()>
[src]
self: Box<Self>,
i: E::WidgetPath,
invalidate: bool
) -> Result<ResolvableMut<'w, E>, ()>
fn inner_mut<'s>(&'s mut self) -> Option<&'s mut dyn WidgetMut<'w, 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>::WidgetID: RefUnwindSafe,
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,
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,
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,
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]
T: 'static + ?Sized,
impl<'w, E, T> AsWidget<'w, E> for T where
E: Env,
T: Widget<'w, E>,
[src]
E: Env,
T: Widget<'w, E>,
fn as_ref<'s>(&'s Self) -> Resolvable<'s, E> where
'w: 's,
[src]
'w: 's,
fn into_ref(Self) -> Resolvable<'w, E>
[src]
impl<'w, E, T> AsWidgetMut<'w, E> for T where
E: Env,
T: WidgetMut<'w, E>,
[src]
E: Env,
T: WidgetMut<'w, E>,
fn as_mut<'s>(&'s mut Self) -> ResolvableMut<'s, E> where
'w: 's,
[src]
'w: 's,
fn into_mut(Self) -> ResolvableMut<'w, E>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,