Skip to main content

HasRemSize

Trait HasRemSize 

Source
pub trait HasRemSize {
    // Required method
    fn rem_size(&self) -> Pixels;
}
Expand description

A source of the current rem size, used to convert Pixels to Rems.

Implementing this for the window type lets Rems::from_pixels live in this crate without depending on the rest of GPUI.

Required Methods§

Source

fn rem_size(&self) -> Pixels

The size of one rem, in pixels.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§