[−][src]Function kas::text::util::set_string_and_prepare
pub fn set_string_and_prepare<T: EditableText>(
text: &mut Text<T>,
s: String
) -> TkAction
Set the text from a string and prepare
This is a convenience function to (1) set the text, (2) call
Text::prepare
internally and (3) return TkAction::Resize
to
trigger a resize.