[][src]Function lvgl::widgets::roller::set_selected

pub fn set_selected(
    roller: *mut lv_obj_t,
    sel_opt: u16,
    anim: lv_anim_enable_t
) -> MynewtResult<()>

Set the selected option

  • roller: pointer to a roller object
  • sel_opt: id of the selected option (0 ... number of option - 1);
  • anim: LV_ANOM_ON: set with animation; LV_ANIM_OFF set immediately