[][src]Struct qt_gui::q_surface_format::ColorSpace

#[repr(transparent)]pub struct 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.

C++ enum: QSurfaceFormat::ColorSpace.

C++ documentation:

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.

Methods

impl ColorSpace[src]

pub fn to_int(&self) -> c_int[src]

impl ColorSpace[src]

pub const DefaultColorSpace: ColorSpace[src]

The default, unspecified color space. (C++ enum variant: DefaultColorSpace = 0)

pub const SRGBColorSpace: ColorSpace[src]

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

impl Clone for ColorSpace[src]

impl Copy for ColorSpace[src]

impl Debug for ColorSpace[src]

impl Eq for ColorSpace[src]

impl From<ColorSpace> for c_int[src]

impl From<i32> for ColorSpace[src]

impl PartialEq<ColorSpace> for ColorSpace[src]

impl StructuralEq for ColorSpace[src]

impl StructuralPartialEq for ColorSpace[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.