Struct gfx_glyph::SectionGlyphInfo
[−]
[src]
pub struct SectionGlyphInfo<'a> { pub screen_position: (f32, f32), pub bounds: (f32, f32), pub text: Vec<GlyphInfo<'a>>, pub text_index: usize, }
Fields
screen_position: (f32, f32)
Position on screen to render text, in pixels from top-left.
bounds: (f32, f32)
Max (width, height) bounds, in pixels from top-left.
text: Vec<GlyphInfo<'a>>
text_index: usize
Methods
impl<'a> SectionGlyphInfo<'a>
[src]
pub fn with_info(&self, index: usize, info: GlyphInfo<'a>) -> Self
[src]
Returns a clone info that has marked text up to index
as processed, and
GlyphInfo
at index as input info
pub fn remaining_info(&self) -> Skip<Enumerate<Iter<GlyphInfo<'a>>>>
[src]
Trait Implementations
impl<'a> Debug for SectionGlyphInfo<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Clone for SectionGlyphInfo<'a>
[src]
fn clone(&self) -> SectionGlyphInfo<'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
impl<'a, 'b> From<&'b VariedSection<'a>> for SectionGlyphInfo<'a>
[src]
fn from(section: &'b VariedSection<'a>) -> Self
[src]
Performs the conversion.