[][src]Struct sciter::types::RECT

#[repr(C)]
pub struct RECT {
    pub left: LONG,
    pub top: LONG,
    pub right: LONG,
    pub bottom: LONG,
}

Defines the coordinates of the upper-left and lower-right corners of a rectangle.

Fields

left: LONGtop: LONGright: LONGbottom: LONG

Methods

impl RECT[src]

pub fn height(&self) -> LONG[src]

Calculate height of rect.

pub fn width(&self) -> LONG[src]

Calculate width of rect.

pub fn size(&self) -> SIZE[src]

Return the size of rect in width and height form.

pub fn topleft(&self) -> POINT[src]

Returns the top-left point of rect.

Trait Implementations

impl Clone for RECT[src]

impl Copy for RECT[src]

impl Debug for RECT[src]

impl Default for RECT[src]

impl PartialEq<RECT> 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, 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.