[][src]Struct qt_gui::q_image::InvertMode

#[repr(transparent)]
pub struct InvertMode(_);

This enum type is used to describe how pixel values should be inverted in the invertPixels() function.

C++ enum: QImage::InvertMode.

C++ documentation:

This enum type is used to describe how pixel values should be inverted in the invertPixels() function.

See also invertPixels().

Methods

impl InvertMode[src]

pub fn to_int(&self) -> c_int[src]

impl InvertMode[src]

pub const InvertRgb: InvertMode[src]

Invert only the RGB values and leave the alpha channel unchanged. (C++ enum variant: InvertRgb = 0)

pub const InvertRgba: InvertMode[src]

Invert all channels, including the alpha channel. (C++ enum variant: InvertRgba = 1)

Trait Implementations

impl Clone for InvertMode[src]

impl Copy for InvertMode[src]

impl Debug for InvertMode[src]

impl Eq for InvertMode[src]

impl From<InvertMode> for c_int[src]

impl From<i32> for InvertMode[src]

impl PartialEq<InvertMode> for InvertMode[src]

impl StructuralEq for InvertMode[src]

impl StructuralPartialEq for InvertMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.