azul_webrender_api::units

Trait 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§