pub struct Placement {
pub size: Vec2,
pub pivot: Vec2,
}Expand description
The size and pivot of a frame’s quad, as Sprite::size
and Sprite::pivot hold them.
Fields§
§size: Vec2The size in world units.
pivot: Vec2The point of the quad at the entity’s position, normalized.
Trait Implementations§
impl Copy for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Forget for Placement
impl Freeze for Placement
impl Move for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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