1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use crate::assets::ImageSource;
use crate::styles::ImageViewStyle;

/// Renders an image source to the screen.
pub struct Image {
    /// Controls the appearance and layout of an Image.
    pub style: ImageViewStyle,

    /// The source of the image that is rendered to the screen.
    pub source: ImageSource,
}