Skip to main content

mc_image

Function mc_image 

Source
pub fn mc_image(id: impl Into<String>, img_w: f32, img_h: f32) -> Widget
Expand description

A raw Minecraft texture ("minecraft:textures/..."), img_w × img_h pixels, stretched over the widget. Version-dependent: prefer image.