pub struct Rect {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}
Expand description
Structure representing a rectangle zone in the window.
Fields§
§x: u32
Left coordinate of the rectangle, relative to x-axis of the window.
y: u32
Top coordinate of the rectangle, relative to y-axis of the window.
width: u32
Width of the rectangle.
height: u32
Height of the rectangle.
Implementations§
Trait Implementations§
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§
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