pub struct GlScissor {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}Expand description
A scissor rectangle.
A zero-sized box is legal and clips everything away, which is
meaningfully different from scissoring being off; the off case is
therefore expressed by the Option on GlRenderState::scissor
rather than by a sentinel rectangle.
Fields§
§x: i32The left edge in framebuffer pixels.
y: i32The bottom edge in framebuffer pixels.
width: i32The width in framebuffer pixels.
height: i32The height in framebuffer pixels.
Implementations§
Trait Implementations§
impl Copy for GlScissor
impl StructuralPartialEq for GlScissor
Auto Trait Implementations§
impl Freeze for GlScissor
impl RefUnwindSafe for GlScissor
impl Send for GlScissor
impl Sync for GlScissor
impl Unpin for GlScissor
impl UnsafeUnpin for GlScissor
impl UnwindSafe for GlScissor
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