pub struct GlyphInstance {
pub index: u32,
pub point: LogicalPosition,
pub size: LogicalSize,
}Expand description
A single positioned glyph with its index, screen position, and size.
Fields§
§index: u32§point: LogicalPosition§size: LogicalSizeImplementations§
Source§impl GlyphInstance
impl GlyphInstance
pub fn scale_for_dpi(&mut self, scale_factor: f32)
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 (const: unstable) · 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
Source§impl Default for GlyphInstance
impl Default for GlyphInstance
Source§fn default() -> GlyphInstance
fn default() -> GlyphInstance
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlyphInstance
impl PartialEq for GlyphInstance
Source§fn eq(&self, other: &GlyphInstance) -> bool
fn eq(&self, other: &GlyphInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GlyphInstance
impl PartialOrd for GlyphInstance
impl Copy for GlyphInstance
impl StructuralPartialEq 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