polyhorn-ui 0.4.0

Shared API contract for multi-platform Polyhorn UI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::assets::ImageSource;
use crate::styles::ImageViewStyle;

/// Renders an image source to the screen.
#[derive(Default)]
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,
}