Struct cosmic_text::ShapeGlyph
source · pub struct ShapeGlyph {
pub start: usize,
pub end: usize,
pub x_advance: f32,
pub y_advance: f32,
pub x_offset: f32,
pub y_offset: f32,
pub ascent: f32,
pub descent: f32,
pub font_id: ID,
pub glyph_id: u16,
pub color_opt: Option<Color>,
pub metadata: usize,
}
Expand description
A shaped glyph
Fields§
§start: usize
§end: usize
§x_advance: f32
§y_advance: f32
§x_offset: f32
§y_offset: f32
§ascent: f32
§descent: f32
§font_id: ID
§glyph_id: u16
§color_opt: Option<Color>
§metadata: usize
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ShapeGlyph
impl Send for ShapeGlyph
impl Sync for ShapeGlyph
impl Unpin for ShapeGlyph
impl UnwindSafe for ShapeGlyph
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