Struct x11rb_protocol::protocol::render::CP
source · pub struct CP(/* private fields */);
Implementations§
source§impl CP
impl CP
pub const REPEAT: Self = _
pub const ALPHA_MAP: Self = _
pub const ALPHA_X_ORIGIN: Self = _
pub const ALPHA_Y_ORIGIN: Self = _
pub const CLIP_X_ORIGIN: Self = _
pub const CLIP_Y_ORIGIN: Self = _
pub const CLIP_MASK: Self = _
pub const GRAPHICS_EXPOSURE: Self = _
pub const SUBWINDOW_MODE: Self = _
pub const POLY_EDGE: Self = _
pub const POLY_MODE: Self = _
pub const DITHER: Self = _
pub const COMPONENT_ALPHA: Self = _
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<CP> for u32
impl BitAndAssign<CP> for u32
source§fn bitand_assign(&mut self, other: CP)
fn bitand_assign(&mut self, other: CP)
Performs the
&=
operation. Read moresource§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<CP> for u32
impl BitOrAssign<CP> for u32
source§fn bitor_assign(&mut self, other: CP)
fn bitor_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 StructuralEq for CP
impl StructuralPartialEq for CP
Auto Trait Implementations§
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