Struct guion::widgets::checkbox::CheckBox [−][src]
Fields
trigger: for<'a> fn(_: Link<'a, E>, _: bool)
size: ESize<E>
style: EStyle<E>
locked: bool
text: Text
state: 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]
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
EEvent<E>: StdVarSup<E>,
E::Context: CtxStdState<E>,
State: AtomState<E, bool> + 'w,
Text: AsWidget<E>,
impl<'w, State, E> CheckBox<'w, E, State, Label<'w, E, &'static str, LocalGlyphCache<E>>> where
E: Env,
E::WidgetID: WidgetIDAlloc,
[src]
E: Env,
E::WidgetID: WidgetIDAlloc,
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: 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]
T: AsWidget<E>,
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]
E: Env,
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]
self,
text: TT
) -> CheckBox<'w, E, State, Label<'w, E, TT, LC>> where
TT: Caption<E> + Validation<E> + 'w,
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]
E: Env,
State: AtomState<E, bool>,
Text: 'w,
impl<'w, E, State, Text> ICheckBoxMut<E> for CheckBox<'w, E, State, Text> where
E: Env,
State: AtomStateMut<E, bool>,
Text: 'w,
[src]
E: Env,
State: AtomStateMut<E, bool>,
Text: 'w,
fn state_mut(&mut self) -> &mut dyn AtomStateMut<E, bool>
[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]
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
EEvent<E>: StdVarSup<E>,
E::Context: CtxStdState<E>,
State: AtomState<E, bool>,
Text: AsWidget<E>,
fn child_paths(&self, _: E::WidgetPath) -> Vec<E::WidgetPath>
[src]
fn id(&self) -> E::WidgetID
[src]
fn _render(&self, l: Link<'_, E>, r: &mut RenderLink<'_, E>)
[src]
fn _event_direct(&self, l: Link<'_, E>, e: &EventCompound<E>) -> EventResp
[src]
fn _size(&self, l: Link<'_, E>, e: &EStyle<E>) -> ESize<E>
[src]
fn childs(&self) -> usize
[src]
fn childs_ref(&self) -> Vec<Resolvable<'_, E>>
[src]
fn into_childs<'a>(self: Box<Self>) -> Vec<Resolvable<'a, E>> where
Self: 'a,
[src]
Self: 'a,
fn child_bounds(
&self,
_: Link<'_, E>,
_: &Bounds,
e: &EStyle<E>,
_: bool
) -> Result<Vec<Bounds>, ()>
[src]
&self,
_: Link<'_, E>,
_: &Bounds,
e: &EStyle<E>,
_: bool
) -> Result<Vec<Bounds>, ()>
fn focusable(&self) -> bool
[src]
fn child(&self, i: usize) -> Result<Resolvable<'_, E>, ()>
[src]
fn into_child<'a>(self: Box<Self>, i: usize) -> Result<Resolvable<'a, E>, ()> where
Self: 'a,
[src]
Self: 'a,
unsafe fn _as_trait_ref<'impl_traitcast_lt_a>(
&'impl_traitcast_lt_a self,
t: TypeId
) -> Option<TraitObject>
[src]
&'impl_traitcast_lt_a self,
t: TypeId
) -> Option<TraitObject>
fn resolve<'s>(
&'s self,
i: E::WidgetPath
) -> Result<Resolvable<'s, E>, GuionError<E>>
[src]
&'s self,
i: E::WidgetPath
) -> Result<Resolvable<'s, E>, GuionError<E>>
fn into_resolve<'w>(
self: Box<Self>,
i: E::WidgetPath
) -> Result<Resolvable<'w, E>, GuionError<E>> where
Self: 'w,
[src]
self: Box<Self>,
i: E::WidgetPath
) -> Result<Resolvable<'w, E>, GuionError<E>> where
Self: 'w,
fn resolve_child(
&self,
sub_path: &E::WidgetPath
) -> Result<(usize, E::WidgetPath), GuionError<E>>
[src]
&self,
sub_path: &E::WidgetPath
) -> Result<(usize, E::WidgetPath), GuionError<E>>
fn trace_bounds(
&self,
l: Link<'_, E>,
i: E::WidgetPath,
b: &Bounds,
e: &EStyle<E>,
force: bool
) -> Result<Bounds, GuionError<E>>
[src]
&self,
l: Link<'_, E>,
i: E::WidgetPath,
b: &Bounds,
e: &EStyle<E>,
force: bool
) -> Result<Bounds, GuionError<E>>
fn in_parent_path(&self, parent: E::WidgetPath) -> E::WidgetPath
[src]
fn resolved_by_path(
&self,
sub_path: &E::WidgetPath
) -> Option<ResolvesThruResult<E>>
[src]
&self,
sub_path: &E::WidgetPath
) -> Option<ResolvesThruResult<E>>
fn _focus_on_mouse_down(&self) -> bool
[src]
fn _tabulate_by_tab(&self) -> bool
[src]
fn _tabulate_next_child(
&self,
_l: Link<'_, E>,
origin: TabulateNextChildOrigin,
dir: TabulateDirection
) -> TabulateNextChildResponse
[src]
&self,
_l: Link<'_, E>,
origin: TabulateNextChildOrigin,
dir: TabulateDirection
) -> TabulateNextChildResponse
fn _tabulate(
&self,
l: Link<'_, E>,
op: TabulateOrigin<E>,
dir: TabulateDirection
) -> Result<TabulateResponse<E>, GuionError<E>>
[src]
&self,
l: Link<'_, E>,
op: TabulateOrigin<E>,
dir: TabulateDirection
) -> Result<TabulateResponse<E>, GuionError<E>>
fn inner(&self) -> Option<&dyn Widget<E>>
[src]
fn innest(&self) -> Option<&dyn Widget<E>>
[src]
fn debug_type_name(&self, dest: &mut Vec<&'static str>)
[src]
fn debugged_type_name(&self) -> Vec<&'static str>
[src]
fn box_ref<'s>(&'s self) -> WidgetRef<'s, E>
[src]
fn box_box<'w>(self: Box<Self>) -> WidgetRef<'w, E> where
Self: 'w,
[src]
Self: 'w,
fn boxed<'w>(self) -> WidgetRef<'w, E> where
Self: Sized + 'w,
[src]
Self: Sized + 'w,
fn gen_diag_error_resolve_fail(
&self,
sub_path: &E::WidgetPath,
op: &'static str
) -> GuionError<E>
[src]
&self,
sub_path: &E::WidgetPath,
op: &'static str
) -> GuionError<E>
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]
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
EEvent<E>: StdVarSup<E>,
E::Context: CtxStdState<E>,
State: AtomStateMut<E, bool>,
Text: AsWidgetMut<E>,
fn childs_mut(&mut self) -> Vec<ResolvableMut<'_, E>>
[src]
fn into_childs_mut<'a>(self: Box<Self>) -> Vec<ResolvableMut<'a, E>> where
Self: 'a,
[src]
Self: 'a,
fn child_mut(&mut self, i: usize) -> Result<ResolvableMut<'_, E>, ()>
[src]
fn into_child_mut<'a>(
self: Box<Self>,
i: usize
) -> Result<ResolvableMut<'a, E>, ()> where
Self: 'a,
[src]
self: Box<Self>,
i: usize
) -> Result<ResolvableMut<'a, E>, ()> where
Self: 'a,
unsafe fn _as_trait_mut<'impl_traitcast_lt_a>(
&'impl_traitcast_lt_a mut self,
t: TypeId
) -> Option<TraitObject>
[src]
&'impl_traitcast_lt_a mut self,
t: TypeId
) -> Option<TraitObject>
fn message(&mut self, m: E::Message)
[src]
fn _set_invalid(&mut self, v: bool)
[src]
fn resolve_mut<'s>(
&'s mut self,
i: E::WidgetPath
) -> Result<ResolvableMut<'s, E>, GuionError<E>>
[src]
&'s mut self,
i: E::WidgetPath
) -> Result<ResolvableMut<'s, E>, GuionError<E>>
fn into_resolve_mut<'w>(
self: Box<Self>,
i: E::WidgetPath
) -> Result<ResolvableMut<'w, E>, GuionError<E>> where
Self: 'w,
[src]
self: Box<Self>,
i: E::WidgetPath
) -> Result<ResolvableMut<'w, E>, GuionError<E>> where
Self: 'w,
fn resolve_child_mut(
&mut self,
sub_path: &E::WidgetPath
) -> Result<(usize, E::WidgetPath), GuionError<E>>
[src]
&mut self,
sub_path: &E::WidgetPath
) -> Result<(usize, E::WidgetPath), GuionError<E>>
fn inner_mut(&mut self) -> Option<&mut dyn WidgetMut<E>>
[src]
fn pass(self) -> Self where
Self: Sized,
[src]
Self: Sized,
fn debug_type_name_mut(&mut self, dest: &mut Vec<&'static str>)
[src]
fn debugged_type_name_mut(&mut self) -> Vec<&'static str>
[src]
fn box_mut<'s>(&'s mut self) -> WidgetRefMut<'s, E>
[src]
fn box_box_mut<'w>(self: Box<Self>) -> WidgetRefMut<'w, E> where
Self: 'w,
[src]
Self: 'w,
fn boxed_mut<'w>(self) -> WidgetRefMut<'w, E> where
Self: Sized + 'w,
[src]
Self: Sized + 'w,
fn gen_diag_error_resolve_fail_mut(
&mut self,
sub_path: &E::WidgetPath,
op: &'static str
) -> GuionError<E>
[src]
&mut self,
sub_path: &E::WidgetPath,
op: &'static str
) -> GuionError<E>
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,
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,
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,
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,
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]
T: 'static + ?Sized,
impl<E, T> AsWidget<E> for T where
E: Env,
T: Widget<E>,
[src]
E: Env,
T: Widget<E>,
pub fn as_ref(&Self) -> Resolvable<'_, E>
[src]
pub fn into_ref<'w>(Self) -> Resolvable<'w, E> where
T: 'w,
[src]
T: 'w,
impl<E, T> AsWidgetMut<E> for T where
E: Env,
T: WidgetMut<E>,
[src]
E: Env,
T: WidgetMut<E>,
pub fn as_mut(&mut Self) -> ResolvableMut<'_, E>
[src]
pub fn into_mut<'w>(Self) -> ResolvableMut<'w, E> where
T: 'w,
[src]
T: 'w,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> FromInto<U> for T where
T: From<U> + Into<U>,
[src]
T: From<U> + Into<U>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &S)
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &[S])
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
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.
pub 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>,