Trait makepad_widgets::image_cache::ImageCacheImpl
source · pub trait ImageCacheImpl {
// Required methods
fn get_texture(&self) -> &Option<Texture>;
fn set_texture(&mut self, texture: Option<Texture>);
// Provided methods
fn lazy_create_image_cache(&mut self, cx: &mut Cx) { ... }
fn load_png_from_data(&mut self, cx: &mut Cx, data: &[u8]) { ... }
fn load_jpg_from_data(&mut self, cx: &mut Cx, data: &[u8]) { ... }
fn load_image_dep_by_path(&mut self, cx: &mut Cx, image_path: &str) { ... }
}