Struct qt_gui::q_pixel_format::ColorModel
source · pub struct ColorModel(/* private fields */);
Expand description
This enum type is used to describe the color model of the pixelformat. Alpha was added in 5.5.
C++ enum: QPixelFormat::ColorModel
.
This enum type is used to describe the color model of the pixelformat. Alpha was added in 5.5.
Implementations§
source§impl ColorModel
impl ColorModel
sourcepub const RGB: ColorModel = _
pub const RGB: ColorModel = _
The color model is RGB. (C++ enum variant: RGB = 0
)
sourcepub const BGR: ColorModel = _
pub const BGR: ColorModel = _
This is logically the opposite endian version of RGB. However, for ease of use it has its own model. (C++ enum variant: BGR = 1
)
sourcepub const Indexed: ColorModel = _
pub const Indexed: ColorModel = _
The color model uses a color palette. (C++ enum variant: Indexed = 2
)
sourcepub const Grayscale: ColorModel = _
pub const Grayscale: ColorModel = _
The color model is Grayscale. (C++ enum variant: Grayscale = 3
)
sourcepub const CMYK: ColorModel = _
pub const CMYK: ColorModel = _
The color model is CMYK. (C++ enum variant: CMYK = 4
)
sourcepub const HSL: ColorModel = _
pub const HSL: ColorModel = _
The color model is HSL. (C++ enum variant: HSL = 5
)
sourcepub const HSV: ColorModel = _
pub const HSV: ColorModel = _
The color model is HSV. (C++ enum variant: HSV = 6
)
sourcepub const YUV: ColorModel = _
pub const YUV: ColorModel = _
The color model is YUV. (C++ enum variant: YUV = 7
)
sourcepub const Alpha: ColorModel = _
pub const Alpha: ColorModel = _
There is no color model, only alpha is used. (C++ enum variant: Alpha = 8
)
Trait Implementations§
source§impl Clone for ColorModel
impl Clone for ColorModel
source§fn clone(&self) -> ColorModel
fn clone(&self) -> ColorModel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ColorModel
impl Debug for ColorModel
source§impl From<ColorModel> for c_int
impl From<ColorModel> for c_int
source§fn from(value: ColorModel) -> Self
fn from(value: ColorModel) -> Self
source§impl From<i32> for ColorModel
impl From<i32> for ColorModel
source§impl PartialEq for ColorModel
impl PartialEq for ColorModel
source§fn eq(&self, other: &ColorModel) -> bool
fn eq(&self, other: &ColorModel) -> bool
self
and other
values to be equal, and is used
by ==
.