Struct vulkano::swapchain::PresentScalingFlags
source · pub struct PresentScalingFlags(/* private fields */);
Expand description
A set of PresentScaling
values.
Implementations§
source§impl PresentScalingFlags
impl PresentScalingFlags
sourcepub const ONE_TO_ONE: Self = _
pub const ONE_TO_ONE: Self = _
No scaling is performed; one swapchain image pixel maps to one surface pixel.
sourcepub const ASPECT_RATIO_STRETCH: Self = _
pub const ASPECT_RATIO_STRETCH: Self = _
Both axes of the image are scaled equally, without changing the aspect ratio of the image, to the largest size in which both axes fit inside the surface.
sourcepub const STRETCH: Self = _
pub const STRETCH: Self = _
Each axis of the image is scaled independently to fit the surface, which may change the aspect ratio of the image.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a PresentScalingFlags
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: PresentScaling) -> bool
pub fn contains_enum(self, val: PresentScaling) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd for PresentScalingFlags
impl BitAnd for PresentScalingFlags
source§impl BitAndAssign for PresentScalingFlags
impl BitAndAssign for PresentScalingFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr for PresentScalingFlags
impl BitOr for PresentScalingFlags
source§impl BitOrAssign for PresentScalingFlags
impl BitOrAssign for PresentScalingFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXor for PresentScalingFlags
impl BitXor for PresentScalingFlags
source§impl BitXorAssign for PresentScalingFlags
impl BitXorAssign for PresentScalingFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for PresentScalingFlags
impl Clone for PresentScalingFlags
source§fn clone(&self) -> PresentScalingFlags
fn clone(&self) -> PresentScalingFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PresentScalingFlags
impl Debug for PresentScalingFlags
source§impl Default for PresentScalingFlags
impl Default for PresentScalingFlags
source§impl From<PresentScaling> for PresentScalingFlags
impl From<PresentScaling> for PresentScalingFlags
source§fn from(val: PresentScaling) -> Self
fn from(val: PresentScaling) -> Self
source§impl From<PresentScalingFlags> for PresentScalingFlagsEXT
impl From<PresentScalingFlags> for PresentScalingFlagsEXT
source§fn from(val: PresentScalingFlags) -> Self
fn from(val: PresentScalingFlags) -> Self
source§impl From<PresentScalingFlagsEXT> for PresentScalingFlags
impl From<PresentScalingFlagsEXT> for PresentScalingFlags
source§fn from(val: PresentScalingFlagsEXT) -> Self
fn from(val: PresentScalingFlagsEXT) -> Self
source§impl FromIterator<PresentScaling> for PresentScalingFlags
impl FromIterator<PresentScaling> for PresentScalingFlags
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = PresentScaling>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = PresentScaling>,
source§impl Hash for PresentScalingFlags
impl Hash for PresentScalingFlags
source§impl IntoIterator for PresentScalingFlags
impl IntoIterator for PresentScalingFlags
§type Item = PresentScaling
type Item = PresentScaling
§type IntoIter = Flatten<IntoIter<Option<<PresentScalingFlags as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<PresentScalingFlags as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
source§impl PartialEq for PresentScalingFlags
impl PartialEq for PresentScalingFlags
source§fn eq(&self, other: &PresentScalingFlags) -> bool
fn eq(&self, other: &PresentScalingFlags) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for PresentScalingFlags
impl Sub for PresentScalingFlags
source§impl SubAssign for PresentScalingFlags
impl SubAssign for PresentScalingFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more