Struct guion::widgets::label::Label[][src]

pub struct Label<'w, E, Text, GlyphCache> where
    E: Env,
    Text: 'w,
    GlyphCache: 'w, 
{ pub size: ESize<E>, pub style: EStyle<E>, pub text: Text, pub align: (f32, f32), pub glyph_cache: GlyphCache, // some fields omitted }

Fields

size: ESize<E>style: EStyle<E>text: Textalign: (f32, f32)glyph_cache: GlyphCache

Implementations

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

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

impl<'w, E, Text> Label<'w, E, Text, RemoteState<E, LocalGlyphCache<E>>> where
    E: Env,
    E::Context: DynState<E>,
    Text: Caption<E> + Validation<E> + 'w, 
[src]

pub fn immediate(id: E::WidgetID, text: Text) -> Self[src]

impl<'w, E, Text, GlyphCache> Label<'w, E, Text, GlyphCache> where
    E: Env,
    Text: 'w,
    GlyphCache: 'w, 
[src]

pub fn with_text<T>(self, text: T) -> Label<'w, E, T, GlyphCache> where
    T: Caption<E> + Validation<E> + 'w, 
[src]

pub fn with_align(self, align: (f32, f32)) -> Self[src]

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

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

Trait Implementations

impl<'w, E, Text, GlyphCache> Widget<E> for Label<'w, E, Text, GlyphCache> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    Text: Caption<E> + Validation<E> + 'w,
    GlyphCache: AtomState<E, LocalGlyphCache<E>> + Clone
[src]

impl<'w, E, Text, GlyphCache> WidgetMut<E> for Label<'w, E, Text, GlyphCache> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>,
    EEvent<E>: StdVarSup<E>,
    Text: CaptionMut<E> + ValidationMut<E> + 'w,
    GlyphCache: AtomStateMut<E, LocalGlyphCache<E>> + Clone
[src]

Auto Trait Implementations

impl<'w, E, Text, GlyphCache> RefUnwindSafe for Label<'w, E, Text, GlyphCache> where
    GlyphCache: 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, Text, GlyphCache> Send for Label<'w, E, Text, GlyphCache> where
    GlyphCache: 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, Text, GlyphCache> Sync for Label<'w, E, Text, GlyphCache> where
    GlyphCache: 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, Text, GlyphCache> Unpin for Label<'w, E, Text, GlyphCache> where
    GlyphCache: 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, Text, GlyphCache> !UnwindSafe for Label<'w, E, Text, GlyphCache>

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.