Enum gfx_glyph::LayoutLeftover
[−]
[src]
pub enum LayoutLeftover<'a> { HardBreak(Point<f32>, SectionGlyphInfo<'a>, VMetrics), OutOfWidthBound(Point<f32>, SectionGlyphInfo<'a>, VMetrics), OutOfHeightBound(Point<f32>, SectionGlyphInfo<'a>, VMetrics), }
Container for glyphs leftover/unable to fit in a layout and/or within render bounds
Variants
HardBreak(Point<f32>, SectionGlyphInfo<'a>, VMetrics)
leftover text after a new hard line break, indicated by the
LineBreaker
OutOfWidthBound(Point<f32>, SectionGlyphInfo<'a>, VMetrics)
text that would fall outside of the horizontal bound
OutOfHeightBound(Point<f32>, SectionGlyphInfo<'a>, VMetrics)
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> Debug for LayoutLeftover<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
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