pub struct Viewport {
pub view: ViewIdentity,
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
}Expand description
A positive, half-open rectangular region in adapter-defined logical pixels.
Fields§
§view: ViewIdentityExplicit identity of the view rendered into this region.
x: i32Horizontal origin in logical pixels.
y: i32Vertical origin in logical pixels.
width: u32Positive width in logical pixels.
height: u32Positive height in logical pixels.
Trait Implementations§
impl Copy for Viewport
Source§impl<'de> Deserialize<'de> for Viewport
impl<'de> Deserialize<'de> for Viewport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Viewport
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 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