[][src]Trait graphics::Rectangled

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

Should be implemented by contexts that have rectangle information.

Required methods

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

Shrinks the current rectangle equally by all sides.

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

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

Loading content...

Provided methods

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

Expands the current rectangle equally by all sides.

Loading content...

Implementors

impl Rectangled for Rectangle[src]

Loading content...