[][src]Trait kas::class::HasString

pub trait HasString: HasStr {
    pub fn set_string(&mut self, text: String) -> TkAction;

    pub fn set_str(&mut self, text: &str) -> TkAction { ... }
}

Read / write an unformatted String

Required methods

pub fn set_string(&mut self, text: String) -> TkAction[src]

Set text from a string

Loading content...

Provided methods

pub fn set_str(&mut self, text: &str) -> TkAction[src]

Set text from a &str

This is a convenience method around set_string(text.to_string()).

Loading content...

Implementors

impl<G: EditGuard> HasString for EditBox<G>[src]

impl<T: FormattableText + EditableText + 'static> HasString for Label<T>[src]

impl<W: HasString + Widget> HasString for Frame<W>[src]

impl<W: HasString + Widget> HasString for MenuFrame<W>[src]

Loading content...