Struct widgetry::assets::Assets [−][src]
pub struct Assets { pub default_line_height: RefCell<f64>, text_cache: RefCell<LruCache<String, GeomBatch>>, line_height_cache: RefCell<HashMap<(Font, usize), f64>>, svg_cache: RefCell<HashMap<String, (GeomBatch, Bounds)>>, font_to_id: HashMap<Font, ID>, extra_fonts: RefCell<HashSet<String>>, pub(crate) style: RefCell<Style>, pub text_opts: RefCell<Options>, pub read_svg: Box<dyn Fn(&str) -> Vec<u8>>, base_url: Option<String>, are_gzipped: bool, }
Fields
default_line_height: RefCell<f64>
text_cache: RefCell<LruCache<String, GeomBatch>>
line_height_cache: RefCell<HashMap<(Font, usize), f64>>
svg_cache: RefCell<HashMap<String, (GeomBatch, Bounds)>>
font_to_id: HashMap<Font, ID>
extra_fonts: RefCell<HashSet<String>>
style: RefCell<Style>
text_opts: RefCell<Options>
read_svg: Box<dyn Fn(&str) -> Vec<u8>>
base_url: Option<String>
are_gzipped: bool
Implementations
impl Assets
[src]
impl Assets
[src]pub fn new(
style: Style,
base_url: Option<String>,
are_gzipped: bool,
read_svg: Box<dyn Fn(&str) -> Vec<u8>>
) -> Assets
[src]
style: Style,
base_url: Option<String>,
are_gzipped: bool,
read_svg: Box<dyn Fn(&str) -> Vec<u8>>
) -> Assets