Struct qt_gui::q_opengl_texture::SwizzleComponent
source · pub struct SwizzleComponent(/* private fields */);
Expand description
This enum defines the texture color components that can be assigned a swizzle mask.
C++ enum: QOpenGLTexture::SwizzleComponent
.
This enum defines the texture color components that can be assigned a swizzle mask.
Implementations§
source§impl SwizzleComponent
impl SwizzleComponent
sourcepub const SwizzleRed: SwizzleComponent = _
pub const SwizzleRed: SwizzleComponent = _
The red component. Equivalent to GL_TEXTURE_SWIZZLE_R (C++ enum variant: SwizzleRed = 36418
)
sourcepub const SwizzleGreen: SwizzleComponent = _
pub const SwizzleGreen: SwizzleComponent = _
The green component. Equivalent to GL_TEXTURE_SWIZZLE_G (C++ enum variant: SwizzleGreen = 36419
)
sourcepub const SwizzleBlue: SwizzleComponent = _
pub const SwizzleBlue: SwizzleComponent = _
The blue component. Equivalent to GL_TEXTURE_SWIZZLE_B (C++ enum variant: SwizzleBlue = 36420
)
sourcepub const SwizzleAlpha: SwizzleComponent = _
pub const SwizzleAlpha: SwizzleComponent = _
The alpha component. Equivalent to GL_TEXTURE_SWIZZLE_A (C++ enum variant: SwizzleAlpha = 36421
)
Trait Implementations§
source§impl Clone for SwizzleComponent
impl Clone for SwizzleComponent
source§fn clone(&self) -> SwizzleComponent
fn clone(&self) -> SwizzleComponent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SwizzleComponent
impl Debug for SwizzleComponent
source§impl From<SwizzleComponent> for c_int
impl From<SwizzleComponent> for c_int
source§fn from(value: SwizzleComponent) -> Self
fn from(value: SwizzleComponent) -> Self
Converts to this type from the input type.
source§impl From<i32> for SwizzleComponent
impl From<i32> for SwizzleComponent
source§impl PartialEq for SwizzleComponent
impl PartialEq for SwizzleComponent
source§fn eq(&self, other: &SwizzleComponent) -> bool
fn eq(&self, other: &SwizzleComponent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SwizzleComponent
impl Eq for SwizzleComponent
impl StructuralEq for SwizzleComponent
impl StructuralPartialEq for SwizzleComponent
Auto Trait Implementations§
impl RefUnwindSafe for SwizzleComponent
impl Send for SwizzleComponent
impl Sync for SwizzleComponent
impl Unpin for SwizzleComponent
impl UnwindSafe for SwizzleComponent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more