Trait graphics::Rectangled
source · pub trait Rectangled: Sized {
// Required methods
fn margin(self, m: Scalar) -> Self;
fn rel(self, x: Scalar, y: Scalar) -> Self;
// Provided method
fn expand(self, m: Scalar) -> Self { ... }
}
Expand description
Should be implemented by contexts that have rectangle information.