[][src]Struct qt_gui::q_pixel_format::AlphaUsage

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

This enum describes if the alpha channel is used or not. Sometimes the pixelformat will have a size for the alpha channel, but the pixel format does actually not use the alpha channel. For example RGB32 is such a format. The RGB channels are 8 bits each, and there is no alpha channel. But the complete size for each pixel is 32. Therefore the alpha channel size is 8, but the alpha channel is ignored. Its important to note that in such situations the position of the alpha channel is significant.

C++ enum: QPixelFormat::AlphaUsage.

C++ documentation:

This enum describes if the alpha channel is used or not. Sometimes the pixelformat will have a size for the alpha channel, but the pixel format does actually not use the alpha channel. For example RGB32 is such a format. The RGB channels are 8 bits each, and there is no alpha channel. But the complete size for each pixel is 32. Therefore the alpha channel size is 8, but the alpha channel is ignored. Its important to note that in such situations the position of the alpha channel is significant.

Methods

impl AlphaUsage[src]

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

impl AlphaUsage[src]

pub const UsesAlpha: AlphaUsage[src]

The alpha channel is used. (C++ enum variant: UsesAlpha = 0)

pub const IgnoresAlpha: AlphaUsage[src]

The alpha channel is not used. (C++ enum variant: IgnoresAlpha = 1)

Trait Implementations

impl Clone for AlphaUsage[src]

impl Copy for AlphaUsage[src]

impl Debug for AlphaUsage[src]

impl Eq for AlphaUsage[src]

impl From<AlphaUsage> for c_int[src]

impl From<i32> for AlphaUsage[src]

impl PartialEq<AlphaUsage> for AlphaUsage[src]

impl StructuralEq for AlphaUsage[src]

impl StructuralPartialEq for AlphaUsage[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.