[][src]Struct azul_text_layout::text_layout::ScaledWord

pub struct ScaledWord {
    pub glyph_infos: Vec<GlyphInfo>,
    pub glyph_positions: Vec<GlyphPosition>,
    pub word_width: f32,
}

Word that is scaled (to a font / font instance), but not yet positioned

Fields

glyph_infos: Vec<GlyphInfo>

Glyphs, positions are relative to the first character of the word

glyph_positions: Vec<GlyphPosition>

Horizontal advances of each glyph, necessary for hit-testing characters later on (for text selection).

word_width: f32

The sum of the width of all the characters in this word

Implementations

impl ScaledWord[src]

pub fn cluster_iter(&'a self) -> ClusterIterator<'a>[src]

Creates an iterator over clusters instead of glyphs

pub fn number_of_clusters(&self) -> usize[src]

Trait Implementations

impl Clone for ScaledWord[src]

impl Debug for ScaledWord[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.