Struct vulkanalia::vk::ViewportBuilder
source · pub struct ViewportBuilder { /* private fields */ }
Expand description
A builder for a Viewport
.
Implementations§
source§impl ViewportBuilder
impl ViewportBuilder
pub fn x(self, x: f32) -> Self
pub fn y(self, y: f32) -> Self
pub fn width(self, width: f32) -> Self
pub fn height(self, height: f32) -> Self
pub fn min_depth(self, min_depth: f32) -> Self
pub fn max_depth(self, max_depth: f32) -> Self
pub fn build(self) -> Viewport
Trait Implementations§
source§impl Cast for ViewportBuilder
impl Cast for ViewportBuilder
source§impl Clone for ViewportBuilder
impl Clone for ViewportBuilder
source§fn clone(&self) -> ViewportBuilder
fn clone(&self) -> ViewportBuilder
Returns a copy 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 ViewportBuilder
impl Debug for ViewportBuilder
source§impl Default for ViewportBuilder
impl Default for ViewportBuilder
source§fn default() -> ViewportBuilder
fn default() -> ViewportBuilder
Returns the “default value” for a type. Read more
source§impl Deref for ViewportBuilder
impl Deref for ViewportBuilder
source§impl DerefMut for ViewportBuilder
impl DerefMut for ViewportBuilder
impl Copy for ViewportBuilder
Auto Trait Implementations§
impl Freeze for ViewportBuilder
impl RefUnwindSafe for ViewportBuilder
impl Send for ViewportBuilder
impl Sync for ViewportBuilder
impl Unpin for ViewportBuilder
impl UnwindSafe for ViewportBuilder
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