Struct uiautomation::types::Rect
source · pub struct Rect(/* private fields */);
Expand description
A Rect type stores the position and size of a rectangle.
Implementations§
source§impl Rect
impl Rect
sourcepub fn get_bottom(&self) -> i32
pub fn get_bottom(&self) -> i32
Retrieves the bottom of the rect.
sourcepub fn set_bottom(&mut self, bottom: i32)
pub fn set_bottom(&mut self, bottom: i32)
Sets the bottom of the rect.
sourcepub fn get_top_left(&self) -> Point
pub fn get_top_left(&self) -> Point
Retrieves the top left point.
sourcepub fn get_right_bottom(&self) -> Point
pub fn get_right_bottom(&self) -> Point
Retrieves the right bottom point.
sourcepub fn get_height(&self) -> i32
pub fn get_height(&self) -> i32
Retrieves the height of the rect.
Trait Implementations§
source§impl PartialEq for Rect
impl PartialEq for Rect
impl Copy for Rect
impl Eq for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more