Struct clutter::Rect[][src]

pub struct Rect(_);

Implementations

impl Rect[src]

pub fn alloc() -> Rect[src]

pub fn clamp_to_pixel(&mut self)[src]

pub fn contains_point(&mut self, point: &mut Point) -> bool[src]

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

pub fn equals(&mut self, b: &mut Rect) -> bool[src]

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

pub fn get_height(&mut self) -> f32[src]

pub fn get_width(&mut self) -> f32[src]

pub fn get_x(&mut self) -> f32[src]

pub fn get_y(&mut self) -> f32[src]

pub fn init(&mut self, x: f32, y: f32, width: f32, height: f32) -> Option<Rect>[src]

pub fn inset(&mut self, d_x: f32, d_y: f32)[src]

pub fn intersection(&mut self, b: &mut Rect) -> Option<Rect>[src]

pub fn normalize(&mut self) -> Option<Rect>[src]

pub fn offset(&mut self, d_x: f32, d_y: f32)[src]

pub fn union(&mut self, b: &mut Rect) -> Rect[src]

pub fn zero() -> Option<Rect>[src]

impl Rect[src]

Trait Implementations

impl Clone for Rect[src]

impl Debug for Rect[src]

impl Eq for Rect[src]

impl Hash for Rect[src]

impl Ord for Rect[src]

impl PartialEq<Rect> for Rect[src]

impl PartialOrd<Rect> for Rect[src]

impl StaticType for Rect[src]

impl StructuralEq for Rect[src]

impl StructuralPartialEq for Rect[src]

Auto Trait Implementations

impl RefUnwindSafe for Rect

impl !Send for Rect

impl !Sync for Rect

impl Unpin for Rect

impl UnwindSafe for Rect

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.