Struct sciter::types::RECT
[−]
[src]
#[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: LONG
top: LONG
right: LONG
bottom: 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]
fn clone(&self) -> RECT[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for RECT[src]
impl PartialEq for RECT[src]
fn eq(&self, __arg_0: &RECT) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &RECT) -> bool[src]
This method tests for !=.