[][src]Function kas::text::util::set_text_and_prepare

pub fn set_text_and_prepare<T: FormattableText>(
    text: &mut Text<T>,
    s: T
) -> TkAction

Set the text 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.