Skip to main content

MeasureScope

Trait MeasureScope 

Source
pub trait MeasureScope {
    // Provided methods
    fn density(&self) -> f32 { ... }
    fn font_scale(&self) -> f32 { ... }
}
Expand description

Scope for measurement operations.

Provided Methods§

Source

fn density(&self) -> f32

Returns the current density for converting Dp to pixels.

Source

fn font_scale(&self) -> f32

Returns the current font scale for converting Sp to pixels.

Implementors§