pub struct Frame<K> {
pub key: K,
pub frame: Rect,
pub rotated: bool,
pub trimmed: bool,
pub source: Rect,
}Expand description
Boundaries and properties of a packed texture.
Fields§
§key: KKey used to uniquely identify this frame.
frame: RectRectangle describing the texture coordinates and size.
rotated: boolTrue if the texture was rotated during packing. If it was rotated, it was rotated 90 degrees clockwise.
trimmed: boolTrue if the texture was trimmed during packing.
source: RectSource texture size before any trimming.
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Frame<K>where
K: Freeze,
impl<K> RefUnwindSafe for Frame<K>where
K: RefUnwindSafe,
impl<K> Send for Frame<K>where
K: Send,
impl<K> Sync for Frame<K>where
K: Sync,
impl<K> Unpin for Frame<K>where
K: Unpin,
impl<K> UnwindSafe for Frame<K>where
K: UnwindSafe,
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