Expand description
State of a single scissor box.
Fields
origin: [u32; 2]
Coordinates in pixels of the top-left hand corner of the box.
dimensions: [u32; 2]
Dimensions in pixels of the box.
Implementations
sourceimpl Scissor
impl Scissor
sourcepub fn irrelevant() -> Scissor
pub fn irrelevant() -> Scissor
Returns a scissor that, when used, will instruct the pipeline to draw to the entire framebuffer no matter its size.
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more