pub struct PixelRect {
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
}Expand description
An axis-aligned rectangle in pixel space: top-left corner plus size.
Fields§
§x: f64Left edge in pixels.
y: f64Top edge in pixels.
width: f64Width in pixels.
height: f64Height in pixels.
Implementations§
Trait Implementations§
impl Copy for PixelRect
impl StructuralPartialEq for PixelRect
Auto Trait Implementations§
impl Freeze for PixelRect
impl RefUnwindSafe for PixelRect
impl Send for PixelRect
impl Sync for PixelRect
impl Unpin for PixelRect
impl UnsafeUnpin for PixelRect
impl UnwindSafe for PixelRect
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