pub struct ViewPort { /* private fields */ }
Expand description
Viewport is a rectangle that defines the area of the screen that will be rendered to. For instance, if the viewport is set to x=0, y=0, width=100, height=100, then only the top left 100x100 pixels of the screen will be rendered to.
Trait Implementations§
impl StructuralPartialEq for ViewPort
Auto Trait Implementations§
impl Freeze for ViewPort
impl RefUnwindSafe for ViewPort
impl Send for ViewPort
impl Sync for ViewPort
impl Unpin for ViewPort
impl UnwindSafe for ViewPort
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