Struct vulkano::swapchain::SupportedSurfaceTransforms
source · pub struct SupportedSurfaceTransforms {
pub identity: bool,
pub rotate90: bool,
pub rotate180: bool,
pub rotate270: bool,
pub horizontal_mirror: bool,
pub horizontal_mirror_rotate90: bool,
pub horizontal_mirror_rotate180: bool,
pub horizontal_mirror_rotate270: bool,
pub inherit: bool,
}
Expand description
List of supported composite alpha modes.
Fields
identity: bool
rotate90: bool
rotate180: bool
rotate270: bool
horizontal_mirror: bool
horizontal_mirror_rotate90: bool
horizontal_mirror_rotate180: bool
horizontal_mirror_rotate270: bool
inherit: bool
Implementations
sourceimpl SupportedSurfaceTransforms
impl SupportedSurfaceTransforms
sourcepub fn none() -> SupportedSurfaceTransforms
pub fn none() -> SupportedSurfaceTransforms
Builds a SupportedSurfaceTransforms
with all fields set to false.
sourcepub fn supports(&self, value: SurfaceTransform) -> bool
pub fn supports(&self, value: SurfaceTransform) -> bool
Returns true if the given SurfaceTransform
is in this list.
sourcepub fn iter(&self) -> SupportedSurfaceTransformsIter ⓘ
pub fn iter(&self) -> SupportedSurfaceTransformsIter ⓘ
Returns an iterator to the list of supported composite alpha.
Trait Implementations
sourceimpl Clone for SupportedSurfaceTransforms
impl Clone for SupportedSurfaceTransforms
sourcefn clone(&self) -> SupportedSurfaceTransforms
fn clone(&self) -> SupportedSurfaceTransforms
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SupportedSurfaceTransforms
impl Debug for SupportedSurfaceTransforms
sourceimpl PartialEq<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
impl PartialEq<SupportedSurfaceTransforms> for SupportedSurfaceTransforms
sourcefn eq(&self, other: &SupportedSurfaceTransforms) -> bool
fn eq(&self, other: &SupportedSurfaceTransforms) -> bool
impl Copy for SupportedSurfaceTransforms
impl Eq for SupportedSurfaceTransforms
impl StructuralEq for SupportedSurfaceTransforms
impl StructuralPartialEq for SupportedSurfaceTransforms
Auto Trait Implementations
impl RefUnwindSafe for SupportedSurfaceTransforms
impl Send for SupportedSurfaceTransforms
impl Sync for SupportedSurfaceTransforms
impl Unpin for SupportedSurfaceTransforms
impl UnwindSafe for SupportedSurfaceTransforms
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.