pub trait Displayable<T> {
    type Pixels: Displayable<T>;
    type Points: Displayable<T>;
    type Scaled: Displayable<T>;

    fn to_pixels(&self, scale: &DisplayScale<T>) -> Self::Pixels;
    fn to_points(&self, scale: &DisplayScale<T>) -> Self::Points;
    fn to_scaled(&self, scale: &DisplayScale<T>) -> Self::Scaled;
}
Expand description

Methods for converting between display scales.

Required Associated Types

The Pixels unit type for this implementor.

The Points unit type for this implementor.

The Scaled unit type for this implementor.

Required Methods

Returns this value after applying scale, if needed.

Returns this value after applying scale, if needed.

Returns this value after applying scale, if needed.

Implementors