[][src]Struct orbtk::rect::Rect

pub struct Rect {
    pub x: i32,
    pub y: i32,
    pub width: u32,
    pub height: u32,


x: i32y: i32width: u32height: u32


impl Rect[src]

pub fn new(x: i32, y: i32, width: u32, height: u32) -> Rect[src]

pub fn point(&self) -> Point[src]

pub fn contains(&self, p: Point) -> bool[src]

pub fn contains_rect(&self, r: &Rect) -> bool[src]

pub fn intersects(&self, r: &Rect) -> bool[src]

Trait Implementations

impl Copy for Rect[src]

impl Default for Rect[src]

impl Clone for Rect[src]

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for Rect[src]

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.