[][src]Struct unsegen::widget::builtin::linelabel::LineLabel

pub struct LineLabel { /* fields omitted */ }

A single line text label.

The label does not provide any means for user interaction, but the label text can be changed programmatically.

If multiple lines are added to the label, there is no guarantee that further lines will be displayed.

Implementations

impl LineLabel[src]

pub fn new<S: Into<String>>(text: S) -> Self[src]

Create a label with the specified content. text should not contain multiple lines.

pub fn set<S: Into<String>>(&mut self, text: S)[src]

Change the content of the label. text should not contain multiple lines.

Trait Implementations

impl Widget for LineLabel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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.