[−][src]Struct qt_gui::q_pixel_format::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
.
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]
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]
fn clone(&self) -> AlphaUsage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AlphaUsage
[src]
impl Debug for AlphaUsage
[src]
impl Eq for AlphaUsage
[src]
impl From<AlphaUsage> for c_int
[src]
fn from(value: AlphaUsage) -> Self
[src]
impl From<i32> for AlphaUsage
[src]
impl PartialEq<AlphaUsage> for AlphaUsage
[src]
fn eq(&self, other: &AlphaUsage) -> bool
[src]
fn ne(&self, other: &AlphaUsage) -> bool
[src]
impl StructuralEq for AlphaUsage
[src]
impl StructuralPartialEq for AlphaUsage
[src]
Auto Trait Implementations
impl RefUnwindSafe for AlphaUsage
impl Send for AlphaUsage
impl Sync for AlphaUsage
impl Unpin for AlphaUsage
impl UnwindSafe for AlphaUsage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,