pub struct Layer {Show 13 fields
pub name: String,
pub kind: LayerKind,
pub parent: Option<usize>,
pub opacity: u8,
pub blend_mode: BlendMode,
pub visible: bool,
pub editable: bool,
pub lock_movement: bool,
pub background: bool,
pub prefer_linked_cels: bool,
pub collapsed: bool,
pub reference_layer: bool,
pub user_data: Option<UserData>,
}Expand description
A layer in the file (normal, group, or tilemap).
Fields§
§name: String§kind: LayerKind§parent: Option<usize>§opacity: u8§blend_mode: BlendMode§visible: bool§editable: bool§lock_movement: bool§background: bool§prefer_linked_cels: bool§collapsed: bool§reference_layer: bool§user_data: Option<UserData>Trait Implementations§
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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