[][src]Function lvgl::widgets::label::set_text_fmt

pub fn set_text_fmt(label: *mut lv_obj_t, fmt: &Strn<'_>) -> MynewtResult<()>

Set a new formatted text for a label. Memory will be allocated to store the text by the label.

  • label: pointer to a label object
  • fmt: printf-like format