Skip to main content

image

Function image 

Source
pub fn image<M>(file: &'static [u8]) -> Node<M>
Expand description

An icon the plugin ships: an SVG or PNG file compiled into it with include_bytes!, told apart by its first bytes. Sized like an icon, in the file’s own colors: a tone only dims it, as with app_icon. The host draws it once, off the UI thread, and shows nothing in its place until then.