pub struct PackedChar {
pub char: String,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub original_width: u32,
pub original_height: u32,
pub padding: u32,
}Expand description
A packed character with its position in the atlas
Fields§
§char: StringThe character identifier
x: u32X position in the atlas
y: u32Y position in the atlas
width: u32Width in pixels (including padding)
height: u32Height in pixels (including padding)
original_width: u32Original width (without padding)
original_height: u32Original height (without padding)
padding: u32Padding applied
Trait Implementations§
Source§impl Clone for PackedChar
impl Clone for PackedChar
Source§fn clone(&self) -> PackedChar
fn clone(&self) -> PackedChar
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackedChar
impl Debug for PackedChar
Source§impl From<PackedChar> for CharMetrics
impl From<PackedChar> for CharMetrics
Source§fn from(packed: PackedChar) -> Self
fn from(packed: PackedChar) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackedChar
impl RefUnwindSafe for PackedChar
impl Send for PackedChar
impl Sync for PackedChar
impl Unpin for PackedChar
impl UnsafeUnpin for PackedChar
impl UnwindSafe for PackedChar
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