[][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

fn margin(self, m: f64) -> Self

Shrinks the current rectangle equally by all sides.

fn rel(self, x: f64, y: f64) -> Self

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

Loading content...

Provided methods

fn expand(self, m: f64) -> Self

Expands the current rectangle equally by all sides.

Loading content...

Implementations on Foreign Types

impl Rectangled for [f64; 4][src]

fn expand(self, m: f64) -> Self[src]

Loading content...

Implementors

Loading content...