Enum vulkano::swapchain::PresentGravity
source · #[non_exhaustive]#[repr(u32)]pub enum PresentGravity {
Min = 1,
Max = 2,
Centered = 4,
}
Expand description
The way a swapchain image is aligned, if it does not exactly fit the surface.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Min = 1
Aligned to the top or left side of the surface.
Max = 2
Aligned to the bottom or right side of the surface.
Centered = 4
Aligned to the middle of the surface.
Trait Implementations§
source§impl Clone for PresentGravity
impl Clone for PresentGravity
source§fn clone(&self) -> PresentGravity
fn clone(&self) -> PresentGravity
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 PresentGravity
impl Debug for PresentGravity
source§impl From<PresentGravity> for PresentGravityFlags
impl From<PresentGravity> for PresentGravityFlags
source§fn from(val: PresentGravity) -> Self
fn from(val: PresentGravity) -> Self
Converts to this type from the input type.
source§impl From<PresentGravity> for PresentGravityFlagsEXT
impl From<PresentGravity> for PresentGravityFlagsEXT
source§fn from(val: PresentGravity) -> Self
fn from(val: PresentGravity) -> Self
Converts to this type from the input type.
source§impl FromIterator<PresentGravity> for PresentGravityFlags
impl FromIterator<PresentGravity> for PresentGravityFlags
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = PresentGravity>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = PresentGravity>,
Creates a value from an iterator. Read more
source§impl Hash for PresentGravity
impl Hash for PresentGravity
source§impl PartialEq for PresentGravity
impl PartialEq for PresentGravity
source§fn eq(&self, other: &PresentGravity) -> bool
fn eq(&self, other: &PresentGravity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PresentGravity
impl Eq for PresentGravity
impl StructuralEq for PresentGravity
impl StructuralPartialEq for PresentGravity
Auto Trait Implementations§
impl RefUnwindSafe for PresentGravity
impl Send for PresentGravity
impl Sync for PresentGravity
impl Unpin for PresentGravity
impl UnwindSafe for PresentGravity
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