Trait piston_window::Rectangled
source · pub trait Rectangled: Sized {
fn margin(self, m: f64) -> Self;
fn rel(self, x: f64, y: f64) -> Self;
fn expand(self, m: f64) -> Self { ... }
}
Expand description
Should be implemented by contexts that have rectangle information.