Type Alias slint_interpreter::Rgba8Pixel
pub type Rgba8Pixel = RGBA<u8>;
Expand description
Convenience alias for a pixel with four color channels (red, green, blue and alpha), each encoded as u8.
Aliased Type§
struct Rgba8Pixel {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Fields§
§r: u8
Red
g: u8
Green
b: u8
Blue
a: u8
Alpha
Implementations
Trait Implementations
source§impl<T> AddAssign<T> for RGBA<T>
impl<T> AddAssign<T> for RGBA<T>
px + 1
source§fn add_assign(&mut self, r: T)
fn add_assign(&mut self, r: T)
Performs the
+=
operation. Read moresource§impl<T, A> AddAssign for RGBA<T, A>
impl<T, A> AddAssign for RGBA<T, A>
px + px
source§fn add_assign(&mut self, other: RGBA<T, A>)
fn add_assign(&mut self, other: RGBA<T, A>)
Performs the
+=
operation. Read moresource§impl<T, A, B> ColorComponentMap<RGBA<B, A>, T, B> for RGBA<T, A>
impl<T, A, B> ColorComponentMap<RGBA<B, A>, T, B> for RGBA<T, A>
source§impl<T> ComponentSlice<T> for RGBA<T>
impl<T> ComponentSlice<T> for RGBA<T>
source§impl<T> DivAssign<T> for RGBA<T>
impl<T> DivAssign<T> for RGBA<T>
px * 1
source§fn div_assign(&mut self, r: T)
fn div_assign(&mut self, r: T)
Performs the
/=
operation. Read moresource§impl<T, A> From<(T, T, T, A)> for RGBA<T, A>
impl<T, A> From<(T, T, T, A)> for RGBA<T, A>
source§fn from(other: (T, T, T, A)) -> RGBA<T, A>
fn from(other: (T, T, T, A)) -> RGBA<T, A>
Converts to this type from the input type.
source§impl<T> FromIterator<T> for RGBA<T>
impl<T> FromIterator<T> for RGBA<T>
source§fn from_iter<I>(into_iter: I) -> RGBA<T>where
I: IntoIterator<Item = T>,
fn from_iter<I>(into_iter: I) -> RGBA<T>where
I: IntoIterator<Item = T>,
Takes exactly 4 elements from the iterator and creates a new instance. Panics if there are fewer elements in the iterator.
source§impl<T, A> Into<(T, T, T, A)> for RGBA<T, A>
impl<T, A> Into<(T, T, T, A)> for RGBA<T, A>
source§fn into(self) -> (T, T, T, A)
fn into(self) -> (T, T, T, A)
Converts this type into the (usually inferred) input type.
source§impl<T> MulAssign<T> for RGBA<T>
impl<T> MulAssign<T> for RGBA<T>
px * 1
source§fn mul_assign(&mut self, r: T)
fn mul_assign(&mut self, r: T)
Performs the
*=
operation. Read moresource§impl<ComponentType, AlphaComponentType> Ord for RGBA<ComponentType, AlphaComponentType>
impl<ComponentType, AlphaComponentType> Ord for RGBA<ComponentType, AlphaComponentType>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<ComponentType, AlphaComponentType> PartialEq for RGBA<ComponentType, AlphaComponentType>
impl<ComponentType, AlphaComponentType> PartialEq for RGBA<ComponentType, AlphaComponentType>
source§impl<ComponentType, AlphaComponentType> PartialOrd for RGBA<ComponentType, AlphaComponentType>where
ComponentType: PartialOrd,
AlphaComponentType: PartialOrd,
impl<ComponentType, AlphaComponentType> PartialOrd for RGBA<ComponentType, AlphaComponentType>where
ComponentType: PartialOrd,
AlphaComponentType: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> SubAssign<T> for RGBA<T>
impl<T> SubAssign<T> for RGBA<T>
px - 1
source§fn sub_assign(&mut self, r: T)
fn sub_assign(&mut self, r: T)
Performs the
-=
operation. Read moresource§impl<T, A> SubAssign for RGBA<T, A>
impl<T, A> SubAssign for RGBA<T, A>
px - px
source§fn sub_assign(&mut self, other: RGBA<T, A>)
fn sub_assign(&mut self, other: RGBA<T, A>)
Performs the
-=
operation. Read more