[−][src]Struct tuifw_screen_base::Rect
Fields
tl: Point
size: 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]
fn clone(&self) -> Rect
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Rect
[src]
impl Debug for Rect
[src]
impl Eq for Rect
[src]
impl Hash for Rect
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Rect> for Rect
[src]
impl StructuralEq for Rect
[src]
impl StructuralPartialEq for Rect
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,