pub struct GlyphInstance {
pub bounds: [f32; 4],
pub uv_bounds: [f32; 4],
pub color: [f32; 4],
pub is_color: bool,
}Expand description
A GPU glyph instance for rendering
Fields§
§bounds: [f32; 4]Position and size in pixels (x, y, width, height)
uv_bounds: [f32; 4]UV coordinates in atlas (u_min, v_min, u_max, v_max)
color: [f32; 4]Text color (RGBA, 0.0-1.0)
is_color: boolWhether this glyph is from the color atlas (emoji)
Trait Implementations§
Source§impl Clone for GlyphInstance
impl Clone for GlyphInstance
Source§fn clone(&self) -> GlyphInstance
fn clone(&self) -> GlyphInstance
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 GlyphInstance
impl Debug for GlyphInstance
impl Copy for GlyphInstance
Auto Trait Implementations§
impl Freeze 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