pub struct ClipRect {
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
}Expand description
An axis-aligned clip rectangle in logical (floating-point) coordinates.
Fields§
§x: f32Left edge in logical pixels.
y: f32Top edge in logical pixels.
w: f32Width in logical pixels.
h: f32Height in logical pixels.
Implementations§
Trait Implementations§
impl Copy for ClipRect
impl StructuralPartialEq for ClipRect
Auto Trait Implementations§
impl Freeze for ClipRect
impl RefUnwindSafe for ClipRect
impl Send for ClipRect
impl Sync for ClipRect
impl Unpin for ClipRect
impl UnsafeUnpin for ClipRect
impl UnwindSafe for ClipRect
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