Struct qt_gui::q_color_space::NamedColorSpace
source · pub struct NamedColorSpace(/* private fields */);
Expand description
Predefined color spaces.
C++ enum: QColorSpace::NamedColorSpace
.
Predefined color spaces.
Implementations§
source§impl NamedColorSpace
impl NamedColorSpace
sourcepub const SRgb: NamedColorSpace = _
pub const SRgb: NamedColorSpace = _
The sRGB color space, which Qt operates in by default. It is a close approximation of how most classic monitors operate, and a mode most software and hardware support. ICC registration of sRGB. (C++ enum variant: SRgb = 1
)
sourcepub const SRgbLinear: NamedColorSpace = _
pub const SRgbLinear: NamedColorSpace = _
The sRGB color space with linear gamma. Useful for gamma-corrected blending. (C++ enum variant: SRgbLinear = 2
)
sourcepub const AdobeRgb: NamedColorSpace = _
pub const AdobeRgb: NamedColorSpace = _
The Adobe RGB color space is a classic wide-gamut color space, using a gamma of 2.2. ICC registration of Adobe RGB (1998) (C++ enum variant: AdobeRgb = 3
)
sourcepub const DisplayP3: NamedColorSpace = _
pub const DisplayP3: NamedColorSpace = _
A color-space using the primaries of DCI-P3, but with the whitepoint and transfer function of sRGB. Common in modern wide-gamut screens. ICC registration of DCI-P3 (C++ enum variant: DisplayP3 = 4
)
sourcepub const ProPhotoRgb: NamedColorSpace = _
pub const ProPhotoRgb: NamedColorSpace = _
The Pro Photo RGB color space, also known as ROMM RGB is a very wide gamut color space. ICC registration of ROMM RGB (C++ enum variant: ProPhotoRgb = 5
)
Trait Implementations§
source§impl Clone for NamedColorSpace
impl Clone for NamedColorSpace
source§fn clone(&self) -> NamedColorSpace
fn clone(&self) -> NamedColorSpace
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NamedColorSpace
impl Debug for NamedColorSpace
source§impl From<NamedColorSpace> for c_int
impl From<NamedColorSpace> for c_int
source§fn from(value: NamedColorSpace) -> Self
fn from(value: NamedColorSpace) -> Self
source§impl From<i32> for NamedColorSpace
impl From<i32> for NamedColorSpace
source§impl PartialEq for NamedColorSpace
impl PartialEq for NamedColorSpace
source§fn eq(&self, other: &NamedColorSpace) -> bool
fn eq(&self, other: &NamedColorSpace) -> bool
self
and other
values to be equal, and is used
by ==
.