[−][src]Struct azul_text_layout::text_layout::ScaledWord
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]
fn clone(&self) -> ScaledWord
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScaledWord
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScaledWord
impl Send for ScaledWord
impl Sync for ScaledWord
impl Unpin for ScaledWord
impl UnwindSafe for ScaledWord
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,