pub struct GlScissor { /* private fields */ }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.
Implementations§
Source§impl GlScissor
impl GlScissor
pub fn get_x(&self) -> &i32
pub fn get_mut_x(&mut self) -> &mut i32
pub fn set_x(&mut self, val: i32) -> &mut Self
pub fn get_y(&self) -> &i32
pub fn get_mut_y(&mut self) -> &mut i32
pub fn set_y(&mut self, val: i32) -> &mut Self
pub fn get_width(&self) -> &i32
pub fn get_mut_width(&mut self) -> &mut i32
pub fn set_width(&mut self, val: i32) -> &mut Self
pub fn get_height(&self) -> &i32
pub fn get_mut_height(&mut self) -> &mut i32
pub fn set_height(&mut self, val: i32) -> &mut Self
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