pub struct SurfaceType { /* private fields */ }Expand description
Surface type mask bits.
Implementations§
Source§impl SurfaceType
impl SurfaceType
Sourcepub const PBUFFER: SurfaceType
pub const PBUFFER: SurfaceType
EGL_PBUFFER_BIT
Sourcepub const PIXMAP: SurfaceType
pub const PIXMAP: SurfaceType
EGL_PIXMAP_BIT
Sourcepub const WINDOW: SurfaceType
pub const WINDOW: SurfaceType
EGL_WINDOW_BIT
Sourcepub const VG_COLORSPACE_LINEAR: SurfaceType
pub const VG_COLORSPACE_LINEAR: SurfaceType
EGL_VG_COLORSPACE_LINEAR_BIT
Sourcepub const VG_ALPHA_FORMAT_PRE: SurfaceType
pub const VG_ALPHA_FORMAT_PRE: SurfaceType
EGL_VG_ALPHA_FORMAT_PRE_BIT
Sourcepub const MULTISAMPLE_RESOLVE_BOX: SurfaceType
pub const MULTISAMPLE_RESOLVE_BOX: SurfaceType
EGL_MULTISAMPLE_RESOLVE_BOX_BIT
Sourcepub const SWAP_BEHAVIOR_PRESERVED: SurfaceType
pub const SWAP_BEHAVIOR_PRESERVED: SurfaceType
EGL_SWAP_BEHAVIOR_PRESERVED_BIT
Sourcepub const fn empty() -> SurfaceType
pub const fn empty() -> SurfaceType
Returns an empty set of flags
Sourcepub const fn all() -> SurfaceType
pub const fn all() -> SurfaceType
Returns the set containing all flags.
Sourcepub fn from_bits(bits: i32) -> Option<SurfaceType>
pub fn from_bits(bits: i32) -> Option<SurfaceType>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: i32) -> SurfaceType
pub const fn from_bits_truncate(bits: i32) -> SurfaceType
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: i32) -> SurfaceType
pub const unsafe fn from_bits_unchecked(bits: i32) -> SurfaceType
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: SurfaceType) -> bool
pub const fn intersects(&self, other: SurfaceType) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: SurfaceType) -> bool
pub const fn contains(&self, other: SurfaceType) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: SurfaceType)
pub fn insert(&mut self, other: SurfaceType)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: SurfaceType)
pub fn remove(&mut self, other: SurfaceType)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: SurfaceType)
pub fn toggle(&mut self, other: SurfaceType)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: SurfaceType, value: bool)
pub fn set(&mut self, other: SurfaceType, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for SurfaceType
impl Binary for SurfaceType
Source§impl BitAnd for SurfaceType
impl BitAnd for SurfaceType
Source§fn bitand(self, other: SurfaceType) -> SurfaceType
fn bitand(self, other: SurfaceType) -> SurfaceType
Returns the intersection between the two sets of flags.
Source§type Output = SurfaceType
type Output = SurfaceType
& operator.Source§impl BitAndAssign for SurfaceType
impl BitAndAssign for SurfaceType
Source§fn bitand_assign(&mut self, other: SurfaceType)
fn bitand_assign(&mut self, other: SurfaceType)
Disables all flags disabled in the set.
Source§impl BitOr for SurfaceType
impl BitOr for SurfaceType
Source§fn bitor(self, other: SurfaceType) -> SurfaceType
fn bitor(self, other: SurfaceType) -> SurfaceType
Returns the union of the two sets of flags.
Source§type Output = SurfaceType
type Output = SurfaceType
| operator.Source§impl BitOrAssign for SurfaceType
impl BitOrAssign for SurfaceType
Source§fn bitor_assign(&mut self, other: SurfaceType)
fn bitor_assign(&mut self, other: SurfaceType)
Adds the set of flags.
Source§impl BitXor for SurfaceType
impl BitXor for SurfaceType
Source§fn bitxor(self, other: SurfaceType) -> SurfaceType
fn bitxor(self, other: SurfaceType) -> SurfaceType
Returns the left flags, but with all the right flags toggled.
Source§type Output = SurfaceType
type Output = SurfaceType
^ operator.Source§impl BitXorAssign for SurfaceType
impl BitXorAssign for SurfaceType
Source§fn bitxor_assign(&mut self, other: SurfaceType)
fn bitxor_assign(&mut self, other: SurfaceType)
Toggles the set of flags.
Source§impl Clone for SurfaceType
impl Clone for SurfaceType
Source§fn clone(&self) -> SurfaceType
fn clone(&self) -> SurfaceType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SurfaceType
impl Debug for SurfaceType
Source§impl Extend<SurfaceType> for SurfaceType
impl Extend<SurfaceType> for SurfaceType
Source§fn extend<T: IntoIterator<Item = SurfaceType>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = SurfaceType>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<SurfaceType> for SurfaceType
impl FromIterator<SurfaceType> for SurfaceType
Source§fn from_iter<T: IntoIterator<Item = SurfaceType>>(iterator: T) -> SurfaceType
fn from_iter<T: IntoIterator<Item = SurfaceType>>(iterator: T) -> SurfaceType
Source§impl Hash for SurfaceType
impl Hash for SurfaceType
Source§impl LowerHex for SurfaceType
impl LowerHex for SurfaceType
Source§impl Not for SurfaceType
impl Not for SurfaceType
Source§fn not(self) -> SurfaceType
fn not(self) -> SurfaceType
Returns the complement of this set of flags.
Source§type Output = SurfaceType
type Output = SurfaceType
! operator.Source§impl Octal for SurfaceType
impl Octal for SurfaceType
Source§impl Ord for SurfaceType
impl Ord for SurfaceType
Source§fn cmp(&self, other: &SurfaceType) -> Ordering
fn cmp(&self, other: &SurfaceType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SurfaceType
impl PartialEq for SurfaceType
Source§impl PartialOrd for SurfaceType
impl PartialOrd for SurfaceType
Source§impl Sub for SurfaceType
impl Sub for SurfaceType
Source§fn sub(self, other: SurfaceType) -> SurfaceType
fn sub(self, other: SurfaceType) -> SurfaceType
Returns the set difference of the two sets of flags.
Source§type Output = SurfaceType
type Output = SurfaceType
- operator.Source§impl SubAssign for SurfaceType
impl SubAssign for SurfaceType
Source§fn sub_assign(&mut self, other: SurfaceType)
fn sub_assign(&mut self, other: SurfaceType)
Disables all flags enabled in the set.