Trait guion::style::font::Glyphs[][src]

pub trait Glyphs<E>: Sized where
    E: Env
{ type Glyph: Glyph; fn size(&self) -> Dims;
fn lines(&self) -> CrazyWorkaroundPPIter<'_, Self::Glyph>;
fn generate(s: &str, size: (f32, f32), ctx: &mut E::Context) -> Self;
fn line_ascent(&self) -> u32;
fn line_height(&self) -> u32;
fn line_distance(&self) -> u32; fn chars(&self) -> u32 { ... }
fn glyphs(&self) -> Box<dyn Iterator<Item = Self::Glyph>> { ... }
fn char_at(&self, i: u32) -> Option<Self::Glyph> { ... }
fn coord_of(&self, i: u32) -> Option<(u32, u32)> { ... }
fn at_coord(&self, xy: (u32, u32)) -> Option<u32> { ... }
fn line_count(&self) -> u32 { ... } }

Text in a optimized form for faster frequent rendering and iterating

Associated Types

Loading content...

Required methods

fn size(&self) -> Dims[src]

fn lines(&self) -> CrazyWorkaroundPPIter<'_, Self::Glyph>[src]

fn generate(s: &str, size: (f32, f32), ctx: &mut E::Context) -> Self[src]

fn line_ascent(&self) -> u32[src]

fn line_height(&self) -> u32[src]

fn line_distance(&self) -> u32[src]

Loading content...

Provided methods

fn chars(&self) -> u32[src]

fn glyphs(&self) -> Box<dyn Iterator<Item = Self::Glyph>>[src]

fn char_at(&self, i: u32) -> Option<Self::Glyph>[src]

fn coord_of(&self, i: u32) -> Option<(u32, u32)>[src]

fn at_coord(&self, xy: (u32, u32)) -> Option<u32>[src]

fn line_count(&self) -> u32[src]

Loading content...

Implementors

Loading content...