[go: up one dir, main page]

[][src]Trait piet_common::TextLayout

pub trait TextLayout {
    type Coord: RoundFrom<f64> + Into<f64>;
    fn width(&self) -> Self::Coord;
}

Associated Types

Loading content...

Required methods

fn width(&self) -> Self::Coord

Measure the advance width of the text.

Loading content...

Implementations on Foreign Types

impl TextLayout for CairoTextLayout[src]

type Coord = f64

Loading content...

Implementors

Loading content...