[][src]Struct qt_gui::q_opengl_texture::SwizzleComponent

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

This enum defines the texture color components that can be assigned a swizzle mask.

C++ enum: QOpenGLTexture::SwizzleComponent.

C++ documentation:

This enum defines the texture color components that can be assigned a swizzle mask.

Methods

impl SwizzleComponent[src]

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

impl SwizzleComponent[src]

pub const SwizzleRed: SwizzleComponent[src]

The red component. Equivalent to GL_TEXTURE_SWIZZLE_R (C++ enum variant: SwizzleRed = 36418)

pub const SwizzleGreen: SwizzleComponent[src]

The green component. Equivalent to GL_TEXTURE_SWIZZLE_G (C++ enum variant: SwizzleGreen = 36419)

pub const SwizzleBlue: SwizzleComponent[src]

The blue component. Equivalent to GL_TEXTURE_SWIZZLE_B (C++ enum variant: SwizzleBlue = 36420)

pub const SwizzleAlpha: SwizzleComponent[src]

The alpha component. Equivalent to GL_TEXTURE_SWIZZLE_A (C++ enum variant: SwizzleAlpha = 36421)

Trait Implementations

impl Clone for SwizzleComponent[src]

impl Copy for SwizzleComponent[src]

impl Debug for SwizzleComponent[src]

impl Eq for SwizzleComponent[src]

impl From<SwizzleComponent> for c_int[src]

impl From<i32> for SwizzleComponent[src]

impl PartialEq<SwizzleComponent> for SwizzleComponent[src]

impl StructuralEq for SwizzleComponent[src]

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