pub struct GlViewport { /* private fields */ }Expand description
The viewport rectangle, in framebuffer pixels.
Stored as signed values because GL accepts a negative origin for flipped-coordinate passes even though the default is the origin.
Implementations§
Source§impl GlViewport
impl GlViewport
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§
Source§impl Clone for GlViewport
impl Clone for GlViewport
impl Copy for GlViewport
Source§impl Debug for GlViewport
impl Debug for GlViewport
Source§impl PartialEq for GlViewport
impl PartialEq for GlViewport
impl StructuralPartialEq for GlViewport
Auto Trait Implementations§
impl Freeze for GlViewport
impl RefUnwindSafe for GlViewport
impl Send for GlViewport
impl Sync for GlViewport
impl Unpin for GlViewport
impl UnsafeUnpin for GlViewport
impl UnwindSafe for GlViewport
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