Struct vulkano::swapchain::SurfaceTransforms
source · pub struct SurfaceTransforms(_);
Expand description
A set of SurfaceTransform
values.
Implementations§
source§impl SurfaceTransforms
impl SurfaceTransforms
sourcepub const ROTATE_180: Self = _
pub const ROTATE_180: Self = _
Rotate 180 degrees.
sourcepub const ROTATE_270: Self = _
pub const ROTATE_270: Self = _
Rotate 270 degrees.
sourcepub const HORIZONTAL_MIRROR: Self = _
pub const HORIZONTAL_MIRROR: Self = _
Mirror the image horizontally.
sourcepub const HORIZONTAL_MIRROR_ROTATE_90: Self = _
pub const HORIZONTAL_MIRROR_ROTATE_90: Self = _
Mirror the image horizontally and rotate 90 degrees.
sourcepub const HORIZONTAL_MIRROR_ROTATE_180: Self = _
pub const HORIZONTAL_MIRROR_ROTATE_180: Self = _
Mirror the image horizontally and rotate 180 degrees.
sourcepub const HORIZONTAL_MIRROR_ROTATE_270: Self = _
pub const HORIZONTAL_MIRROR_ROTATE_270: Self = _
Mirror the image horizontally and rotate 270 degrees.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a SurfaceTransforms
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
sourcepub fn contains_enum(self, val: SurfaceTransform) -> bool
pub fn contains_enum(self, val: SurfaceTransform) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd<SurfaceTransforms> for SurfaceTransforms
impl BitAnd<SurfaceTransforms> for SurfaceTransforms
source§impl BitAndAssign<SurfaceTransforms> for SurfaceTransforms
impl BitAndAssign<SurfaceTransforms> for SurfaceTransforms
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr<SurfaceTransforms> for SurfaceTransforms
impl BitOr<SurfaceTransforms> for SurfaceTransforms
source§impl BitOrAssign<SurfaceTransforms> for SurfaceTransforms
impl BitOrAssign<SurfaceTransforms> for SurfaceTransforms
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor<SurfaceTransforms> for SurfaceTransforms
impl BitXor<SurfaceTransforms> for SurfaceTransforms
source§impl BitXorAssign<SurfaceTransforms> for SurfaceTransforms
impl BitXorAssign<SurfaceTransforms> for SurfaceTransforms
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for SurfaceTransforms
impl Clone for SurfaceTransforms
source§fn clone(&self) -> SurfaceTransforms
fn clone(&self) -> SurfaceTransforms
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 SurfaceTransforms
impl Debug for SurfaceTransforms
source§impl Default for SurfaceTransforms
impl Default for SurfaceTransforms
source§impl From<SurfaceTransform> for SurfaceTransforms
impl From<SurfaceTransform> for SurfaceTransforms
source§fn from(val: SurfaceTransform) -> Self
fn from(val: SurfaceTransform) -> Self
Converts to this type from the input type.
source§impl From<SurfaceTransformFlagsKHR> for SurfaceTransforms
impl From<SurfaceTransformFlagsKHR> for SurfaceTransforms
source§fn from(val: SurfaceTransformFlagsKHR) -> Self
fn from(val: SurfaceTransformFlagsKHR) -> Self
Converts to this type from the input type.
source§impl From<SurfaceTransforms> for SurfaceTransformFlagsKHR
impl From<SurfaceTransforms> for SurfaceTransformFlagsKHR
source§fn from(val: SurfaceTransforms) -> Self
fn from(val: SurfaceTransforms) -> Self
Converts to this type from the input type.
source§impl FromIterator<SurfaceTransform> for SurfaceTransforms
impl FromIterator<SurfaceTransform> for SurfaceTransforms
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = SurfaceTransform>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = SurfaceTransform>,
Creates a value from an iterator. Read more
source§impl Hash for SurfaceTransforms
impl Hash for SurfaceTransforms
source§impl IntoIterator for SurfaceTransforms
impl IntoIterator for SurfaceTransforms
§type Item = SurfaceTransform
type Item = SurfaceTransform
The type of the elements being iterated over.
§type IntoIter = Flatten<IntoIter<Option<<SurfaceTransforms as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<SurfaceTransforms as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
Which kind of iterator are we turning this into?
source§impl PartialEq<SurfaceTransforms> for SurfaceTransforms
impl PartialEq<SurfaceTransforms> for SurfaceTransforms
source§fn eq(&self, other: &SurfaceTransforms) -> bool
fn eq(&self, other: &SurfaceTransforms) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub<SurfaceTransforms> for SurfaceTransforms
impl Sub<SurfaceTransforms> for SurfaceTransforms
source§impl SubAssign<SurfaceTransforms> for SurfaceTransforms
impl SubAssign<SurfaceTransforms> for SurfaceTransforms
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read more