pub struct Viewport {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}Expand description
Rectangular sub-region of the render target, in pixels.
Fields§
§x: u32Horizontal offset from the left edge.
y: u32Vertical offset from the top edge.
width: u32Width in pixels.
height: u32Height in pixels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Viewport
impl RefUnwindSafe for Viewport
impl Send for Viewport
impl Sync for Viewport
impl Unpin for Viewport
impl UnsafeUnpin 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