pub struct Scissor {
pub offset: [u32; 2],
pub extent: [u32; 2],
}
Expand description
A two-dimensional subregion.
Fields§
§offset: [u32; 2]
Coordinates of the top-left hand corner of the box.
The default value is [0; 2]
.
extent: [u32; 2]
Dimensions of the box.
The default value is [i32::MAX; 2]
.
Implementations§
Trait Implementations§
source§impl PartialEq for Scissor
impl PartialEq for Scissor
impl Copy for Scissor
impl Eq for Scissor
impl StructuralEq for Scissor
impl StructuralPartialEq for Scissor
Auto Trait Implementations§
impl RefUnwindSafe for Scissor
impl Send for Scissor
impl Sync for Scissor
impl Unpin for Scissor
impl UnwindSafe for Scissor
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