[][src]Trait piet_common::Text

pub trait Text where
    <Self::FontBuilder as FontBuilder>::Out == Self::Font,
    <Self::TextLayoutBuilder as TextLayoutBuilder>::Out == Self::TextLayout
{ type FontBuilder: FontBuilder; type Font: Font; type TextLayoutBuilder: TextLayoutBuilder; type TextLayout: TextLayout; fn new_font_by_name(&mut self, name: &str, size: f64) -> Self::FontBuilder;
fn new_text_layout(
        &mut self,
        font: &Self::Font,
        text: &str
    ) -> Self::TextLayoutBuilder; }

Associated Types

type FontBuilder: FontBuilder

type Font: Font

type TextLayoutBuilder: TextLayoutBuilder

type TextLayout: TextLayout

Loading content...

Required methods

fn new_font_by_name(&mut self, name: &str, size: f64) -> Self::FontBuilder

fn new_text_layout(
    &mut self,
    font: &Self::Font,
    text: &str
) -> Self::TextLayoutBuilder

Loading content...

Implementations on Foreign Types

impl Text for EmbedText[src]

type Font = EmbedFont

type FontBuilder = EmbedFontBuilder

type TextLayout = EmbedTextLayout

type TextLayoutBuilder = EmbedTextLayoutBuilder

Loading content...

Implementors

Loading content...