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 moresource§impl PartialEq for EmbedResourcesKind
impl PartialEq for EmbedResourcesKind
source§fn eq(&self, other: &EmbedResourcesKind) -> bool
fn eq(&self, other: &EmbedResourcesKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EmbedResourcesKind
Auto Trait Implementations§
impl RefUnwindSafe for EmbedResourcesKind
impl Send for EmbedResourcesKind
impl Sync for EmbedResourcesKind
impl Unpin for EmbedResourcesKind
impl UnwindSafe for EmbedResourcesKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more