[][src]Trait plotters_backend::BackendTextStyle

pub trait BackendTextStyle {
    type FontError: Error + Sync + Send + 'static;
    fn family(&self) -> FontFamily;
fn layout_box(
        &self,
        text: &str
    ) -> Result<((i32, i32), (i32, i32)), Self::FontError>;
fn draw<E, DrawFunc: FnMut(i32, i32, BackendColor) -> Result<(), E>>(
        &self,
        text: &str,
        pos: BackendCoord,
        draw: DrawFunc
    ) -> Result<Result<(), E>, Self::FontError>; fn color(&self) -> BackendColor { ... }
fn size(&self) -> f64 { ... }
fn transform(&self) -> FontTransform { ... }
fn style(&self) -> FontStyle { ... }
fn anchor(&self) -> Pos { ... } }

Associated Types

type FontError: Error + Sync + Send + 'static

Loading content...

Required methods

fn family(&self) -> FontFamily

fn layout_box(
    &self,
    text: &str
) -> Result<((i32, i32), (i32, i32)), Self::FontError>

fn draw<E, DrawFunc: FnMut(i32, i32, BackendColor) -> Result<(), E>>(
    &self,
    text: &str,
    pos: BackendCoord,
    draw: DrawFunc
) -> Result<Result<(), E>, Self::FontError>

Loading content...

Provided methods

fn color(&self) -> BackendColor

fn size(&self) -> f64

fn transform(&self) -> FontTransform

fn style(&self) -> FontStyle

fn anchor(&self) -> Pos

Loading content...

Implementors

Loading content...