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

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.

Implementors