Struct qt_gui::q_pixel_format::AlphaUsage
source · pub struct AlphaUsage(/* private fields */);
Expand description
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.
Implementations§
source§impl AlphaUsage
impl AlphaUsage
sourcepub const UsesAlpha: AlphaUsage = _
pub const UsesAlpha: AlphaUsage = _
The alpha channel is used. (C++ enum variant: UsesAlpha = 0
)
sourcepub const IgnoresAlpha: AlphaUsage = _
pub const IgnoresAlpha: AlphaUsage = _
The alpha channel is not used. (C++ enum variant: IgnoresAlpha = 1
)
Trait Implementations§
source§impl Clone for AlphaUsage
impl Clone for AlphaUsage
source§fn clone(&self) -> AlphaUsage
fn clone(&self) -> AlphaUsage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AlphaUsage
impl Debug for AlphaUsage
source§impl From<AlphaUsage> for c_int
impl From<AlphaUsage> for c_int
source§fn from(value: AlphaUsage) -> Self
fn from(value: AlphaUsage) -> Self
source§impl From<i32> for AlphaUsage
impl From<i32> for AlphaUsage
source§impl PartialEq for AlphaUsage
impl PartialEq for AlphaUsage
source§fn eq(&self, other: &AlphaUsage) -> bool
fn eq(&self, other: &AlphaUsage) -> bool
self
and other
values to be equal, and is used
by ==
.