Enum slint_build::EmbedResourcesKind
source ยท pub enum EmbedResourcesKind {
AsAbsolutePath,
EmbedFiles,
EmbedForSoftwareRenderer,
}
Expand description
How should the slint compiler embed images and fonts
Parameter of CompilerConfiguration::embed_resources()
Variantsยง
AsAbsolutePath
Paths specified in .slint files are made absolute and the absolute paths will be used at run-time to load the resources from the file system.
EmbedFiles
The raw files in .slint files are embedded in the application binary.
EmbedForSoftwareRenderer
File names specified in .slint files will be loaded by the Slint compiler, optimized for use with the software renderer and embedded in the application binary.
Trait Implementationsยง
sourceยงimpl Clone for EmbedResourcesKind
impl Clone for EmbedResourcesKind
sourceยงfn clone(&self) -> EmbedResourcesKind
fn clone(&self) -> EmbedResourcesKind
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more