pub struct CP(u32);
Tuple Fields§
§0: u32
Implementations§
source§impl CP
impl CP
pub const REPEAT: CP = _
pub const ALPHA_MAP: CP = _
pub const ALPHA_X_ORIGIN: CP = _
pub const ALPHA_Y_ORIGIN: CP = _
pub const CLIP_X_ORIGIN: CP = _
pub const CLIP_Y_ORIGIN: CP = _
pub const CLIP_MASK: CP = _
pub const GRAPHICS_EXPOSURE: CP = _
pub const SUBWINDOW_MODE: CP = _
pub const POLY_EDGE: CP = _
pub const POLY_MODE: CP = _
pub const DITHER: CP = _
pub const COMPONENT_ALPHA: CP = _
source§impl CP
impl CP
sourcepub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
sourcepub fn intersects(self, flag: impl Into<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
Trait Implementations§
source§impl BitAndAssign<u32> for CP
impl BitAndAssign<u32> for CP
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for CP
impl BitAndAssign for CP
source§fn bitand_assign(&mut self, other: CP)
fn bitand_assign(&mut self, other: CP)
Performs the
&=
operation. Read moresource§impl BitOrAssign<u32> for CP
impl BitOrAssign<u32> for CP
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for CP
impl BitOrAssign for CP
source§fn bitor_assign(&mut self, other: CP)
fn bitor_assign(&mut self, other: CP)
Performs the
|=
operation. Read moresource§impl Ord for CP
impl Ord for CP
source§impl PartialOrd for CP
impl PartialOrd for CP
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CP
impl Eq for CP
impl StructuralPartialEq for CP
Auto Trait Implementations§
impl Freeze for CP
impl RefUnwindSafe for CP
impl Send for CP
impl Sync for CP
impl Unpin for CP
impl UnwindSafe for CP
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