[−][src]Struct azul_text_layout::text_layout::ScaledWords
A paragraph of words that are shaped and scaled (* but not yet layouted / positioned*!) according to their final size in pixels.
Fields
font_size_px: f32
Font size (in pixels) that was used to scale these words
baseline_px: f32
Baseline of the font (usually lower than the font size)
items: Vec<ScaledWord>
Words scaled to their appropriate font size, but not yet positioned on the screen
longest_word_width: f32
Longest word in the self.scaled_words
, necessary for
calculating overflow rectangles.
space_advance_px: f32
Horizontal advance of the space glyph
space_codepoint: u32
Glyph index of the space character
font_metrics: FontMetrics
Metrics necessary for baseline calculation
Trait Implementations
impl Clone for ScaledWords
[src]
fn clone(&self) -> ScaledWords
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScaledWords
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScaledWords
impl Send for ScaledWords
impl Sync for ScaledWords
impl Unpin for ScaledWords
impl UnwindSafe for ScaledWords
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>,