pub struct Rect {
pub x: f64,
pub y: f64,
pub w: f64,
pub h: f64,
}Expand description
A rectangle, in whatever coordinates the caller is using.
This crate’s own rather than the compositor’s, because the compositor’s is
Smithay’s and this crate has no dependencies. The conversion happens at one
seam, in present.rs.
Fields§
§x: f64§y: f64§w: f64§h: f64Implementations§
Trait Implementations§
impl Copy 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 UnsafeUnpin 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