RenderTarget

Trait RenderTarget 

Source
pub trait RenderTarget<'f> {
    // Required methods
    fn font_library(&self) -> &'f FontLibrary;
    fn size(&self) -> (f32, Option<f32>);
    fn init(&self) -> Option<Block<'f>>;
    fn write(
        &mut self,
        data: &[u8],
        height: f32,
        used_glyphs: &[GlyphSet],
    ) -> Option<Block<'f>>;
}

Required Methods§

Source

fn font_library(&self) -> &'f FontLibrary

Source

fn size(&self) -> (f32, Option<f32>)

Source

fn init(&self) -> Option<Block<'f>>

Source

fn write( &mut self, data: &[u8], height: f32, used_glyphs: &[GlyphSet], ) -> Option<Block<'f>>

Implementors§

Source§

impl<'c, 'f> RenderTarget<'f> for PageSet<'c, 'f>

Source§

impl<'f> RenderTarget<'f> for Block<'f>