pub struct Image {Show 16 fields
pub alignment: Option<StylesAlignment>,
pub center_slice: Option<StylesRect>,
pub error_placeholder: Option<Box<LenraComponent>>,
pub exclude_from_semantics: Option<bool>,
pub filter_quality: Option<StylesFilterQuality>,
pub fit: Option<StylesBoxFit>,
pub frame_placeholder: Option<Box<LenraComponent>>,
pub gapless_playback: Option<bool>,
pub height: Option<f64>,
pub is_anti_alias: Option<bool>,
pub loading_placeholder: Option<Box<LenraComponent>>,
pub repeat: Option<StylesImageRepeat>,
pub semantic_label: Option<String>,
pub src: String,
pub type_: Value,
pub width: Option<f64>,
}Expand description
Element of type Image
Fields§
§alignment: Option<StylesAlignment>How to align the image.
center_slice: Option<StylesRect>The center slice for a nine-patch image.
error_placeholder: Option<Box<LenraComponent>>The error placeholder when the image encounters an error during loading.
exclude_from_semantics: Option<bool>Whether to exclude this image from semantics.
filter_quality: Option<StylesFilterQuality>The quality of the image.
fit: Option<StylesBoxFit>How the image should fit the parent box.
frame_placeholder: Option<Box<LenraComponent>>A placeholder to display while the image is loading or to add effects to the image.
gapless_playback: Option<bool>Whether the old image (true) or nothing (false) is shown when the image provider changes.
height: Option<f64>§is_anti_alias: Option<bool>Whether to paint the image with anti-aliasing.
loading_placeholder: Option<Box<LenraComponent>>A placeholder to display while the image is still loading.
repeat: Option<StylesImageRepeat>How the image should be repeated accross the bounds not covered by the image.
semantic_label: Option<String>A semantic description of the image. This is used for TalkBack on Android and VoiceOver on IOS.
src: StringThe URL to the image. Will fetch the application’s image if the URL does not start with http(s)://.
type_: ValueThe identifier of the component
width: Option<f64>