[][src]Trait piston_window::Rectangled

pub trait Rectangled {
    fn margin(self, m: f64) -> Self;
fn rel(self, x: f64, y: f64) -> Self; fn expand(self, m: f64) -> Self { ... } }

Should be implemented by contexts that have rectangle information.

Required Methods

Shrinks the current rectangle equally by all sides.

Moves to a relative rectangle using the current rectangle as tile.

Provided Methods

Expands the current rectangle equally by all sides.

Implementations on Foreign Types

impl Rectangled for [f64; 4]
[src]

Implementors