pub enum RawAsepriteChunk {
Layer {
flags: u16,
layer_type: AsepriteLayerType,
layer_child: u16,
width: u16,
height: u16,
blend_mode: AsepriteBlendMode,
opacity: u8,
name: String,
},
Cel {
layer_index: u16,
x: i16,
y: i16,
opacity: u8,
cel: RawAsepriteCel,
},
CelExtra {
flags: u32,
x: f64,
y: f64,
width: f64,
height: f64,
},
Tags {
tags: Vec<RawAsepriteTag>,
},
Palette {
palette_size: u32,
from_color: u32,
to_color: u32,
entries: Vec<RawAsepritePaletteEntry>,
},
UserData {
data: RawAsepriteUserData,
},
Slice {
flags: u32,
name: String,
slices: Vec<RawAsepriteSlice>,
},
ColorProfile {
profile_type: u16,
flags: u16,
gamma: f64,
icc_profile: Option<RawAsepriteIccProfile>,
},
}
Expand description
Raw Chunk
Variants§
Layer
Layer Chunk
All the layer chunks determine the general layer layout
Fields
§
flags: u16
The flags set for this layer
1 = Visible 2 = Editable 4 = Lock Movement 8 = Background 16 = Prefer linked cels 32 = The layer group should be displayed collapsed 64 = The layer is a reference layer
§
layer_type: AsepriteLayerType
Type of the layer
§
layer_child: u16
How deep the child is in the hierarchy
The higher, the deeper in the previous chunk
§
blend_mode: AsepriteBlendMode
The blend mode of the layer
Cel
A Cel is a container of pixel
Fields
§
cel: RawAsepriteCel
The cel content
CelExtra
Extra data for the previous cel
Fields
Tags
Tags for this image
Fields
the different tags
Palette
A color palette
Fields
§
entries: Vec<RawAsepritePaletteEntry>
The individual palette entries
UserData
User Data for the last chunk
Fields
§
data: RawAsepriteUserData
the data itself
Slice
A slice in the image
Fields
§
slices: Vec<RawAsepriteSlice>
the individual slices
ColorProfile
An embedded color profile
Auto Trait Implementations§
impl Freeze for RawAsepriteChunk
impl RefUnwindSafe for RawAsepriteChunk
impl Send for RawAsepriteChunk
impl Sync for RawAsepriteChunk
impl Unpin for RawAsepriteChunk
impl UnwindSafe for RawAsepriteChunk
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