pub struct Frame {
pub width: u32,
pub height: u32,
pub pixels: Vec<Option<Rgb>>,
pub duration_ms: u32,
pub anchors: BTreeMap<String, (i32, i32)>,
}Expand description
One animation frame. Pixels are row-major, None is transparent.
Fields§
§width: u32§height: u32§pixels: Vec<Option<Rgb>>§duration_ms: u32§anchors: BTreeMap<String, (i32, i32)>Anchor points in frame pixels (origin, hand_l, item_tip, …).
Implementations§
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Forget for Frame
impl Freeze for Frame
impl Move for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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