Struct qt_gui::q_pixel_format::AlphaPremultiplied
source · pub struct AlphaPremultiplied(/* private fields */);
Expand description
This enum type describes the boolean state if the alpha channel is multiplied into the color channels or not.
C++ enum: QPixelFormat::AlphaPremultiplied
.
This enum type describes the boolean state if the alpha channel is multiplied into the color channels or not.
Implementations§
source§impl AlphaPremultiplied
impl AlphaPremultiplied
sourcepub const NotPremultiplied: AlphaPremultiplied = _
pub const NotPremultiplied: AlphaPremultiplied = _
The alpha channel is not multiplied into the color channels. (C++ enum variant: NotPremultiplied = 0
)
sourcepub const Premultiplied: AlphaPremultiplied = _
pub const Premultiplied: AlphaPremultiplied = _
The alpha channel is multiplied into the color channels. (C++ enum variant: Premultiplied = 1
)
Trait Implementations§
source§impl Clone for AlphaPremultiplied
impl Clone for AlphaPremultiplied
source§fn clone(&self) -> AlphaPremultiplied
fn clone(&self) -> AlphaPremultiplied
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 AlphaPremultiplied
impl Debug for AlphaPremultiplied
source§impl From<AlphaPremultiplied> for c_int
impl From<AlphaPremultiplied> for c_int
source§fn from(value: AlphaPremultiplied) -> Self
fn from(value: AlphaPremultiplied) -> Self
Converts to this type from the input type.
source§impl From<i32> for AlphaPremultiplied
impl From<i32> for AlphaPremultiplied
source§impl PartialEq for AlphaPremultiplied
impl PartialEq for AlphaPremultiplied
source§fn eq(&self, other: &AlphaPremultiplied) -> bool
fn eq(&self, other: &AlphaPremultiplied) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AlphaPremultiplied
impl Eq for AlphaPremultiplied
impl StructuralEq for AlphaPremultiplied
impl StructuralPartialEq for AlphaPremultiplied
Auto Trait Implementations§
impl RefUnwindSafe for AlphaPremultiplied
impl Send for AlphaPremultiplied
impl Sync for AlphaPremultiplied
impl Unpin for AlphaPremultiplied
impl UnwindSafe for AlphaPremultiplied
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