[−][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 objectstate
: for which state set the new image (fromlv_btn_state_t
) `src
: pointer to an image source (a C array or path to a file)