[][src]Struct tuifw::Rect

pub struct Rect {
    pub tl: Point,
    pub size: Vector,
}

Fields

tl: Pointsize: Vector

Implementations

impl Rect[src]

pub fn from_tl_br(tl: Point, br: Point) -> Rect[src]

pub fn is_empty(self) -> bool[src]

pub fn w(self) -> i16[src]

pub fn h(self) -> i16[src]

pub fn l(self) -> i16[src]

pub fn t(self) -> i16[src]

pub fn r(self) -> i16[src]

pub fn b(self) -> i16[src]

pub fn tr(self) -> Point[src]

pub fn bl(self) -> Point[src]

pub fn br(self) -> Point[src]

pub fn area(self) -> u32[src]

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

pub fn intersect(self, other: Rect) -> Rect[src]

pub fn intersect_h_band(self, band: HBand) -> Rect[src]

pub fn intersect_v_band(self, band: VBand) -> Rect[src]

pub fn union(self, other: Rect) -> Option<Either<Either<HBand, VBand>, Rect>>[src]

pub fn union_intersect(self, union_with: Rect, intersect_with: Rect) -> Rect[src]

pub fn offset(self, d: Vector) -> Rect[src]

Trait Implementations

impl Clone for Rect[src]

impl Copy for Rect[src]

impl Debug for Rect[src]

impl Eq for Rect[src]

impl Hash for Rect[src]

impl PartialEq<Rect> 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<PropType> DepPropType for PropType where
    PropType: 'static + Clone + Send + Sync + Debug
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> DynClone for T where
    T: Clone
[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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,