Struct qt_gui::q_surface_format::ColorSpace
source · pub struct ColorSpace(/* private fields */);
Expand description
This enum is used to specify the preferred color space, controlling if the window's associated default framebuffer is able to do updates and blending in a given encoding instead of the standard linear operations.
C++ enum: QSurfaceFormat::ColorSpace
.
This enum is used to specify the preferred color space, controlling if the window’s associated default framebuffer is able to do updates and blending in a given encoding instead of the standard linear operations.
Implementations§
source§impl ColorSpace
impl ColorSpace
sourcepub const DefaultColorSpace: ColorSpace = _
pub const DefaultColorSpace: ColorSpace = _
The default, unspecified color space. (C++ enum variant: DefaultColorSpace = 0
)
sourcepub const SRGBColorSpace: ColorSpace = _
pub const SRGBColorSpace: ColorSpace = _
When GL_ARB_framebuffer_sRGB
or GL_EXT_framebuffer_sRGB
is supported by the platform and this value is set, the window will be created with an sRGB-capable default framebuffer. Note that some platforms may return windows with a sRGB-capable default framebuffer even when not requested explicitly. (C++ enum variant: sRGBColorSpace = 1
)
Trait Implementations§
source§impl Clone for ColorSpace
impl Clone for ColorSpace
source§fn clone(&self) -> ColorSpace
fn clone(&self) -> ColorSpace
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ColorSpace
impl Debug for ColorSpace
source§impl From<ColorSpace> for c_int
impl From<ColorSpace> for c_int
source§fn from(value: ColorSpace) -> Self
fn from(value: ColorSpace) -> Self
source§impl From<i32> for ColorSpace
impl From<i32> for ColorSpace
source§impl PartialEq for ColorSpace
impl PartialEq for ColorSpace
source§fn eq(&self, other: &ColorSpace) -> bool
fn eq(&self, other: &ColorSpace) -> bool
self
and other
values to be equal, and is used
by ==
.