pub struct MaskMode(/* private fields */);
Expand description
This enum specifies the behavior of the QPixmap::createMaskFromColor() and QImage::createMaskFromColor() functions.
C++ enum: Qt::MaskMode
.
This enum specifies the behavior of the QPixmap::createMaskFromColor() and QImage::createMaskFromColor() functions.
Implementations§
source§impl MaskMode
impl MaskMode
sourcepub const MaskInColor: MaskMode = _
pub const MaskInColor: MaskMode = _
Creates a mask where all pixels matching the given color are opaque. (C++ enum variant: MaskInColor = 0
)
sourcepub const MaskOutColor: MaskMode = _
pub const MaskOutColor: MaskMode = _
Creates a mask where all pixels matching the given color are transparent. (C++ enum variant: MaskOutColor = 1
)
Trait Implementations§
source§impl PartialEq for MaskMode
impl PartialEq for MaskMode
impl Copy for MaskMode
impl Eq for MaskMode
impl StructuralEq for MaskMode
impl StructuralPartialEq for MaskMode
Auto Trait Implementations§
impl RefUnwindSafe for MaskMode
impl Send for MaskMode
impl Sync for MaskMode
impl Unpin for MaskMode
impl UnwindSafe for MaskMode
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