Enum gfx_glyph::LayoutLeftover
[−]
[src]
pub enum LayoutLeftover<'a> { HardBreak(Point<f32>, GlyphInfo<'a>), OutOfWidthBound(Point<f32>, GlyphInfo<'a>), OutOfHeightBound(Point<f32>, GlyphInfo<'a>), }
Container for glyphs leftover/unable to fit in a layout and/or within render bounds
Variants
HardBreak(Point<f32>, GlyphInfo<'a>)
leftover text after a new hard line break, indicated by the
LineBreaker
OutOfWidthBound(Point<f32>, GlyphInfo<'a>)
text that would fall outside of the horizontal bound
OutOfHeightBound(Point<f32>, GlyphInfo<'a>)
text that would fall fully outside the vertical bound
note: does not include hidden text within a layout
for example a _
character hidden but between visible characters would be ignored
Trait Implementations
impl<'a> Clone for LayoutLeftover<'a>
[src]
fn clone(&self) -> LayoutLeftover<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more