[][src]Struct titik::TextLabel

pub struct TextLabel { /* fields omitted */ }

A one line text input

Implementations

impl TextLabel[src]

pub fn new<S>(value: S) -> Self where
    S: ToString
[src]

creates a new text input with initial value

pub fn set_value<S: ToString>(&mut self, value: S)[src]

set the value of the buffer

pub fn get_value(&self) -> &str[src]

returns a reference to the text value of this text input widget

pub fn set_rounded(&mut self, rounded: bool)[src]

set whether to use rounded corner when drawing the border of the text input

Trait Implementations

impl Debug for TextLabel[src]

impl Default for TextLabel[src]

impl<MSG> Widget<MSG> for TextLabel[src]

fn draw(&self, buf: &mut Buffer) -> Vec<Cmd>[src]

draw this button to the buffer, with the given computed layout

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.