#[repr(C)]pub struct SDL_GPUViewport {
pub x: c_float,
pub y: c_float,
pub w: c_float,
pub h: c_float,
pub min_depth: c_float,
pub max_depth: c_float,
}Expand description
Fields§
§x: c_floatThe left offset of the viewport.
y: c_floatThe top offset of the viewport.
w: c_floatThe width of the viewport.
h: c_floatThe height of the viewport.
min_depth: c_floatThe minimum depth of the viewport.
max_depth: c_floatThe maximum depth of the viewport.
Trait Implementations§
Source§impl Clone for SDL_GPUViewport
impl Clone for SDL_GPUViewport
Source§fn clone(&self) -> SDL_GPUViewport
fn clone(&self) -> SDL_GPUViewport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_GPUViewport
impl Debug for SDL_GPUViewport
Source§impl Default for SDL_GPUViewport
impl Default for SDL_GPUViewport
Source§fn default() -> SDL_GPUViewport
fn default() -> SDL_GPUViewport
Returns the “default value” for a type. Read more
Source§impl PartialEq for SDL_GPUViewport
impl PartialEq for SDL_GPUViewport
impl Copy for SDL_GPUViewport
impl StructuralPartialEq for SDL_GPUViewport
Auto Trait Implementations§
impl Freeze for SDL_GPUViewport
impl RefUnwindSafe for SDL_GPUViewport
impl Send for SDL_GPUViewport
impl Sync for SDL_GPUViewport
impl Unpin for SDL_GPUViewport
impl UnwindSafe for SDL_GPUViewport
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