[][src]Function lvgl::widgets::tabview::set_tab_act

pub fn set_tab_act(
    tabview: *mut lv_obj_t,
    id: u16,
    anim: lv_anim_enable_t
) -> MynewtResult<()>

Set a new tab

  • tabview: pointer to Tab view object
  • id: index of a tab to load
  • anim: LV_ANIM_ON: set the value with an animation; LV_ANIM_OFF: change the value immediately