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.

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

Implementors