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

pub struct Label<'w, E, S> where
    E: Env,
    S: 'w, 
{ pub size: ESize<E>, pub style: Vec<StdVerb>, pub border: Option<Border>, pub text: S, // some fields omitted }

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]

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

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

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

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]

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]

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

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

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

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

impl<'w, E, S> !UnwindSafe for Label<'w, E, S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'w, E, T> AsWidget<'w, E> for T where
    E: Env,
    T: Widget<'w, E>, 
[src]

impl<'w, E, T> AsWidgetMut<'w, E> for T where
    E: Env,
    T: WidgetMut<'w, 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> Into<U> for T where
    U: From<T>, 
[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.