pub struct FrameState {
pub hidden: HashSet<i64>,
pub transforms: HashMap<i64, LayerTransform>,
pub cameras: HashMap<i64, Affine>,
pub cels: HashMap<i64, Option<i64>>,
pub unknown_interp: HashSet<String>,
}Expand description
What a frame changes in the layer tree: which layers are not drawn (cels not shown, light-table layers), keyframed layers’ transforms and cameras’ maps (frame position → canvas position of the folder’s content).
Fields§
Layers not drawn at this frame.
transforms: HashMap<i64, LayerTransform>Keyframed layers’ transforms, by layer id.
cameras: HashMap<i64, Affine>2D cameras’ maps, by camera folder id.
cels: HashMap<i64, Option<i64>>The cel shown by each animation folder (folder id → cel layer id).
unknown_interp: HashSet<String>Interpolations evaluated as linear because they are not known.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameState
impl RefUnwindSafe for FrameState
impl Send for FrameState
impl Sync for FrameState
impl Unpin for FrameState
impl UnsafeUnpin for FrameState
impl UnwindSafe for FrameState
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