Skip to main content

Module image_view

Module image_view 

Source
Expand description

ImageView — paints an Option<(rgba8_top_down, w, h)> as an image.

Reads its pixel data from an Rc<RefCell<Option<(Vec<u8>, u32, u32)>>> — the same shape ScreenshotHandle::image produces. Fits the image into the widget’s bounds preserving aspect ratio, then outlines it in the theme text colour so the image boundary is always visible against the neutral pane.

Shows a themed “No image yet.” placeholder while the source is None.

Structs§

ImageView