[][src]Function lvgl::widgets::imgbtn::set_src

pub fn set_src(
    imgbtn: *mut lv_obj_t,
    state: lv_btn_state_t,
    src: *const c_void
) -> MynewtResult<()>

Set images for a state of the image button

  • imgbtn: pointer to an image button object
  • state: for which state set the new image (from lv_btn_state_t) `
  • src: pointer to an image source (a C array or path to a file)