Struct i_slint_core::textlayout::Glyph
source · [−]pub struct Glyph<Length, PlatformGlyphData> {
pub advance: Length,
pub offset_x: Length,
pub offset_y: Length,
pub platform_glyph: PlatformGlyphData,
pub text_byte_offset: usize,
}
Expand description
This struct describes a glyph from shaping to rendering. This includes the relative shaping offsets, advance (in abstract lengths) and platform specific glyph data.
Fields
advance: Length
offset_x: Length
offset_y: Length
platform_glyph: PlatformGlyphData
text_byte_offset: usize
The byte offset back in the original (Rust) string to the character that “produced” this glyph. When one character produces multiple glyphs (for example decomposed ligature), then all glyphs have the same offset.
Trait Implementations
Auto Trait Implementations
impl<Length, PlatformGlyphData> RefUnwindSafe for Glyph<Length, PlatformGlyphData> where
Length: RefUnwindSafe,
PlatformGlyphData: RefUnwindSafe,
impl<Length, PlatformGlyphData> Send for Glyph<Length, PlatformGlyphData> where
Length: Send,
PlatformGlyphData: Send,
impl<Length, PlatformGlyphData> Sync for Glyph<Length, PlatformGlyphData> where
Length: Sync,
PlatformGlyphData: Sync,
impl<Length, PlatformGlyphData> Unpin for Glyph<Length, PlatformGlyphData> where
Length: Unpin,
PlatformGlyphData: Unpin,
impl<Length, PlatformGlyphData> UnwindSafe for Glyph<Length, PlatformGlyphData> where
Length: UnwindSafe,
PlatformGlyphData: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more