Trait webrender_api::units::RectExt

source ·
pub trait RectExt {
    type Point;

    // Required methods
    fn top_left(&self) -> Self::Point;
    fn top_right(&self) -> Self::Point;
    fn bottom_left(&self) -> Self::Point;
    fn bottom_right(&self) -> Self::Point;
}

Required Associated Types§

Required Methods§

source

fn top_left(&self) -> Self::Point

source

fn top_right(&self) -> Self::Point

source

fn bottom_left(&self) -> Self::Point

source

fn bottom_right(&self) -> Self::Point

Implementations on Foreign Types§

source§

impl<U> RectExt for Box2D<f32, U>

source§

type Point = Point2D<f32, U>

source§

fn top_left(&self) -> Self::Point

source§

fn top_right(&self) -> Self::Point

source§

fn bottom_left(&self) -> Self::Point

source§

fn bottom_right(&self) -> Self::Point

source§

impl<U> RectExt for Rect<f32, U>

source§

type Point = Point2D<f32, U>

source§

fn top_left(&self) -> Self::Point

source§

fn top_right(&self) -> Self::Point

source§

fn bottom_left(&self) -> Self::Point

source§

fn bottom_right(&self) -> Self::Point

Implementors§