Struct qt_gui::q_image::InvertMode
source · pub struct InvertMode(/* private fields */);
Expand description
This enum type is used to describe how pixel values should be inverted in the invertPixels() function.
C++ enum: QImage::InvertMode
.
This enum type is used to describe how pixel values should be inverted in the invertPixels() function.
See also invertPixels().
Implementations§
source§impl InvertMode
impl InvertMode
sourcepub const InvertRgb: InvertMode = _
pub const InvertRgb: InvertMode = _
Invert only the RGB values and leave the alpha channel unchanged. (C++ enum variant: InvertRgb = 0
)
sourcepub const InvertRgba: InvertMode = _
pub const InvertRgba: InvertMode = _
Invert all channels, including the alpha channel. (C++ enum variant: InvertRgba = 1
)
Trait Implementations§
source§impl Clone for InvertMode
impl Clone for InvertMode
source§fn clone(&self) -> InvertMode
fn clone(&self) -> InvertMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InvertMode
impl Debug for InvertMode
source§impl From<InvertMode> for c_int
impl From<InvertMode> for c_int
source§fn from(value: InvertMode) -> Self
fn from(value: InvertMode) -> Self
Converts to this type from the input type.
source§impl From<i32> for InvertMode
impl From<i32> for InvertMode
source§impl PartialEq for InvertMode
impl PartialEq for InvertMode
source§fn eq(&self, other: &InvertMode) -> bool
fn eq(&self, other: &InvertMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InvertMode
impl Eq for InvertMode
impl StructuralEq for InvertMode
impl StructuralPartialEq for InvertMode
Auto Trait Implementations§
impl RefUnwindSafe for InvertMode
impl Send for InvertMode
impl Sync for InvertMode
impl Unpin for InvertMode
impl UnwindSafe for InvertMode
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