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