pub struct ViewportBuilder { /* private fields */ }
Expand description
A builder for VkViewport
.
Implementations§
Source§impl ViewportBuilder
impl ViewportBuilder
pub fn new() -> ViewportBuilder
pub fn x<'m>(self, x: f32) -> ViewportBuilder
pub fn y<'m>(self, y: f32) -> ViewportBuilder
pub fn width<'m>(self, width: f32) -> ViewportBuilder
pub fn height<'m>(self, height: f32) -> ViewportBuilder
pub fn min_depth<'m>(self, min_depth: f32) -> ViewportBuilder
pub fn max_depth<'m>(self, max_depth: f32) -> ViewportBuilder
pub fn get_x<'a>(&'a self) -> f32
pub fn get_y<'a>(&'a self) -> f32
pub fn get_width<'a>(&'a self) -> f32
pub fn get_height<'a>(&'a self) -> f32
pub fn get_min_depth<'a>(&'a self) -> f32
pub fn get_max_depth<'a>(&'a self) -> f32
pub fn build(self) -> Viewport
Trait Implementations§
Source§impl Clone for ViewportBuilder
impl Clone for ViewportBuilder
Source§fn clone(&self) -> ViewportBuilder
fn clone(&self) -> ViewportBuilder
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 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
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