[−][src]Struct unsegen::widget::builtin::linelabel::LineLabel
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]
fn space_demand(&self) -> Demand2D
[src]
fn draw(&self, window: Window<'_>, _: RenderingHints)
[src]
Auto Trait Implementations
impl RefUnwindSafe for LineLabel
impl Send for LineLabel
impl Sync for LineLabel
impl Unpin for LineLabel
impl UnwindSafe for LineLabel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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.
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>,