polyhorn_ui/components/
image.rs

1use crate::assets::ImageSource;
2use crate::styles::ImageViewStyle;
3
4/// Renders an image source to the screen.
5#[derive(Default)]
6pub struct Image {
7    /// Controls the appearance and layout of an Image.
8    pub style: ImageViewStyle,
9
10    /// The source of the image that is rendered to the screen.
11    pub source: ImageSource,
12}