pub struct CharMetrics {
pub char: String,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub xoffset: i32,
pub yoffset: i32,
pub xadvance: u32,
pub padding: u32,
}Expand description
Character metrics for XML output
Fields§
§char: StringThe character
x: u32X position in atlas
y: u32Y position in atlas
width: u32Width (original, without padding)
height: u32Height (original, without padding)
xoffset: i32X offset
yoffset: i32Y offset
xadvance: u32X advance (horizontal step)
padding: u32Padding
Trait Implementations§
Source§impl Clone for CharMetrics
impl Clone for CharMetrics
Source§fn clone(&self) -> CharMetrics
fn clone(&self) -> CharMetrics
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 CharMetrics
impl Debug for CharMetrics
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 CharMetrics
impl RefUnwindSafe for CharMetrics
impl Send for CharMetrics
impl Sync for CharMetrics
impl Unpin for CharMetrics
impl UnsafeUnpin for CharMetrics
impl UnwindSafe for CharMetrics
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