[−][src]Struct guion::widgets::label::Label
Fields
size: ESize<E>
style: Vec<StdVerb>
border: Option<Border>
text: S
Methods
impl<'w, E> Label<'w, E, &'static str> where
E: Env,
[src]
E: Env,
impl<'w, E, S> Label<'w, E, S> where
E: Env,
S: 'w,
[src]
E: Env,
S: 'w,
pub fn with_text<T>(self, text: T) -> Label<'w, E, 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, S> Widget<'w, E> for Label<'w, E, S> where
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
EEvent<E>: StdVarSup<E>,
ESVariant<E>: StyleVariantSupport<StdVerb>,
S: Caption<'w> + Statize,
S::Statur: Sized,
[src]
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
EEvent<E>: StdVarSup<E>,
ESVariant<E>: StyleVariantSupport<StdVerb>,
S: Caption<'w> + Statize,
S::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, _: Link<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, S> WidgetMut<'w, E> for Label<'w, E, S> where
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
EEvent<E>: StdVarSup<E>,
ESVariant<E>: StyleVariantSupport<StdVerb>,
S: Caption<'w> + Statize,
S::Statur: Sized,
[src]
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
EEvent<E>: StdVarSup<E>,
ESVariant<E>: StyleVariantSupport<StdVerb>,
S: Caption<'w> + Statize,
S::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]
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, S> RefUnwindSafe for Label<'w, E, S> where
S: RefUnwindSafe,
<<E as Env>::Backend as Backend<E>>::Size: RefUnwindSafe,
<E as Env>::WidgetID: RefUnwindSafe,
S: RefUnwindSafe,
<<E as Env>::Backend as Backend<E>>::Size: RefUnwindSafe,
<E as Env>::WidgetID: RefUnwindSafe,
impl<'w, E, S> Send for Label<'w, E, S> where
S: Send,
<<E as Env>::Backend as Backend<E>>::Size: Send,
<E as Env>::WidgetID: Send,
S: Send,
<<E as Env>::Backend as Backend<E>>::Size: Send,
<E as Env>::WidgetID: Send,
impl<'w, E, S> Sync for Label<'w, E, S> where
S: Sync,
<<E as Env>::Backend as Backend<E>>::Size: Sync,
<E as Env>::WidgetID: Sync,
S: Sync,
<<E as Env>::Backend as Backend<E>>::Size: Sync,
<E as Env>::WidgetID: Sync,
impl<'w, E, S> Unpin for Label<'w, E, S> where
S: Unpin,
<<E as Env>::Backend as Backend<E>>::Size: Unpin,
<E as Env>::WidgetID: Unpin,
S: Unpin,
<<E as Env>::Backend as Backend<E>>::Size: Unpin,
<E as Env>::WidgetID: Unpin,
impl<'w, E, S> !UnwindSafe for Label<'w, E, S>
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>,