#[repr(C)]pub struct GlyphInstance {
pub anchor_x: f32,
pub anchor_y: f32,
pub offset_x: f32,
pub offset_y: f32,
pub width: f32,
pub height: f32,
pub atlas_x: u32,
pub atlas_y: u32,
pub atlas_w: u32,
pub atlas_h: u32,
pub color: u32,
pub flags: u32,
}Expand description
One source-anchored glyph quad record, exactly 48 bytes.
anchor_x/anchor_y are normalized to the source image;
offset_x/offset_y and width/height are compose-target pixels.
flags bit 0 rotates the source coverage counter-clockwise for
bottom-to-top text; higher bits are reserved for Ui’s deterministic
non-overlap batching.
Fields§
§anchor_x: f32§anchor_y: f32§offset_x: f32§offset_y: f32§width: f32§height: f32§atlas_x: u32§atlas_y: u32§atlas_w: u32§atlas_h: u32§color: u32§flags: u32Trait Implementations§
Source§impl Clone for GlyphInstance
impl Clone for GlyphInstance
impl Copy for GlyphInstance
Source§impl Debug for GlyphInstance
impl Debug for GlyphInstance
Source§impl Default for GlyphInstance
impl Default for GlyphInstance
Source§impl PartialEq for GlyphInstance
impl PartialEq for GlyphInstance
impl StructuralPartialEq for GlyphInstance
Auto Trait Implementations§
impl Forget for GlyphInstance
impl Freeze for GlyphInstance
impl Move for GlyphInstance
impl RefUnwindSafe for GlyphInstance
impl Send for GlyphInstance
impl Sync for GlyphInstance
impl Unpin for GlyphInstance
impl UnsafeUnpin for GlyphInstance
impl UnwindSafe for GlyphInstance
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