Enum sixtyfps_corelib::graphics::ImageReference [−][src]
#[repr(u8)] pub enum ImageReference { None, AbsoluteFilePath(SharedString), EmbeddedData(Slice<'static, u8>), EmbeddedRgbaImage { width: u32, height: u32, data: SharedVector<u32>, }, }
A resource is a reference to binary data, for example images. They can be accessible on the file system or embedded in the resulting binary. Or they might be URLs to a web server and a downloaded is necessary before they can be used.
TODO! If we want to make this type public API, we should not make it an enum, but an opaque type instead
Variants
A resource that does not represent any data.
AbsoluteFilePath(SharedString)
A resource that points to a file in the file system
A resource that is embedded in the program and accessible via pointer The format is the same as in a file
Raw ARGB
Show fields
Fields of EmbeddedRgbaImage
Trait Implementations
impl Clone for ImageReference
[src]
impl Clone for ImageReference
[src]fn clone(&self) -> ImageReference
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ImageReference
[src]
impl Default for ImageReference
[src]impl PartialEq<ImageReference> for ImageReference
[src]
impl PartialEq<ImageReference> for ImageReference
[src]fn eq(&self, other: &ImageReference) -> bool
[src]
fn ne(&self, other: &ImageReference) -> bool
[src]
impl StructuralPartialEq for ImageReference
[src]
impl StructuralPartialEq for ImageReference
[src]Auto Trait Implementations
impl RefUnwindSafe for ImageReference
impl RefUnwindSafe for ImageReference
impl !Send for ImageReference
impl !Send for ImageReference
impl !Sync for ImageReference
impl !Sync for ImageReference
impl Unpin for ImageReference
impl Unpin for ImageReference
impl UnwindSafe for ImageReference
impl UnwindSafe for ImageReference