[][src]Function lvgl::widgets::line::set_auto_size

pub fn set_auto_size(line: *mut lv_obj_t, en: bool) -> MynewtResult<()>

Enable (or disable) the auto-size option. The size of the object will fit to its points. (set width to x max and height to y max)

  • line: pointer to a line object
  • en: true: auto size is enabled, false: auto size is disabled