pub trait FontDrawing {
    // Required methods
    fn draw_text(
        &self,
        font: &Font,
        color: Color,
        x: f32,
        y: f32,
        align: FontAlign,
        text: &str
    );
    fn draw_justified_text(
        &self,
        font: &Font,
        color: Color,
        x1: f32,
        x2: f32,
        y: f32,
        diff: f32,
        align: FontAlign,
        text: &str
    );
}

Required Methods§

source

fn draw_text( &self, font: &Font, color: Color, x: f32, y: f32, align: FontAlign, text: &str )

source

fn draw_justified_text( &self, font: &Font, color: Color, x1: f32, x2: f32, y: f32, diff: f32, align: FontAlign, text: &str )

Implementations on Foreign Types§

source§

impl FontDrawing for Core

source§

fn draw_justified_text( &self, font: &Font, color: Color, x1: f32, x2: f32, y: f32, diff: f32, align: FontAlign, text: &str )

source§

fn draw_text( &self, font: &Font, color: Color, x: f32, y: f32, align: FontAlign, text: &str )

Implementors§