[][src]Struct qt_gui::q_opengl_texture::SwizzleValue

#[repr(transparent)]
pub struct SwizzleValue(_);

This enum defines the possible mask values for texture swizzling.

C++ enum: QOpenGLTexture::SwizzleValue.

C++ documentation:

This enum defines the possible mask values for texture swizzling.

Methods

impl SwizzleValue[src]

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

impl SwizzleValue[src]

pub const RedValue: SwizzleValue[src]

Maps the component to the red channel. Equivalent to GL_RED (C++ enum variant: RedValue = 6403)

pub const GreenValue: SwizzleValue[src]

Maps the component to the green channel. Equivalent to GL_GREEN (C++ enum variant: GreenValue = 6404)

pub const BlueValue: SwizzleValue[src]

Maps the component to the blue channel. Equivalent to GL_BLUE (C++ enum variant: BlueValue = 6405)

pub const AlphaValue: SwizzleValue[src]

Maps the component to the alpha channel. Equivalent to GL_ALPHA (C++ enum variant: AlphaValue = 6406)

pub const ZeroValue: SwizzleValue[src]

Maps the component to a fixed value of 0. Equivalent to GL_ZERO (C++ enum variant: ZeroValue = 0)

pub const OneValue: SwizzleValue[src]

Maps the component to a fixed value of 1. Equivalent to GL_ONE (C++ enum variant: OneValue = 1)

Trait Implementations

impl Clone for SwizzleValue[src]

impl Copy for SwizzleValue[src]

impl Debug for SwizzleValue[src]

impl Eq for SwizzleValue[src]

impl From<SwizzleValue> for c_int[src]

impl From<i32> for SwizzleValue[src]

impl PartialEq<SwizzleValue> for SwizzleValue[src]

impl StructuralEq for SwizzleValue[src]

impl StructuralPartialEq for SwizzleValue[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.