[][src]Function lvgl::widgets::img::src_get_type

pub fn src_get_type(src: *const c_void) -> MynewtResult<lv_img_src_t>

Get the type of an image source

  • src: pointer to an image source:
  • pointer to an 'lv_img_t' variable (image stored internally and compiled into the code)
  • a path to a file (e.g. "S:/folder/image.bin")
  • or a symbol (e.g. LV_SYMBOL_CLOSE) Return: type of the image source LV_IMG_SRC_VARIABLE/FILE/SYMBOL/UNKNOWN