Trait limn_core::geometry::RectExt [] [src]

pub trait RectExt<T> {
    fn from_rusttype<S: Into<T>>(rect: Rect<S>) -> Self;
fn to_slice(&self) -> [T; 4];
fn left(&self) -> T;
fn top(&self) -> T;
fn right(&self) -> T;
fn bottom(&self) -> T;
fn width(&self) -> T;
fn height(&self) -> T;
fn center(&self) -> Point;
fn shrink_bounds(&self, size: T) -> Self; }

Extension trait for rectangles. Helper methods for rectangle sides depend on the assumption that Rect size never contains negative values.

Required Methods

Implementors